AssetService
更新时间: 2025/05/25
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Oem/Public/AssetService
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | AssetService资源模型的OData描述信息 |
| @odata.id | string | true | - | AssetService资源节点的访问路径 |
| @odata.type | string | true | - | AssetService资源类型 |
| Id | string | true | - | AssetService资源的ID |
| Name | string | true | - | AssetService资源的名称 |
| AssetList | object | true | - | 硬件资产清单资源访问路径 |
| AssetList.@odata.id | string | true | - | 硬件资产清单资源的路径链接 |
| AssetChange | object | true | - | 硬件资产变更资源访问路径 |
| AssetChange.@odata.id | string | true | - | 硬件资产变更资源的路径链接 |
| TrustedSupplyChain | object | true | - | 供应链配置检查信息 |
| TrustedSupplyChain.CheckEnabled | boolean | true | - | 供应链配置检查使能 |
| TrustedSupplyChain.ChangedEvents | array | true | - | 供应链配置检查异常配置列表 |
| Links | object | true | - | |
| Links.TrustedSupplyChainChangedEvents | object | true | - | 供应链配置检查告警资源 |
| Links.TrustedSupplyChainChangedEvents.@odata.id | string | true | - | 供应链配置检查告警资源路径链接 |
| Actions | object | true | - | 指定管理资源可执行的操作 |
| Actions.#AssetService.ConfirmTrustedSupplyChain | object | true | - | 确认供应链配置检查操作 |
| Actions.#AssetService.ConfirmTrustedSupplyChain.target | string | true | - | 确认供应链配置检查信息的路径 |
| Actions.#AssetService.ConfirmTrustedSupplyChain.@Redfish.ActionInfo | string | true | - | 确认供应链配置检查信息的查询路径 |
supported_methods
- GET
- POST
HTTP methods
GET
命令功能
查询资源服务信息
命令格式
URL: https://device_ip/redfish/v1/Oem/Public/AssetService
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
无
使用实例
请求样例:
http
GET https://device_ip/redfish/v1/Oem/Public/AssetService请求头:
X-Auth-Token: 123456789***********************请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#AssetService",
"@odata.id": "/redfish/v1/Oem/Public/AssetService",
"@odata.type": "#AssetService.v1_0_0.AssetService",
"Id": "AssetService",
"Name": "Asset Service",
"AssetList": {
"@odata.id": "/redfish/v1/Oem/Public/AssetService/AssetList"
},
"AssetChange": {
"@odata.id": "/redfish/v1/Oem/Public/AssetService/AssetChange"
},
"TrustedSupplyChain": {
"CheckEnabled": false,
"ChangedEvents": []
},
"Links": {
"TrustedSupplyChainChangedEvents": {
"@odata.id": "/redfish/v1/Managers/1/LogServices/EventLog"
}
},
"Actions": {
"#AssetService.ConfirmTrustedSupplyChain": {
"target": "/redfish/v1/Oem/Public/AssetService/Actions/AssetService.ConfirmTrustedSupplyChain",
"@Redfish.ActionInfo": "/redfish/v1/Oem/Public/AssetService/ConfirmTrustedSupplyChainActionInfo"
}
}
}响应码:200
POST (ACTION)
ConfirmTrustedSupplyChain
命令功能
确认供应链配置检查信息
命令格式
URL: https://device_ip/redfish/v1/Oem/Public/AssetService/Actions/AssetService.ConfirmTrustedSupplyChain
请求头:
X-Auth-Token: 123456789***********************
Content-Type: header_type请求消息体: 无
请求头参数说明
参见 请求头参数说明
请求体参数说明
无
使用指南
仅支持 A800I 2UP。
使用实例
请求样例:
http
POST https://device_ip/redfish/v1/Oem/Public/AssetService/Actions/AssetService.ConfirmTrustedSupplyChain请求头:
X-Auth-Token: 123456789***********************请求消息体:无
响应样例:
json
{
"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": "Base.1.0.Success",
"RelatedProperties": [],
"Message": "Successfully Completed Request",
"MessageArgs": [],
"Severity": "OK",
"Resolution": "None"
}
]
}
}响应码:200