代码仓
中
PCIeSlots
更新时间: 2026/11/04
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Chassis/chassis_id/PCIeSlots

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-PCIe插槽资源模型的OData描述信息
@odata.idstringtrue-PCIe插槽资源的访问路径
@odata.typestringtrue-PCIe插槽资源的类型
Namestringtrue-PCIe插槽资源的名称
Idstringtrue-PCIe插槽的资源ID
Slots [ {arraytrue-插槽信息列表
Slots[].PCIeTypestringtrue-PCIe插槽支持的最高PCIe规范版本
Slots[].Lanesnumbertrue-PCIe插槽支持的最大PCIe通道数
Slots[].SlotTypestringtrue-PCIe插槽类型
Slots[].Location {objecttrue-插槽的位置信息
Slots[].Location.PartLocation {objecttrue-PCIe插槽在机箱内的部件位置
说明
openUBMC 26.03及以上版本支持
Slots[].Location.PartLocation.LocationTypestringtrue-部件位置的类型,目前只支持Slot
Slots[].Location.PartLocation.LocationOrdinalValuenumbertrue-部件位置的数字
Slots[].Location.PartLocation.ServiceLabelstringtrue-部件位置的标签
}
}
Slots[].Links {objecttrue-PCIe插槽关联的资源
Slots[].Links.PCIeDevice[ ]arraytrue-PCIe插槽关联的PCIe卡资源
Slots[].Links.PCIeDevice[].@odata.idstringtrue-PCIe插槽关联的PCIe卡资源访问路径
} ]
}
Slots[].HotPluggablebooleantrue-是否支持热插拔
} ]

supported_methods ​

  • GET

HTTP methods ​

GET ​

命令功能

查询 PCIe 插槽资源信息

命令格式

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

请求头:

text

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

请求消息体: 无

参数说明

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

使用指南

无

使用实例

请求样例:

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

请求头:

text

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

请求消息体:无

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#PCIeSlots.PCIeSlots",
"@odata.id": "/redfish/v1/Chassis/1/PCIeSlots",
"@odata.type": "# PCIeSlots.v1_5_1.PCIeSlots",
"Name": "PCIe Slot Information",
"Id": "1",
"Slots": [
{
"PCIeType": "Gen3",
"Lanes": 16,
"SlotType": "FullLength",
"HotPluggable": true,
"Location": {
"PartLocation": {
"ServiceLabel": "Slot 1",
"LocationOrdinalValue": 1,
"LocationType": "Slot"
}
},
"Links": {
"PCIeDevice": [
{
"@odata.id": "/redfish/v1/Systems/1/PCIeDevices/PCIeCard1"
}
]
}
},
{
"PCIeType": "Gen3",
"Lanes": 1,
"SlotType": "HalfLength",
"HotPluggable": false,
"Location": {
"PartLocation": {
"ServiceLabel": "Slot 3",
"LocationOrdinalValue": 3,
"LocationType": "Slot"
}
}
}
]
}

响应码:200