GET – 服务器 PCIe 功能的功能
使用 GET 方法检索 Redfish 服务的 PCIeFunction 资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/PCIeDevice/{Device_id}/PCIeFunctions/{Location}
请求正文
无
响应正文
| 字段 | 类型 | 描述 | |||
|---|---|---|---|---|---|
Id  | 字符串 | Id 属性用于唯一标识此 PCIe 功能。  | |||
ClassCode  | 字符串 | 此 PCIe 功能的类别代码。  | |||
Description  | 字符串 | “This resource represents the properties of a PCIeFunction attached to a System.”  | |||
DeviceClass  | 字符串 | 此 PCIe 功能的类别。  | |||
DeviceId  | 字符串 | 此 PCIe 功能的设备 ID。  | |||
FunctionId  | 字符串 | PCIe 功能标识符。  | |||
FunctionType  | 字符串 | Physical  | |||
Links  | 对象 | 展开  | |||
Drives  | 数组 | 相关 Drive 资源的链接。  | |||
EthernetInterfaces  | 数组 | 相关 EthernetInterface 资源的链接。  | |||
StorageControllers  | 数组 | 相关 StorageController 资源的链接。  | |||
PCIeDevice  | 链接 | 相关 PCIeDevice 资源的链接。  | |||
NetworkDeviceFunctions  | 链接 | 相关 NetworkDeviceFunctions 资源的链接。  | |||
Name  | 字符串 | VPD 中的卡名 + 总线编号、设备编号、功能编号。 如果没有 VPD 数据,请使用“Adapter”代替卡名。  | |||
Status  | 对象 | 展开  | |||
State  | 字符串 | Enabled  | |||
Health  | 字符串 | OK  | |||
HealthRollup  | 字符串 | 此 PCIe 设备的运行状况。可能的值为“OK”、“Warning”和“Critical”。  | |||
RevisionId  | 字符串 | 此 PCIe 功能的修订 ID。  | |||
SubsystemId  | 字符串 | 此 PCIe 功能的子系统 ID。  | |||
SubsystemVendorId  | 字符串 | 此 PCIe 功能的子系统供应商 ID。  | |||
VendorId  | 字符串 | 此 PCIe 功能的供应商 ID。  | |||
状态代码
| HTTP 状态代码 | 错误消息 ID | 
|---|---|
| 500 | InternalError | 
示例
返回以下示例 JSON 响应:
{
    "FunctionId": 0,
    "SubsystemId": "0x060c",
    "ClassCode": "0x010400",
    "FunctionType": "Physical",
    "SubsystemVendorId": "0x1d49",
    "Links": {
        "PCIeDevice": {
            "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot_2"
        },
        "StorageControllers": [
            {
                "@odata.id": "/redfish/v1/Systems/1/Storage/RAID_Slot2#/StorageControllers/0"
            }
        ],
        "Drives": [
            {
                "@odata.id": "/redfish/v1/Systems/1/Storage/RAID_Slot2/Drives/Disk.0"
            },
            {
                "@odata.id": "/redfish/v1/Systems/1/Storage/RAID_Slot2/Drives/Disk.1"
            }
        ]
    },
    "DeviceClass": "MassStorageController",
    "@odata.etag": "\"6bbb730cc84e2aef6d4\"",
    "Description": "This resource represents the properties of a PCIeFunction attached to a System.",
    "Id": "slot_2.00",
    "Name": "ThinkSystem RAID 940-16i 8GB Flash PCIe Gen4 12Gb Adapter 6a:00:00",
    "@odata.type": "#PCIeFunction.v1_3_0.PCIeFunction",
    "@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot_2/PCIeFunctions/slot_2.00",
    "Status": {
        "Health": "OK",
        "State": "Enabled",
        "HealthRollup": "OK"
    },
    "RevisionId": "0x00",
    "VendorId": "0x1000",
    "@odata.context": "/redfish/v1/$metadata#PCIeFunction.PCIeFunction",
    "DeviceId": "0x10e2"
}