AssetService
更新时间: 2025/05/25
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Oem/Public/AssetService

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-AssetService资源模型的OData描述信息
@odata.idstringtrue-AssetService资源节点的访问路径
@odata.typestringtrue-AssetService资源类型
Idstringtrue-AssetService资源的ID
Namestringtrue-AssetService资源的名称
AssetListobjecttrue-硬件资产清单资源访问路径
AssetList.@odata.idstringtrue-硬件资产清单资源的路径链接
AssetChangeobjecttrue-硬件资产变更资源访问路径
AssetChange.@odata.idstringtrue-硬件资产变更资源的路径链接
TrustedSupplyChainobjecttrue-供应链配置检查信息
TrustedSupplyChain.CheckEnabledbooleantrue-供应链配置检查使能
TrustedSupplyChain.ChangedEventsarraytrue-供应链配置检查异常配置列表
Linksobjecttrue-
Links.TrustedSupplyChainChangedEventsobjecttrue-供应链配置检查告警资源
Links.TrustedSupplyChainChangedEvents.@odata.idstringtrue-供应链配置检查告警资源路径链接
Actionsobjecttrue-指定管理资源可执行的操作
Actions.#AssetService.ConfirmTrustedSupplyChainobjecttrue-确认供应链配置检查操作
Actions.#AssetService.ConfirmTrustedSupplyChain.targetstringtrue-确认供应链配置检查信息的路径
Actions.#AssetService.ConfirmTrustedSupplyChain.@Redfish.ActionInfostringtrue-确认供应链配置检查信息的查询路径

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