跳到主要内容

GET – 密钥集合

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

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/AccountService/Accounts/{1…14}/Keys

请求正文

响应正文

字段类型描述

Description

字符串

“A collection of SSH Key resource instances”

Name

字符串

Keys

Members

数组

项:链接

项数:1~4

 

Members[N]

链接

实例编号的引用密钥架构。

状态代码

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

示例

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

{
"@odata.context": "/redfish/v1/$metadata#KeyCollection.KeyCollection",
"@odata.etag": "\"1C1EA1FE\"",
"@odata.id": "/redfish/v1/AccountService/Accounts/1/Keys",
"@odata.type": "#KeyCollection.KeyCollection",
"Description": "A collection of SSH Key resource instances.",
"Members": [],
"Members@odata.count": 0,
"Name": "Keys"
}