代码仓
中
DeviceInfo
更新时间: 2026/07/01
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Managers/manager_id/SPService/DeviceInfo

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-SP服务的硬件信息资源模型的OData描述信息
@odata.idstringtrue-SP服务的硬件信息资源的访问路径
@odata.typestringtrue-SP服务的硬件信息资源的类型
Idstringtrue-SP服务的硬件信息资源的Id
Namestringtrue-SP服务的硬件信息资源的名称
PCIeCards [ {arraytrue-PCIe卡信息列表
PCIeCards[].DeviceNamestringfalse-丝印
PCIeCards[].Controlers[ ]arraytrue-PCIe卡的控制器列表
PCIeCards[].Controlers[].Modelstringfalse-型号
PCIeCards[].Controlers[].Functions[ ]arraytrue-控制器的功能列表
PCIeCards[].Controlers[].Functions[].VendorIdstringfalse-厂商id
PCIeCards[].Controlers[].Functions[].BDFNumber {objecttrue-BDF编号
PCIeCards[].Controlers[].Functions[].BDFNumber.BDFstringfalse-BDF
PCIeCards[].Controlers[].Functions[].BDFNumber.RootBDFstringfalse-根BDF
}
PCIeCards[].Controlers[].Functions[].Descriptionstringtrue-描述信息
PCIeCards[].Controlers[].Functions[].MacAddressnullfalse-MAC地址
PCIeCards[].Controlers[].Functions[].DeviceIdstringfalse-设备ID
PCIeCards[].Controlers[].Functions[].SubsystemIdstringfalse-子系统ID
PCIeCards[].Controlers[].Functions[].CardTypestringfalse-卡类型
PCIeCards[].Controlers[].Functions[].SubsystemVendorIdstringfalse-子系统厂商ID
} ]
PCIeCards[].Controlers[].FirmwareVersionstringfalse-固件版本
PCIeCards[].Controlers[].Manufacturerstringfalse-厂商信息
} ]
PCIeCards[].DeviceLocatorstringfalse-丝印信息
PCIeCards[].Positionstringfalse-位置信息
} ]

supported_methods ​

  • GET

HTTP methods ​

GET ​

命令功能

查询 SP 服务的硬件信息资源

命令格式

URL: https://device_ip/redfish/v1/Managers/manager_id/SPService/DeviceInfo

请求头:

X-Auth-Token: auth_value

请求消息体: 无

参数说明

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

使用指南

响应结果以最新SP版本的实际返回结果为准。 GA140C机型不支持 SP版本和机型兼容性列表详见Smart Provisioning用户指南

使用实例

请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/SPService/DeviceInfo

X-Auth-Token: auth_value 请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#HwDeviceInfo.HwDeviceInfo",
  "@odata.id": "/redfish/v1/Managers/1/SPService/DeviceInfo",
  "@odata.type": "#HwDeviceInfo.v1_0_0.HwDeviceInfo",
  "Id": "DeviceInfo",
  "Name": "Device Info",
  "PCIeCards": [
    {
      "DeviceName": "LOM",
      "Controlers": [
        {
          "Model": null,
          "Functions": [
            {
              "VendorId": "0x8086",
              "BDFNumber": {
                "BDF": "0000:1a:00.0",
                "RootBDF": "0000:19:03.0"
              },
              "Description": "Intel Corporation Device 37d2 (rev 08)",
              "MacAddress": null,
              "DeviceId": "0x37d2",
              "SubsystemId": "0xd122",
              "CardType": "NIC",
              "SubsystemVendorId": "0x19e5"
            },
            {
              "VendorId": "0x8086",
              "BDFNumber": {
                "BDF": "0000:1a:00.1",
                "RootBDF": "0000:19:03.0"
              },
              "Description": "Intel Corporation Device 37d2 (rev 08)",
              "MacAddress": null,
              "DeviceId": "0x37d2",
              "SubsystemId": "0xd122",
              "CardType": "NIC",
              "SubsystemVendorId": "0x19e5"
            },
            {
              "VendorId": "0x8086",
              "BDFNumber": {
                "BDF": "0000:1a:00.2",
                "RootBDF": "0000:19:03.0"
              },
              "Description": "Intel Corporation Device 37d1 (rev 08)",
              "MacAddress": null,
              "DeviceId": "0x37d1",
              "SubsystemId": "0xd122",
              "CardType": "NIC",
              "SubsystemVendorId": "0x19e5"
            },
            {
              "VendorId": "0x8086",
              "BDFNumber": {
                "BDF": "0000:1a:00.3",
                "RootBDF": "0000:19:03.0"
              },
              "Description": "Intel Corporation Device 37d1 (rev 08)",
              "MacAddress": null,
              "DeviceId": "0x37d1",
              "SubsystemId": "0xd122",
              "CardType": "NIC",
              "SubsystemVendorId": "0x19e5"
            }
          ],
          "FirmwareVersion": "3.25 0x800009f4 255.65535.255",
          "Manufacturer": "Intel Corporation"
        }
      ],
      "DeviceLocator": "mainboard",
      "Position": "LOM"
    },
    {
      "DeviceName": "SM211",
      "Controlers": [
        {
          "Model": "i350",
          "Functions": [
            {
              "VendorId": "0x8086",
              "BDFNumber": {
                "BDF": "0000:af:00.1",
                "RootBDF": "0000:ae:00.0"
              },
              "Description": "Intel Corporation I350 Gigabit Network Connection (rev 01)",
              "MacAddress": null,
              "DeviceId": "0x1521",
              "SubsystemId": "0xd10c",
              "CardType": "NIC",
              "SubsystemVendorId": "0x19e5"
            },
            {
              "VendorId": "0x8086",
              "BDFNumber": {
                "BDF": "0000:af:00.0",
                "RootBDF": "0000:ae:00.0"
              },
              "Description": "Intel Corporation I350 Gigabit Network Connection (rev 01)",
              "MacAddress": null,
              "DeviceId": "0x1521",
              "SubsystemId": "0xd10c",
              "CardType": "NIC",
              "SubsystemVendorId": "0x19e5"
            }
          ],
          "FirmwareVersion": "1.63,0x800009fa",
          "Manufacturer": "Intel Corporation"
        }
      ],
      "DeviceLocator": "mainboard",
      "Position": "NIC1"
    }
  ]
}

响应码:200