username

Resource URIs

URI Description
<base_URI>/config/running/username Configuration of local users.

Parameters

name
Specifies the user name.
desc
Specifies the account description.
enable
Enables or disables the user account. Configuring true enables the user account, default value is set to true. Configuring false disables user account.
encryption-level
Specifies the level of encryption of the password. Supported configurations are 0 and 7. Configuring 0 sets the password as CLEAR-TEXT. Configuring 7 sets the password as encrypted.
expire
Specifies the date until when the password will remain valid after being updated. The default value is set to "never".
password
Specifies the password of the user.
role
Specifies the role of the user.
access-time

Restricts the hours during the day that the user may be logged in. By default, users are granted 24 hour access. Time values are given in 24 hour format. For example, to restrict access to the daily work schedule, use access-time 0800 to 1800.

end-time
Specifies the end-time for a user‘s session.

Usage Guidelines

GET, 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/username

None

<username xmlns="urn:brocade.com:mgmt:brocade-aaa" xmlns:y="http://brocade.com/ns/rest" 
y:self="/rest/config/running/username/admin">
  <name>admin</name>
  <password>"BwrsDbB+tABWGWpINOVKoQ==\n"</password>
  <encryption-level>7</encryption-level>
  <role>admin</role>
  <desc>Administrator</desc>
</username>
<username xmlns="urn:brocade.com:mgmt:brocade-aaa" xmlns:y="http://brocade.com/ns/rest" 
y:self="/rest/config/running/username/user1">
  <name>user1</name>
  <password>"Zzq31Rtf/++XZ3uIC1keMw==\n"</password>
  <encryption-level>7</encryption-level>
  <role>user</role>
  <desc>user1</desc>
  <expire>2016-06-06</expire>  
  <access-time>1700</access-time>
  <to>1800</to>
</username>

URI

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

http://host:80/rest/config/running/username/user3

None

None