代码仓
SwitchesCollection
更新时间: 2026/09/07
在AtomGit上查看源码

ResourceDefinition

uris

  • /redfish/v1/Fabrics/fabric_id/Switches

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-Switches资源模型的OData描述信息
@odata.idstringtrue-Switches资源节点的访问路径
@odata.typestringtrue-Switches资源类型
Namestringtrue-Switches集合资源的名称
Members@odata.countnumbertrue-Switches资源数量
Membersarraytrue-Switches资源列表,提供所有系统资源URL的引用
Members[].@odata.idstringtrue-Switches资源的访问路径

supported_methods

  • GET

HTTP methods

GET

命令功能

查询Switches资源

命令格式

URL: https://device_ip/redfish/v1/Fabrics/fabric_id/Switches

请求头:


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

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
auth_value执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得
fabric_idfabric设备ID可通过/redfish/v1/Fabrics的Members属性获得

使用指南

BMC300 5.13.3.27及以上版本,Atlas 350L SuperSuite,Atlas 560EL SuperSuite机型支持。

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Fabrics/fabric_id/Switches

请求头:


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

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#SwitchCollection.SwitchCollection",
  "@odata.id": "/redfish/v1/Fabrics/1/Switches",
  "@odata.type": "#SwitchCollection.SwitchCollection",
  "Name": "Switches Collection",
  "Members@odata.count": 4,
  "Members": [
    {
      "@odata.id": "/redfish/v1/Fabrics/1/Switches/0"
    },
    {
      "@odata.id": "/redfish/v1/Fabrics/1/Switches/1"
    },
    {
      "@odata.id": "/redfish/v1/Fabrics/1/Switches/2"
    },
    {
      "@odata.id": "/redfish/v1/Fabrics/1/Switches/3"
    }
  ]
}

响应码:200