Modifying Information about a User Service
Function
This interface is used to modify information about a user service.
Syntax
Operation type: PATCH
URL: https://device_ip/redfish/v1/AccountService
Request header:
X-Auth-Token: auth_value Content-Type: header_type
Request message body:
{
"PasswordExpirationDays": PasswordExpirationDays,
"Password": password
}
Request Parameters
Parameter |
Mandatory/Optional |
Parameter Description |
Value |
|---|---|---|---|
PasswordExpirationDays |
Mandatory |
Password validity period. |
The value is a number ranging from 0 to 365. The default value is 90 days. The value 0 indicates that the password never expires. |
Password |
Mandatory |
Password of the current user. |
The value is a string of 8 to 20 characters. |
Usage Guidelines
None
Example
Request:
PATCH https://10.10.10.10/redfish/v1/AccountService
Request header:
X-Auth-Token: auth_value
Content-Type: application/json
Request message body:
{
"PasswordExpirationDays":100,
"Password": "password"
}
Response:
{
"@odata.context": "/redfish/v1/$metadata#AccountService",
"@odata.id": "/redfish/v1/AccountService",
"@odata.type": "#AccountService.v1_11_0.AccountService",
"Id": "AccountService",
"Name": "Account Service",
"PasswordExpirationDays": 100,
"Accounts": {
"@odata.id": "/redfish/v1/AccountService/Accounts"
}
}
Response code: 200
Output Description
Field |
Type |
Description |
|---|---|---|
@odata.context |
Character string |
OData description of an AccountService resource model. |
@odata.id |
Character string |
Path to access an AccountService resource. |
@odata.type |
Character string |
AccountService resource type. |
Id |
Character string |
AccountService resource ID. |
Name |
Character string |
AccountService resource name. |
PasswordExpirationDays |
Number |
Password validity period. The value ranges from 0 to 365. The default value is 90 days. The value 0 indicates that the password never expires. |
Accounts |
Object |
Path to access an Accounts interface resource. |