InfiniBandInterfaces
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Systems/system_id/InfiniBandInterfaces/ib_id

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-指定IB资源模型的OData描述信息
@odata.idstringtrue-指定IB资源的访问路径
@odata.typestringtrue-指定IB资源的类型
Idstringtrue-指定IB资源的ID
Namestringtrue-指定IB资源的名称
LinkStatusstringtrue-指定IB资源的链路状态
● Sleep
● Polling
● Disabled
● PortConfigurationTraining
● LinkUp
● LinkErrorRecovery
● Phy_Test
● NoLink
● unknown
Addressstringtrue-IPv4地址
SubnetMaskstringtrue-子网掩码
Gatewaystringtrue-网关
AddressOriginstringtrue-地址来源
● Static
● DHCP
Addressstringtrue-IPv6地址
PrefixLengthnumbertrue-IPv6前缀长度
AddressOriginstringtrue-地址来源
● Static
● DHCPv6
● LinkLocal
● SLAAC
AddressStatestringtrue-地址状态
● Preferred
● Deprecated
● Tentative
● Failed
IPv6DefaultGatewaystringtrue-IPv6默认网关
UUIDstringtrue-通用唯一识别码
InterfaceTypestringtrue-网口类型
● Physical
● Virtual
RelatedPortobjecttrue-关联的Chassis下的IB资源的访问路径

supported_methods

  • GET

HTTP methods

GET

命令功能

查询 IB 资源信息

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/InfiniBandInterfaces/ib_id

请求头:


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

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID参见源文件参数说明
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

仅 BMC 300 5.05.12.25 版本支持

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Systems/system_id/InfiniBandInterfaces/ib_id

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

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#Systems/Members/1/InfiniBandInterfaces/Members/$entity",
  "@odata.id": "/redfish/v1/Systems/1/InfiniBandInterfaces/BioBoard1PCIeCard10(IB)Port1",
  "@odata.type": "#HwInfiniBandInterface.v1_0_0.HwInfiniBandInterface",
  "Id": "ib0",
  "Name": "ib0",
  "LinkStatus": "LinkUp",
  "IPv4Addresses": [
    {
      "Address": "192.168.100.3",
      "SubnetMask": "255.255.0.0",
      "Gateway": "192.168.100.100",
      "AddressOrigin": "Static"
    }
  ],
  "IPv6Addresses": [
    {
      "Address": "fd00::2488",
      "PrefixLength": 64,
      "AddressOrigin": "Static",
      "AddressState": "Preferred"
    }
  ],
  "IPv6DefaultGateway": "fd00::2489",
  "UUID": "0xec0d9a0300aa33a0",
  "InterfaceType": "Physical",
  "RelatedPort": {
    "@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/BioBoard1PCIeCard10(IB)/NetworkPorts/1"
  }
}

响应码:200