跳到主要内容

GET – 许可证属性

使用 GET 方法检索 XCC_Advanced/XCC_Enterprised 信息。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/LicenseService/Licenses/XCC_Advanced|XCC_Enterprised

请求正文

响应正文

字段

类型

描述

Id

字符串

“XCC_Advanced”或“XCC_Enterprised”

Name

字符串

“Lenovo XClarity Controller Advanced Upgrade”或“Lenovo XClarity Controller Enterprise Upgrade”

Description

字符串

“This resource is used to represent a license for a Redfish implementation.”

LicenseType

字符串

“Production”

LicenseOrigin

字符串

“Installed”或“BuiltIn”

ExpirationDate

字符串

许可证的到期日期。

如果没有限制,则显示“null”

Removable

布尔

如果“LincenseOrigin”等于“Installed”,则值为 true。

如果“LincenseOrigin”等于“BuiltIn”,则值为 false。

Manufacturer

字符串

“Lenovo”

LicenseString

字符串

Null

EntitlementId

字符串

机器类型加上序列号

AuthorizationScope

字符串

“Service”

RemainingUseCount

整数

始终为 0

DownloadURI

字符串

“/LicenseDownload/license_XCC_Advanced”或“/LicenseDownload/license_ XCC_Enterprised”

Status

对象

已展开

 

State

字符串

对应于密钥状态

0:“Enabled”

其他值:“Disabled”

 

Health

字符串

“OK”

Links

对象

已展开

 

AuthorizedDevices

链接

状态代码

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

示例

返回以下示例 JSON 响应:

XCC_Advanced 许可证:

{
"Links": {
"AuthorizedDevices": []
},
"Oem": {
"Lenovo": {
"DescTypeCode": 52,
"IdTypes": [
"MTSN"
],
"@odata.type": "#LenovoLicense.v1_0_0.LenovoLicense"
}
},
"AuthorizationScope": "Service",
"Manufacturer": "Lenovo",
"Name": "Lenovo XClarity Controller Advanced Upgrade",
"@odata.type": "#License.v1_0_0.License",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"LicenseOrigin": "Installed",
"RemainingUseCount": 0,
"LicenseType": "Production",
"@odata.context": "/redfish/v1/$metadata#License.License",
"@odata.etag": "\"61949b8df02528abb0a\"",
"Description": "This resource is used to represent a license for a Redfish implementation.",
"Removable": true,
"EntitlementId": "7Z721234567890",
"@odata.id": "/redfish/v1/LicenseService/Licenses/XCC_Advanced",
"LicenseString": null,
"Id": "XCC_Advanced",
"DownloadURI": "/LicenseDownload/license_XCC_Advanced"
}

XCC_Enterprised 许可证:

{
"Links": {
"AuthorizedDevices": []
},
"Oem": {
"Lenovo": {
"DescTypeCode": 53,
"IdTypes": [
"MTSN"
],
"@odata.type": "#LenovoLicense.v1_0_0.LenovoLicense"
}
},
"Removable": true,
"EntitlementId": "7Z721234567890",
"Id": "XCC_Enterprised",
"Name": "Lenovo XClarity Controller Enterprise Upgrade",
"@odata.type": "#License.v1_0_0.License",
"@odata.id": "/redfish/v1/LicenseService/Licenses/XCC_Enterprised",
"DownloadURI": "/LicenseDownload/license_XCC_Enterprised",
"@odata.context": "/redfish/v1/$metadata#License.License",
"Manufacturer": "Lenovo",
"@odata.etag": "\"63f3a04a2c28296c963\"",
"LicenseOrigin": "Installed",
"RemainingUseCount": 0,
"LicenseType": "Production",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Description": "This resource is used to represent a license for a Redfish implementation.",
"AuthorizationScope": "Service",
"LicenseString": null
}