GET – Collection for roles
Use the GET method to retrieve properties in role collection for Redfish service.
Request URL
GET https://<BMC_IPADDR>/redfish/v1/AccountService/Roles
Request body
None
Response body
| Field | Type | Description | |||
|---|---|---|---|---|---|
Name  | String | RoleCollection  | |||
Description  | String | A collection of Role resource instances.  | |||
Members  | Array | Items: links Item count: 3~32 for non-edge platforms, or 4~32 for edge platforms.  | |||
Members[N]  | Link | Links to user role resource instances.  | |||
Status code
| HTTP Status Code | Error Message ID | 
|---|---|
| 500 | InternalError | 
Example
When the request is successful, a message body similar to the following is returned:
{
    "@odata.context": "/redfish/v1/$metadata#RoleCollection.RoleCollection",
    "@odata.etag": "\"6AF4EDA7\"",
    "@odata.id": "/redfish/v1/AccountService/Roles",
    "@odata.type": "#RoleCollection.RoleCollection",
    "Description": "A collection of Role resource instances.",
    "Members": [
        {
            "@odata.id": "/redfish/v1/AccountService/Roles/Administrator"
        },
        {
            "@odata.id": "/redfish/v1/AccountService/Roles/Operator"
        },
        {
            "@odata.id": "/redfish/v1/AccountService/Roles/ReadOnly"
        }
    ],
    "Members@odata.count": 3,
    "Name": "RoleCollection"
}
Give documentation feedback