role

Configures, modifies, or retrieves role configurations.

Resource URIs

URI Description
<base_URI>/config/running/role Role configuration.
<base_URI>/config/running/role/name Name of the role.

Parameters

name
Specifies the name of the role.
desc
Specifies the description of the role.

Usage Guidelines

GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD operations are supported.

Examples

URI

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>

URI

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

URI

The following is an example of the DELETE operation to remove a user.

http://host:80/rest/config/running/role/name/user3

None

None