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

ResourceDefinition

uris

  • /redfish/v1/PowerEquipment/PowerShelves/power_distribution_id/Mains
  • /redfish/v1/PowerEquipment/PowerShelves/power_distribution_id/Branches

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue电路集合资源的OData描述信息
@odata.idstringtrue电路集合资源的访问路径
@odata.typestringtrue电路集合资源的类型
Namestringtrue电路集合资源的名称
Members@odata.countnumbertrue电路数量
Membersarraytrue电路列表
Members[].@odata.idstringtrue单个电路资源节点的访问路径

supported_methods

  • GET

HTTP methods

GET

命令功能

查询电路集合资源信息

说明

  • 上述URI /Mains 用于查询主电路集合资源信息
  • 上述URI /Branches 用于查询分支电路集合资源信息

命令格式

URL: https://device_ip/redfish/v1/PowerEquipment/PowerShelves/power_distribution_id/Mains

URL: https://device_ip/redfish/v1/PowerEquipment/PowerShelves/power_distribution_id/Branches

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
power_distribution_id配电单元Id在查询配电单元列表的返回信息中包含各配电单元Id
auth_value执行该请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

BMC300 5.12.0.1及以上版本支持(仅RM310支持)

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/PowerEquipment/PowerShelves/1/Mains

请求头:


X-Auth-Token: ******

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#CircuitCollection. CircuitCollection",
  "@odata.id": "/redfish/v1/PowerEquipment/PowerShelves/1/Mains",
  "@odata.type": "# CircuitCollection.CircuitCollection",
  "Name": "Mains Circuit Collection",
  "Members@odata.count": 1,
  "Members": [
    {
      "@odata.id": "/redfish/v1/PowerEquipment/PowerShelves/1/Mains /1"
    }
  ]
}

响应码:200