Querying Information About a User Service
Function
This interface is used to query information about a user service.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/AccountService
Request header:
X-Auth-Token: auth_value
Request message body:
None
Parameter Description
Parameter |
Description |
Value |
---|---|---|
device_ip |
IP address for logging in to a device. |
An IPv4 or IPv6 address |
auth_value |
Authentication parameter contained in the request. |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
Usage Guidelines
None
Example
Request:
GET https://10.10.10.10/redfish/v1/AccountService
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body:
None
Response:
{ "@odata.context": "/redfish/v1/$metadata#AccountService", "@odata.id": "/redfish/v1/AccountService", "@odata.type": "#AccountService.v1_1_0.AccountService", "Id": "AccountService", "Name": "Account Service", "DefaultExpirationDays": 100, "Accounts": { "@odata.id": "/redfish/v1/AccountService/Accounts" }, "Roles": { "@odata.id": "/redfish/v1/AccountService/Roles" }
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
@odata.context |
Character string |
OData information of the user service resource model. |
@odata.id |
Character string |
Access path of the user resource node. |
@odata.type |
Character string |
Type of a user service resource. |
Id |
Character string |
ID of a user service resource. |
Name |
Character string |
Name of a user service resource. |
DefaultExpirationDays |
Numeric value |
Validity period of a password. The value ranges from 0 to 365. The default value is 90 days. The value 0 indicates that the password never expires. |