跳到主要内容

GET – 角色集合

使用 GET 方法检索 Redfish 服务的角色集合中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/AccountService/Roles

请求正文

响应正文

字段类型描述

Name

字符串

“RoleCollection”

Members

数组

项:链接

项数:非边缘平台为 3~32 个,边缘平台为 4~32 个。

 

Members[N]

链接

用户角色资源实例的链接。

Description

字符串

“A collection of Role resource instances.”

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

请求成功时,将返回类似于以下内容的消息正文:

{
"@odata.context": "/redfish/v1/$metadata#RoleCollection.RoleCollection",
"Name": "RoleCollection",
"Description": "A collection of Role resource instances.",
"@odata.type": "#RoleCollection.RoleCollection",
"@odata.id": "/redfish/v1/AccountService/Roles",
"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,
"@odata.etag": "\"331cec41575a24e480d\""
}