JSON API » roles » roles/get
Gets the fields of a role.
Input parameters
Does not require authentication.
Name | Type | Description | Required | Default value |
---|---|---|---|---|
id | Integer | ID of role to get. | Yes |
Responses
Code | Description |
---|---|
200 | Success. |
404 | The role does not exist. |
Data returned
Fields of role.
Example: With required parameters
http://enswitch.example.com/api/json/roles/get/?id=123{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "id":123, "name":"example", ... } }
Change history
Version | Changes |
---|---|
3.13 | Function added. |