User Tools

Site Tools


api_general

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
api_general [2011/06/13 14:09]
woky
api_general [2011/06/21 11:06] (current)
woky
Line 43: Line 43:
     * **role** - role can be '​admin'​ or '​user'​. User can only show graphs, admin can add/​edit/​delete servers.     * **role** - role can be '​admin'​ or '​user'​. User can only show graphs, admin can add/​edit/​delete servers.
     * **group** - group can be '​all'​ or '​select'​. all - user can show all servers, select - you can specify which servers can user show. This can be done with parameter sids and value is server ids separated by a underscore.     * **group** - group can be '​all'​ or '​select'​. all - user can show all servers, select - you can specify which servers can user show. This can be done with parameter sids and value is server ids separated by a underscore.
-    * **sids** - id of servers that user can show separated with underscore+    * **sids** - (optional) ​id of servers that user can show separated with underscore
  
 **Example:​** Suppose you want to add subaccount ''​admin@yourcompany.com'',​ name ''​George Willis'',​ role is ''​admin''​ and user can access to servers with ids 546 and 548 - group is ''​Select''​ and sids is ''​546_548''​.your API key is ''​api123''​. The POST request URL will look like this:<​code>​http://​www.bijk.com/​publicapi/​addUser/​key/​api123/​email/​admin@yourcompany.com/​name/​George Willis/​role/​admin/​group/​select/​sids/​546_548</​code>​ **Example:​** Suppose you want to add subaccount ''​admin@yourcompany.com'',​ name ''​George Willis'',​ role is ''​admin''​ and user can access to servers with ids 546 and 548 - group is ''​Select''​ and sids is ''​546_548''​.your API key is ''​api123''​. The POST request URL will look like this:<​code>​http://​www.bijk.com/​publicapi/​addUser/​key/​api123/​email/​admin@yourcompany.com/​name/​George Willis/​role/​admin/​group/​select/​sids/​546_548</​code>​
api_general.txt ยท Last modified: 2011/06/21 11:06 by woky