跳到主要内容

GET – 服务器 PCIe 设备

使用 GET 方法检索 Redfish 服务的 PCIeDevice 资源中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/PCIeDevices/{Device_id}

请求正文

响应正文

字段类型描述

AssetTag

字符串

用户为此 PCIe 设备分配的资产标记。

Id

字符串

Id 属性用于唯一标识此 PCIe 设备。

DeviceType

字符串

此 PCIe 设备的设备类型。

FirmwareVersion

字符串

此 PCIe 设备的固件版本。

SKU

字符串

这是此 PCIe 设备的 SKU。

PCIeFunctions

对象

相关 PCIeFunctions 的链接。

Links

对象

已展开。

 

Chassis

链接

机箱资源的链接。

Manufacturer

字符串

这是此 PCIe 设备的制造商。

Model

字符串

这是 PCIe 设备的型号。

Name

字符串

此 PCIe 设备的 VPD 中的卡名,如果是板载 PCIe 设备,请在末尾添加“(onboard)”。

如果没有 VPD 数据,此属性将为“Adapter”。

PartNumber

字符串

此 PCIe 设备的部件号。

SerialNumber

字符串

此 PCIe 设备的序列号。

Status

对象

已展开。

 

State

字符串

Enabled

 

HealthRollup

字符串

表示此资源及其依赖资源的运行状况状态。

 

Health

字符串

表示此资源的运行状况状态。

PCIeInterface

对象

这些属性应包含某个 Redfish 实现的 PCIe 接口的定义。

 

LanesInUse

整数

此设备使用的 PCIe 通道数。

 

MaxPCIeType

字符串

此设备支持的 PCIe 规范的最高版本。

 

MaxLanes

整数

此设备支持的 PCIe 通道数。

 

PCIeType

字符串

正在使用的 PCIe 规范的版本。

Slot

对象

已展开。

 

Location

对象

已展开。

  

PartLocation

对象

已展开。

部件位置。

   

LocationType

字符串

PCIe 设备的位置类型。固定值:Slot

   

LocationOrdinalValue

整数

表示部件位置的数字。如果 LocationType 为“slot”,而此单元位于插槽 2 中,则 LocationOrdinalValue 为 2。

 

SlotType

字符串

PCIe 插槽类型。

UUID

字符串

此 PCIe 设备的 UUID。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#PCIeDevice.PCIeDevice",
"@odata.etag": "\"9F983D35\"",
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot3_0xb0000",
"@odata.type": "#PCIeDevice.v1_10_0.PCIeDevice",
"Description": "This resource represents the properties of a PCIeDevice attached to a System.",
"DeviceType": "MultiFunction",
"FirmwareVersion": "4.07.04",
"Id": "slot3_0xb0000",
"Links": {
"Chassis": [
{
"@odata.id": "/redfish/v1/Chassis/1"
}
]
},
"Manufacturer": "QLogic",
"Model": "QLE2772",
"Name": "QLogic QLE2772 32Gb 2-Port PCIe Fibre Channel Adapter",
"Oem": {
...
}
},
"PCIeFunctions": {
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot3_0xb0000/PCIeFunctions"
},
"PCIeInterface": {
"LanesInUse": 8,
"MaxLanes": 8,
"MaxPCIeType": "Gen4",
"PCIeType": "Gen4"
},
"PartNumber": "SN37A28357",
"SKU": "01KR591",
"SerialNumber": "C1MP0630A9E",
"Slot": {
"Location": {
"PartLocation": {
"LocationOrdinalValue": 3,
"LocationType": "Slot"
}
},
"SlotType": "CEM"
},
"Status": {
"Health": "OK",
"State": "Enabled"
},
"UUID": "AF3A10A6A2DC4039B6D055C969462255"
}