GET – 机箱属性
使用 GET 方法检索服务器的 Chassis 资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Chassis/1
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
AssetTag | 字符串 | 用户为此机箱分配的资产标记。 | |||
ChassisType | 字符串 | 此属性指示此资源的物理外形规格类型。有效值包括:
| |||
Description | 字符串 | 提供此机箱资源的描述。 | |||
EnvironmentalClass | 字符串 | 此机箱的 ASHRAE 环境等级。 | |||
HeightMn | 数字 | 机箱的高度。 | |||
Id | 字符串 | 唯一标识机箱集合中的资源。 对于服务器的 Chassis 资源,此 Id 为“1”。 | |||
IndicatorLED | 字符串 | 指示灯 LED 的状态,用于识别机箱。有效值包括:
| |||
PCIeDevices | 链接 | 位于此机箱中的 PCIe 设备的引用链接。 | |||
Links | 对象 | 已展开。 | |||
ComputerSystems | 数组 | 此机箱中包含的计算机系统的引用数组。 | |||
ComputerSystems[0] | 链接 | 计算机系统资源的引用链接。 | |||
Fans | 数组 | 为此机箱散热的资源的 ID 数组。 | |||
Fans[0] | 链接 | 散热设备资源的引用链接。 | |||
Drives | 数组 | 此机箱中硬盘的资源数组。 | |||
ManagedBy | 数组 | 负责管理此机箱的管理器的引用数组。 | |||
ManagedBy[0] | 链接 | 负责管理此机箱的管理器资源的引用链接。 | |||
ManagersInChassis | 数组 | 此机箱中包含的管理器的引用数组。 | |||
ManagerInChassis[0] | 链接 | 管理器资源的引用链接。 | |||
PCIeDevices | 数组 | 位于此机箱中的 PCIe 设备的引用数组。 | |||
PCIeDevices[N] | 链接 | 位于此机箱中的 PCIe 设备资源的引用链接。 | |||
PowerSupplies | 数组 | 为此机箱供电的资源的 ID 数组。 | |||
PowerSupplies[N] | 链接 | 电源设备资源的引用链接。 | |||
Processors | 数组 | 位于此机箱中的处理器的引用数组。 | |||
Processors[N] | 链接 | 位于此机箱中的处理器资源的引用链接。 | |||
Storage | 数组 | 连接到此机箱或位于此机箱内部的存储子系统的引用数组。 | |||
Storage[N] | 链接 | 位于此机箱内的存储设备资源的引用链接。 | |||
Location | 对象 | 机箱的位置。 | |||
Contacts | 数组 | 联系信息的数组。 | |||
Contacts[0] | 对象 | 已展开。 | |||
ContactName | 字符串 | 此联系人的姓名。 | |||
PartLocation | 对象 | 部件位置。 | |||
Placement | 对象 | 寻址位置中的点位。 | |||
Rack | 字符串 | 一行中的机架位置的名称。 | |||
RackOffset | 整数 | 项的垂直位置(以 RackOffsetUnits 为单位)。 | |||
RackOffsetUnits | 字符串 | 正在使用的机架单元类型。 | |||
PostalAddress | 对象 | 寻址资源的邮政地址。 | |||
Building | 字符串 | 建筑物的名称。 | |||
Location | 字符串 | 机房名称或其他附加信息。 | |||
Name | 字符串 | 系统的名称。 | |||
Room | 字符串 | 机房名称或编号。 | |||
LogServices | 链接 | 此机箱中包含的日志服务资源的引用链接。 | |||
Manufacturer | 字符串 | 此机箱的制造商。始终设置为 Lenovo 或 LNVO。 | |||
Model | 字符串 | 机箱的型号。 | |||
Name | 字符串 | Chassis 资源的名称。始终设置为“Chassis”。 | |||
NetworkAdapters | 链接 | 此机箱中包含的网络适配器资源集合的引用链接。 | |||
PartNumber | 字符串 | 此机箱的部件号。 | |||
PCIeSlots | 链接 | 此机箱中包含的 PCIe 插槽资源集合的引用链接。 | |||
Power | 链接 | 此机箱中包含的电源设备资源的引用链接。 | |||
PowerState | 字符串 | 此机箱的当前电源状态。有效值包括:
| |||
SKU | 字符串 | 此机箱的 SKU。 | |||
Sensors | 链接 | 此机箱中包含的传感器资源的引用链接。 | |||
SerialNumber | 字符串 | 此机箱的序列号。 | |||
Status | 对象 | 包含以下元素。 | |||
Health | 字符串 | 此机箱当前的运行状况,如事件日志中的条目所示。有效值包括:
| |||
HealthRollup | 字符串 | 表示此资源及其依赖资源的运行状况状态。 | |||
Thermal | 链接 | 此机箱中包含的散热资源的引用链接。 | |||
UUID | 字符串 | 此机箱的 UUID。 | |||
Memory | 链接 | 位于此机箱中的内存资源的引用链接。 | |||
ThermalSubsystem | 链接 | 位于此机箱中的散热子系统资源的引用链接。 | |||
PowerSubsystem | 链接 | 位于此机箱中的电源子系统资源的引用链接。 | |||
Controls | 链接 | 位于此机箱中的控制资源的引用链接。 | |||
EnvironmentMetrics | 链接 | 位于此机箱中的环境指标资源的引用链接。 | |||
Version | 字符串 | 此机箱的版本。 | |||
Oem | 对象 | 已展开。 | |||
Lenovo | 对象 | 已展开。 | |||
FanSpeedBoost | 字符串 | 值为“Normal”、“Low”、“Medium”、“High”或“Unknown”。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#Chassis.Chassis",
"@odata.etag": "\"53E44803\"",
"@odata.id": "/redfish/v1/Chassis/1",
"@odata.type": "#Chassis.v1_21_0.Chassis",
"AssetTag": "",
"ChassisType": "RackMount",
"Controls": {
"@odata.id": "/redfish/v1/Chassis/1/Controls"
},
"Description": "This resource is used to represent a chassis or other physical enclosure for a Redfish implementation.",
"EnvironmentMetrics": {
"@odata.id": "/redfish/v1/Chassis/1/EnvironmentMetrics"
},
"EnvironmentalClass": "A4",
"HeightMm": 88.9,
"Id": "1",
"IndicatorLED": "Off",
"Links": {
"ComputerSystems": [
{
"@odata.id": "/redfish/v1/Systems/1"
}
],
"Drives": [
{
"@odata.id": "/redfish/v1/Systems/1/Storage/controller_slot8/Drives/drive_bay_0"
},
{
"@odata.id": "/redfish/v1/Systems/1/Storage/controller_slot8/Drives/drive_bay_1"
}
],
"Fans": [
{
"@odata.id": "/redfish/v1/Chassis/1/ThermalSubsystem/Fans"
}
],
"ManagedBy": [
{
"@odata.id": "/redfish/v1/Managers/1"
}
],
"ManagersInChassis": [
{
"@odata.id": "/redfish/v1/Managers/1"
}
],
"PCIeDevices": [
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot8_0xc60000"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot3_0xb0000"
} ],
"PowerSupplies": [
{
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem/PowerSupplies/PSU1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem/PowerSupplies/PSU2"
}
],
"Processors": [
{
"@odata.id": "/redfish/v1/Systems/1/Processors/2"
},
{
"@odata.id": "/redfish/v1/Systems/1/Processors/1"
}
],
"Storage": [
{
"@odata.id": "/redfish/v1/Systems/1/Storage/controller_slot8"
}
]
},
"Location": {
"Contacts": [
{
"ContactName": ""
}
],
"PartLocation": {},
"Placement": {
"Rack": "",
"RackOffset": 1,
"RackOffsetUnits": "EIA_310"
},
"PostalAddress": {
"Building": "",
"Location": "",
"Name": "",
"Room": ""
}
},
"LogServices": {
"@odata.id": "/redfish/v1/Systems/1/LogServices"
},
"Manufacturer": "Lenovo",
"Memory": {
"@odata.id": "/redfish/v1/Systems/1/Memory"
},
"Model": "7DGCCTO1WW",
"Name": "Chassis",
"NetworkAdapters": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters"
},
"Oem": {
...
}
},
"PCIeDevices": {
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices"
},
"PCIeSlots": {
"@odata.id": "/redfish/v1/Chassis/1/PCIeSlots"
},
"PartNumber": "SB27C00442",
"Power": {
"@odata.id": "/redfish/v1/Chassis/1/Power"
},
"PowerState": "On",
"PowerSubsystem": {
"@odata.id": "/redfish/v1/Chassis/1/PowerSubsystem"
},
"SKU": "7DGCCTO1WW",
"Sensors": {
"@odata.id": "/redfish/v1/Chassis/1/Sensors"
},
"SerialNumber": "BHSFW2U005",
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"Thermal": {
"@odata.id": "/redfish/v1/Chassis/1/Thermal"
},
"ThermalSubsystem": {
"@odata.id": "/redfish/v1/Chassis/1/ThermalSubsystem"
},
"UUID": "FE57AA52-E969-4448-9C0B-045179900052",
"Version": "5"
}