跳到主要内容

GET – 许可证集合

使用 GET 方法检索 Redfish 服务的 License 集合资源中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/LicenseService/Licenses

请求正文

响应正文

字段类型描述

Description

字符串“A collection of Licenses resource instances.”

Name

字符串“LicenseCollection”

Members

数组此集合的成员。
 

Members[N]

链接实例编号的引用许可证架构。

状态代码

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

示例

返回以下示例 JSON 响应:

{
"@odata.etag": "\"30631cb877892a27df1\"",
"Name": "LicenseCollection",
"@odata.type": "#LicenseCollection.LicenseCollection",
"@odata.id": "/redfish/v1/LicenseService/Licenses",
"Description": "A collection of Licenses resource instances.",
"@odata.context": "/redfish/v1/$metadata#LicenseCollection.LicenseCollection",
"Members@odata.count": 2,
"Members": [
{
"@odata.id": "/redfish/v1/LicenseService/Licenses/VROC_VMD"
},
{
"@odata.id": "/redfish/v1/LicenseService/Licenses/XCC2_Platinum"
}
]
}