代码仓
中
TransceiversCollection
更新时间: 2026/10/29
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Chassis/chassis_id/Transceivers

properties ​

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

supported_methods ​

  • GET

HTTP methods ​

GET ​

命令功能

查询网络端口上接的光模块集合资源信息

命令格式

URL: https://device_ip/redfish/v1/Chassis/chassis_id/Transceivers

请求头:

text

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

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
chassis_id机箱资源的ID● 针对机架服务器,取值为1
● 针对高密服务器,取值为 BladeN(N表示节点槽位号),例如“Blade1”
● 针对刀片服务器,取值可以为BladeN(N表示计算节点槽位号)或SwiN(N 表示交换模块槽位号),例如“Swi1”
● 针对X6800 V5,X6000 V5,G5500,XA320 V2服务器,取值还可以为Enc,表示计算节点所在的机框资源
● 针对设备U位信息,取值可以为UN(N表示设备U位号),例如"U1"
● 针对机柜资源,取值为 Rack
auth_value执行该GET请求时,必须在“Headers”中携带“X-Auth-Token”值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

无

使用实例

请求样例:

http
GET <https://device_ip/redfish/v1/Chassis/1/Transceivers>

请求头:

text

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

请求消息体:无

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#HwTransceivers.HwTransceivers",
"@odata.id": "/redfish/v1/Chassis/1/Transceivers",
"@odata.type": "#HwTransceivers.HwTransceivers",
"Name": "Transceiver Collection",
"OpticalModules": [
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort4"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort5"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort8"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort9"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort12"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort13"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort16"
}
],
"Members@odata.count": 8,
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort4"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort5"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort8"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort9"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort12"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort13"
},
{
"@odata.id": "/redfish/v1/Chassis/1/Transceivers/OpticalModule_EthernetAdapterBoardPort16"
}
]
}

响应码:200