跳到主要内容

GET – 服务器 PCIe 插槽

使用 GET 方法检索 Redfish 服务的 PCIeSlots 中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/PCIeSlots

请求正文

响应正文

字段类型描述

Id

字符串

PCIeSlots

Name

字符串

PCIe 插槽

Description

字符串

“This resource shall be used to represent a set of PCIe slot information for a Redfish implementation.”

Slots

对象

PCI 插槽信息数组。

 

Links

对象

与 Slots 相关的其他资源的链接。

  

PCIeDevice

链接

相关 PCIeDevice 的链接。

 

HotPluggable

布尔

指示此 PCIe 插槽是否支持热插拔。

 

PCIeType

字符串

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

 

SlotType

字符串

PCIe 插槽类型。

 

Lanes

整数

此插槽支持的 PCIe 通道数。

 

Location

对象

PCIe 插槽的位置。

  

PartLocation

对象

部件位置。

   

ServiceLabel

字符串

部件位置的标签,如 PCIe X(X 是插槽编号)。

   

LocationType

字符串

部件的位置类型,如“slot”。

   

LocationOrdinalValue

字符串

表示部件位置的数字。

如果 LocationType 为“slot”,而此单元位于插槽 2 中,则 LocationOrdinalValue 为 2。

 

Status

对象

PCIeSlots 的状态和运行状况。

  

State

字符串

PCIeSlots 的已知状态,如 enabled、disabled。

  

Health

字符串

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

状态代码

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

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#PCIeSlots.PCIeSlots",
"@odata.etag": "\"97E1A3F7\"",
"@odata.id": "/redfish/v1/Chassis/1/PCIeSlots",
"@odata.type": "#PCIeSlots.v1_5_0.PCIeSlots",
"Description": "This resource shall be used to represent an set of PCIe slot information for a Redfish implementation.",
"Id": "PCIeSlots",
"Name": "PCIe Slots",
"Slots": [
{
"HotPluggable": false,
"Lanes": 8,
"Links": {
"PCIeDevice": [
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot14_0xb40000"
}
]
},
"Location": {
"PartLocation": {
"LocationOrdinalValue": 14,
"LocationType": "Slot",
"ServiceLabel": "PCIe 14"
}
},
"PCIeType": "Gen5",
"SlotType": "OCP3Small",
"Status": {
"Health": "OK",
"State": "Enabled"
}
},
{
"HotPluggable": false,
"Lanes": 8,
"Links": {
"PCIeDevice": []
},
"Location": {
"PartLocation": {
"LocationOrdinalValue": 13,
"LocationType": "Slot",
"ServiceLabel": "PCIe 13"
}
},
"PCIeType": "Gen5",
"SlotType": "OCP3Small",
"Status": {
"Health": "OK",
"State": "Enabled"
}
},
]
}