Querying User Resource Collection Information
Function
This interface is used to query the information about user resource collection.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/AccountService/Accounts
Request header:
X-Auth-Token: auth_value
Request message body: None
Usage Guidelines
None
Example
Request:
GET https://10.10.10.10/redfish/v1/AccountService/Accounts
Request header:
X-Auth-Token: auth_value
Request message body: None
Response:
{
"@odata.context": "/redfish/v1/$metadata#AccountService/Accounts/$entity",
"@odata.id": "/redfish/v1/AccountService/Accounts",
"@odata.type": "#ManagerAccountCollection.ManagerAccountCollection",
"Name": "Accounts Collection",
"Members@odata.count": 1,
"Members": [
{
"@odata.id": "/redfish/v1/AccountService/Accounts/1"
}
]
}
Response code: 200
Output Description
Field |
Type |
Description |
|---|---|---|
@odata.context |
Character string |
OData description of a user resource collection model. |
@odata.type |
Character string |
User resource collection type. |
@odata.id |
Character string |
Path to access a user resource collection. |
Name |
Character string |
User resource collection name. |
Members@odata.count |
Number |
Number of users. |
Members |
Array |
User resource list. |
@odata.id |
Character string |
Path to access a user resource node. |
Parent topic: User Management