Configures, modifies, or retrieves role configurations.
URI | Description |
---|---|
<base_URI>/config/running/role | Role configuration. |
<base_URI>/config/running/role/name | Name of the role. |
GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported.
The following example uses the GET option to retrieve the configuration details.
http://host:80/rest/config/running/role
None
<role xmlns="urn:brocade.com:mgmt:brocade-aaa" xmlns:y="http://brocade.com/ns/rest" y:self="/rest/config/running/role"> <name y:self="/rest/config/running/role/name/admin"> <name>admin</name> <desc>Administrator</desc> </name> <name y:self="/rest/config/running/role/name/admin2"> <name>admin2</name> </name> <name y:self="/rest/config/running/role/name/trial"> <name>trial</name> </name> <name y:self="/rest/config/running/role/name/user"> <name>user</name> <desc>User</desc> </name> </role>
The following is an example of the POST operation to add a role name and description.
http://host:80/rest/config/running/role
<name> <name>user3</name> <desc>user</desc> </name>
None
The following is an example of the DELETE operation to remove a user.
http://host:80/rest/config/running/role/name/user3
None
None