ResourceDefinition
uris
/redfish/v1/Managers/manager_id/LicenseService
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | License服务资源模型的OData描述信息 |
| @odata.id | string | true | - | License服务资源的访问路径 |
| @odata.type | string | true | - | License服务资源的类型 |
| Id | string | true | - | License服务资源的Id |
| Name | string | true | - | License服务资源的名称 |
| Actions { | object | true | - | License服务组密钥导入操作 |
| Actions.#LicenseService.DeleteLicense { | object | true | - | 删除License操作 |
| Actions.#LicenseService.DeleteLicense.@Redfish.ActionInfo | string | true | - | 操作信息查询路径 |
| Actions.#LicenseService.DeleteLicense.target | string | true | - | 操作路径 |
| } | ||||
| Actions.#LicenseService.ExportLicense { | object | true | - | 导出License操作 |
| Actions.#LicenseService.ExportLicense.@Redfish.ActionInfo | string | true | - | 操作信息查询路径 |
| Actions.#LicenseService.ExportLicense.target | string | true | - | 操作路径 |
| } | ||||
| Actions.#LicenseService.InstallLicense { | object | true | - | 安装License操作 |
| Actions.#LicenseService.InstallLicense.@Redfish.ActionInfo | string | true | - | 操作信息查询路径 |
| Actions.#LicenseService.InstallLicense.target | string | true | - | 操作路径 |
| } | ||||
| Actions.#LicenseService.RevokeLicense { | object | true | - | 吊销License操作 |
| Actions.#LicenseService.RevokeLicense.@Redfish.ActionInfo | string | true | - | 操作信息查询路径 |
| Actions.#LicenseService.RevokeLicense.target | string | true | - | 操作路径 |
| } | ||||
| } | ||||
| Capability[ ] | array | true | - | License管理的能力 ● Local,支持管理本地的license ● Remote,支持管理远程的License |
| DeviceESN | string | true | - | 设备的ESN |
| InstalledStatus | string | true | - | License文件的安装状态 ● NotInstalled,未安装 ● Installed,已安装 ● Installing,安装中 |
| RevokeTicket | string | true | - | License失效码 |
| LicenseClass | string | true | - | 本地license文件管理时,license文件级别,当license文件为远程管理时,此字段无效 ● NotInstalled,未安装 ● Advanced,高级 |
| LicenseStatus | string | true | - | License的状态 ● N/A,未定义 ● Default,默认状态 ● GracePeriod,宽限状态 ● Normal,正常状态 ● Emergency,紧急状态 ● Commissioning,调测状态 ● Unknown,未知状态 |
| LicenseInfo { | object | true | - | License信息 |
| LicenseInfo.KeyInfo { | object | true | - | License授权码信息 |
| LicenseInfo.KeyInfo.FeatureKey [ { | array | true | - | 功能特性授权码 |
| LicenseInfo.KeyInfo.FeatureKey[].Group | string | true | - | License授权码信息 |
| LicenseInfo.KeyInfo.FeatureKey[].IsControlled | string | true | - | License授权码信息 |
| LicenseInfo.KeyInfo.FeatureKey[].Name | string | true | - | License服务资源的名称 |
| LicenseInfo.KeyInfo.FeatureKey[].RemoteControlValue | number | true | - | License授权码信息 |
| LicenseInfo.KeyInfo.FeatureKey[].State | string | true | - | License授权码信息 |
| LicenseInfo.KeyInfo.FeatureKey[].ValidDate | string | true | - | License授权码信息 |
| LicenseInfo.KeyInfo.FeatureKey[].Value | number | true | - | 属性取值 |
| } ] | ||||
| } | ||||
| LicenseInfo.FileFormatVersion | string | true | - | License文件格式版本 |
| LicenseInfo.GeneralInfo { | object | true | - | License信息 |
| LicenseInfo.GeneralInfo.CopyRight | string | true | - | License文件版权信息 |
| LicenseInfo.GeneralInfo.LSN | string | true | - | License SN |
| LicenseInfo.GeneralInfo.LicenseType | string | true | - | License类型 |
| LicenseInfo.GeneralInfo.GraceDay | number | true | - | License宽限期天数 |
| LicenseInfo.GeneralInfo.Creator | string | true | - | License签发者 |
| LicenseInfo.GeneralInfo.Issuer | string | true | - | License申请者 |
| LicenseInfo.GeneralInfo.CreateTime | string | true | - | License创建时间 |
| } | ||||
| LicenseInfo.CustomerInfo { | object | true | - | License信息 |
| LicenseInfo.CustomerInfo.Customer | string | true | - | License使用者名称 |
| LicenseInfo.CustomerInfo.Country | string | true | - | License使用者所在国家或地区 |
| LicenseInfo.CustomerInfo.Office | string | true | - | License使用者所在城市 |
| } | ||||
| LicenseInfo.NodeInfo { | object | true | - | License信息 |
| LicenseInfo.NodeInfo.Name | string | true | - | License服务资源的名称 |
| LicenseInfo.NodeInfo.ESN | string | true | - | 授权的设备ESN |
| } | ||||
| LicenseInfo.SaleInfo { | object | true | - | 销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct { | object | true | - | 产品信息 |
| LicenseInfo.SaleInfo.OfferingProduct.ProductName | string | true | - | 销售的产品名称 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem [ { | array | true | - | 销售项 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].Description | string | true | - | 销售项描述 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[ ] | array | true | - | 功能特性授权码 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[].Group | string | true | - | License销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[].IsControlled | string | true | - | License销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[].Name | string | true | - | License服务资源的名称 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[].RemoteControlValue | number | true | - | License销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[].State | string | true | - | License销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[].ValidDate | string | true | - | License销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].FeatureKey[].Value | number | true | - | 属性取值 |
| } ] | ||||
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].IsControlled | string | true | - | License销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].Name | string | true | - | License服务资源的名称 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].ValidDate | string | true | - | License销售信息 |
| LicenseInfo.SaleInfo.OfferingProduct.SaleItem[].Value | number | true | - | 属性取值 |
| } ] | ||||
| } | ||||
| } | ||||
| } | ||||
| AlarmInfo { | object | true | - | 告警信息 |
| AlarmInfo.RemainGraceDay | number | true | - | 宽限状态剩余的天数 |
| AlarmInfo.RemainCommissioningDay | number | true | - | 调测状态剩余的天数 |
| AlarmInfo.ProductESNValidState | string | true | - | 产品ESN是否有效 ● Valid,有效 ● Invalid,无效 |
| AlarmInfo.FileState | string | true | - | License文件是否正常 ● Normal,正常 ● Incorrect,损坏 |
| AlarmInfo.ProductESNMatchState | string | true | - | License文件的ESN是否与实际的产品ESN匹配 ● Matched,匹配 ● Unmatched,不匹配 |
| AlarmInfo.ProductVersionMatchState | string | true | - | License文件的产品版本是否与实际的产品版本一致 ● Matched,匹配 ● Unmatched,不匹配 |
| } |
supported_methods
- GET
- POST
HTTP methods
GET
命令功能
查询 License 服务信息
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/LicenseService
请求头:
X-Auth-Token: auth_value请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 请求消息的鉴权参数 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
V3服务器和部分V5服务器不支持此功能,详情请查阅BMC用户指南。 GA140C机型不支持
使用实例
请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/LicenseService
X-Auth-Token: auth_value 请求消息体:无
响应样例:
{
"@odata.context": "/redfish/v1/$metadata#Managers/Members/1/LicenseService/$entity",
"@odata.id": "/redfish/v1/Managers/1/LicenseService",
"@odata.type": "#HwLicenseService.v1_0_0.HwLicenseService",
"Id": "LicenseService",
"Name": "License Service",
"Capability": [
"Local",
"Remote"
],
"DeviceESN": "1FB811FE20CA8B952718A5CE66C28790CA41A2F6",
"InstalledStatus": "Installed",
"RevokeTicket": "",
"LicenseClass": "Advanced",
"LicenseStatus": "Normal",
"LicenseInfo": {
"FileFormatVersion": "3.10",
"GeneralInfo": {
"CopyRight": "",
"LSN": "LIC20180820LDLM5C",
"LicenseType": "Commercial",
"GraceDay": 60,
"Creator": "",
"Issuer": "License Distribution Center",
"CreateTime": "2018-08-20 20:13:44"
},
"CustomerInfo": {
"Customer": "",
"Country": "China",
"Office": "ShenZhen"
},
"NodeInfo": {
"Name": "Server",
"ESN": "1FB811FE20CA8B952718A5CE66C28790CA41A2F6"
},
"SaleInfo": {
"OfferingProduct": {
"ProductName": "2288H_V5",
"SaleItem": [
{
"Name": "iBMCV2-02-AF01",
"Value": 5,
"ValidDate": "PERMANENT",
"IsControlled": "Controlled",
"Description": "iBMC V2 Advanced-1 Server",
"FeatureKey": [
{
"Name": "Smart Provisioning, Data Acquisition",
"Group": "AFG-01",
"Value": 1,
"ValidDate": "PERMANENT",
"IsControlled": "Controlled",
"State": "Normal",
"RemoteControlValue": 0
}
]
}
]
}
},
"KeyInfo": {
"FeatureKey": [
{
"Name": "Smart Provisioning, Data Acquisition",
"Group": "",
"Value": 0,
"ValidDate": "",
"IsControlled": "Controlled",
"State": "N/A",
"RemoteControlValue": 0
}
]
}
},
"AlarmInfo": {
"RemainGraceDay": 0,
"RemainCommissioningDay": 0,
"ProductESNValidState": "Valid",
"FileState": "Normal",
"ProductESNMatchState": "Matched",
"ProductVersionMatchState": "Matched"
},
"Actions": {
"#LicenseService.InstallLicense": {
"target": "/redfish/v1/Managers/1/LicenseService/Actions/LicenseService.InstallLicense",
"@Redfish.ActionInfo": "/redfish/v1/Managers/1/LicenseService/InstallLicenseActionInfo"
},
"#LicenseService.ExportLicense": {
"target": "/redfish/v1/Managers/1/LicenseService/Actions/LicenseService.ExportLicense",
"@Redfish.ActionInfo": "/redfish/v1/Managers/1/LicenseService/ExportLicenseActionInfo"
},
"#LicenseService.RevokeLicense": {
"target": "/redfish/v1/Managers/1/LicenseService/Actions/LicenseService.RevokeLicense",
"@Redfish.ActionInfo": "/redfish/v1/Managers/1/LicenseService/RevokeLicenseActionInfo"
},
"#LicenseService.DeleteLicense": {
"target": "/redfish/v1/Managers/1/LicenseService/Actions/LicenseService.DeleteLicense",
"@Redfish.ActionInfo": "/redfish/v1/Managers/1/LicenseService/DeleteLicenseActionInfo"
}
}
}响应码:200
POST (ACTION)
InstallLicense
命令功能
安装 license
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.InstallLicense
请求头:
X-Auth-Token: auth_value
Content-Type: header_type请求消息体:
{
"FileSource": source,
"Type": type,
"Content": value
}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| source | License的来源 | 来源有 ● BMC ● FusionDirector ● eSight未配置该参数时,默认为BMC |
| type | 安装license文件的方式 | ● text,表明value值是license内容 ● URI,表明value值是URI(本地路径或者远程路径),其它类型暂不支持。 |
| value | 内容 | 1、可以为license的内容2、可以为证书本地路径(只能在/tmp目录下)或者远程路径 (支持的文件传输的协议有https、sftp、nfs、cifs、scp) |
使用指南
V3服务器和部分V5服务器不支持此功能,详情请查阅BMC用户指南。 GA140C机型不支持
使用实例
请求样例: POST https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.InstallLicense
X-Auth-Token: auth_value Content-Type: header_type 请求消息体:
{
"FileSource": source,
"Type": type,
"Content": value
}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "iBMC.1.0.LicenseInstallSuccess",
"RelatedProperties": [],
"Message": "The license has been installed successfully.",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200
POST (ACTION)
ExportLicense
命令功能
导出 license
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.ExportLicense
请求头:
X-Auth-Token: auth_value
Content-Type: header_type请求消息体:
{
"Type": type,
"Content": value
}请求头参数说明
参见 请求头参数说明
请求体参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| type | 导出类型 | URI,表明value值是URI(本地路径或者远程路径),其它类型暂不支持。 |
| value | 导出文件路径 | 导出到证书本地路径(只能在/tmp目录下)或者远程路径 (支持的文件传输的协议有https、sftp、nfs、cifs、scp) |
使用指南
V3服务器和部分V5服务器不支持此功能,详情请查阅BMC用户指南。 GA140C机型不支持
使用实例
请求样例: POST https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.ExportLicense
X-Auth-Token: auth_value Content-Type: header_type 请求消息体:
{
"Type": type,
"Content": value
}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "iBMC.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request.",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200
POST (ACTION)
RevokeLicense
命令功能
失效 license
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.RevokeLicense
请求头:
X-Auth-Token: auth_value
Content-Type: header_type请求消息体:
{}请求头参数说明
参见 请求头参数说明
请求体参数说明
无
使用指南
V3服务器和部分V5服务器不支持此功能,详情请查阅BMC用户指南。 GA140C机型不支持
使用实例
请求样例: POST https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.RevokeLicense
X-Auth-Token: auth_value Content-Type: header_type 请求消息体:
{}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "iBMC.1.0.LicenseRevokeSuccess",
"RelatedProperties": [],
"Message": "The revoke ticket is 1234567890ABCDEFG.",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200
POST (ACTION)
DeleteLicense
命令功能
删除 license
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.DeleteLicense
请求头:
X-Auth-Token: auth_value
Content-Type: header_type请求消息体:
{}请求头参数说明
参见 请求头参数说明
请求体参数说明
无
使用指南
V3服务器和部分V5服务器不支持此功能,详情请查阅BMC用户指南。 GA140C机型不支持
使用实例
请求样例: POST https://device_ip/redfish/v1/Managers/manager_id/LicenseService/Actions/LicenseService.DeleteLicense
X-Auth-Token: auth_value Content-Type: header_type 请求消息体:
{}响应样例:
{
"error": {
"code": "Base.1.0.GeneralError",
"message": "A general error has occurred. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"MessageId": "iBMC.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request.",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200