ResourceDefinition
uris
/redfish/v1/Fabrics/fabric_id/Switches/switch_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | Switch资源模型的OData描述信息 |
| @odata.id | string | true | - | Switch资源节点的访问路径 |
| @odata.type | string | true | - | Switch资源类型 |
| Name | string | true | - | Switch设备的名称 |
| Id | string | true | - | Switch设备ID |
| FirmwareVersion | string | true | - | Switch设备固件版本号 |
| PartNumber | string | true | - | Switch设备的部件编码 |
| SerialNumber | string | true | - | Switch设备的序列号 |
| Ports | object | true | - | Switch设备的端口集合 |
| Ports.@odata.id | string | true | - | Switch设备的端口集合的访问路径 |
| Status | object | true | - | Switch设备的状态,包括: ● Health:Switch设备健康状态 ● State:Switch设备使能状态 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询指定Switch设备信息
命令格式
URL: https://device_ip/redfish/v1/Fabrics/fabric_id/Switches/switch_id
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
| fabric_id | fabric设备ID | 可通过/redfish/v1/Fabrics的Members属性获得 |
| switch_id | switch设备ID | 可通过/redfish/v1/Fabrics/fabric_id/Switches的Members属性获得 |
使用指南
BMC300 5.13.3.27及以上版本,Atlas 350L SuperSuite,Atlas 560EL SuperSuite机型支持。
使用实例
请求样例:
GET https://device_ip/redfish/v1/Fabrics/fabric_id/Switches/switch_id请求头:
X-Auth-Token: 123456789***********************请求消息体:无
响应样例:
{
"@odata.context": "/redfish/v1/$metadata#Switch.Switch",
"@odata.id": "/redfish/v1/Fabrics/1/Switches/0",
"@odata.type": "#Switch.v1_17_0.Switch",
"Name": "Switches0",
"Id": "0",
"FirmwareVersion": "7.0.9.2.b002",
"PartNumber": null,
"SerialNumber": null,
"Ports": {
"@odata.id": "/redfish/v1/Fabrics/1/Switches/1/Ports"
},
"Status": {
"Health": "OK",
"State": "Enabled"
}
}响应码:200

