GET – LicenseService 属性
使用 GET 方法检索 Redfish 服务的 LicenseService 资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/LicenseService
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Id | 字符串 | “LicenseService” | |||
Name | 字符串 | “License Service” | |||
Description | 字符串 | “This resource is used to represent a License service for a Redfish implementation.” | |||
ServiceEnabled | 布尔 | 始终为 true | |||
LicenseExpirationWarningDays | 整数 | 始终为 0 | |||
Licenses | 链接 | LicenseCollection 链接 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"Oem": {
"Lenovo": {
"@odata.type": "#LenovoLicenseService.v1_0_0.LenovoLicenseService",
"Tier": "Tier3"
}
},
"Licenses": {
"@odata.id": "/redfish/v1/LicenseService/Licenses"
},
"Name": "License Service",
"ServiceEnabled": true,
"@odata.id": "/redfish/v1/LicenseService",
"@odata.context": "/redfish/v1/$metadata#LicenseService.LicenseService",
"Id": "LicenseService",
"@odata.etag": "\"4189a77688e42668958\"",
"LicenseExpirationWarningDays": 0,
"Description": "This resource is used to represent a License service for a Redfish implementation.",
"@odata.type": "#LicenseService.v1_0_0.LicenseService"
}
提供反馈