GET – 服务器属性
使用 GET 方法检索 Redfish 服务的 System 资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1
请求正文
无
响应正文
字段 | 类型 | 描述 | ||||
---|---|---|---|---|---|---|
Actions | 对象 | 此资源的可用操作。 | ||||
#ComputerSystem.Reset | 对象 | 此操作应执行 ComputerSystem 的重置。对于实现了 APCI 电源按钮功能的系统,PushPowerButton 值应执行或模拟 ACPI 电源按钮按下操作。ForceOff 值应断开系统电源或执行 ACPI 电源按钮覆盖(通常称为按住电源按钮 4 秒)。ForceRestart 值应先执行 ForceOff 操作,然后再执行 On 操作。 允许值:
| ||||
AssetTag | 字符串 | 系统的资产标记 | ||||
Bios | 链接 | 与此系统关联的 BIOS 设置的引用。 | ||||
BiosVersion | 字符串 | 系统 BIOS 的版本。 | ||||
Boot | 对象 | 描述当前资源的引导信息。对此对象的更改不会改变 BIOS 持久引导顺序配置 | ||||
AutomaticRetryConfig | 字符串 | “Disabled”或“RetryAttempts” | ||||
AutomaticRetryConfig@Redfish.AllowableValues | 数组 | “Disabled”或“RetryAttempts” | ||||
BootSourceOverrideEnabled | 字符串 | 描述“引导源覆盖”功能的状态 | ||||
BootSourceOverrideMode | 字符串 | 从 BootSourceOverrideTarget 引导源进行引导时要使用的 BIOS 引导模式(仅限 UEFI) | ||||
BootSourceOverrideTarget | 字符串 | BootSourceOverrideEnabled 为“Once”的情况下,下次引导时要使用的当前引导源(取代正常引导设备)。 | ||||
BootSourceOverrideTarget @Redfish.AllowableValues | 数组 字符串 | “None”、“Pxe”、“Hdd”、“Cd”、“Diags”、“BiosSetup”、“Usb”或“UefiTarget” | ||||
UefiTargetBootSourceOverride | 字符串 | 当 BootSourceOverrideSupported 为 UefiTarget 时作为引导源的设备的 UEFI 设备路径。 | ||||
BootOptions | 链接 | 与此计算机系统关联的 UEFI 引导选项集合的链接。 | ||||
BootOrder | 数组 | 项:字符串 项数:N | ||||
BootOrder[N] | 字符串 | BootOptionReference 字符串,表示与此计算机系统相关的持久引导顺序。 | ||||
TrustedModuleRequiredToBoot | 布尔 | 可信模块引导要求。 | ||||
StopBootOnFault | 字符串 | 是否应在出现故障时停止引导。 | ||||
Description | 字符串 | “This resource is used to represent a computing system for a Redfish implementation.” | ||||
EthernetInterfaces | 链接 | 与此系统关联的以太网接口集合的引用。 | ||||
GraphicalConsole | 对象 | 已展开。 | ||||
ConnectTypesSupported | 数组 字符串 | KVMIP | ||||
MaxConcurrentSessions | 整数 | 4 | ||||
ServiceEnabled | 布尔 | True | ||||
HostWatchdogTimer | 对象 | 此对象描述此系统的主机看守程序计时器功能。 | ||||
FunctionEnabled | 布尔 | 指示是否已启用主机看守程序计时器功能。激活计时器功能需要额外的基于主机的软件。 | ||||
Status | 对象 | 已展开。 | ||||
State | 字符串 | Enabled | ||||
TimeoutAction | 字符串 | ResetSystem | ||||
Id | 字符串 | “1” | ||||
LastResetTime | 字符串 | 上次重置或重新启动系统的日期和时间。 | ||||
Links | 对象 | 引用链接的对象。 | ||||
Chassis | 数组 | 包含此系统的机箱的引用数组。 | ||||
ManagedBy | 数组 | 负责管理此系统的管理器的引用数组。 | ||||
LogServices | 链接 | 与此系统关联的日志服务集合的引用。 | ||||
Manufacturer | 字符串 | 系统的制造商标记 | ||||
Memory | 链接 | 与此系统关联的内存设备集合的引用。 | ||||
MemorySummary | 对象 | 此对象大致详细描述系统的内存。 | ||||
TotalSystemMemoryGiB | 数字 | 操作系统可访问的已装内存总量(RAM),以 GiB 为单位。 | ||||
Status | 对象 | 反映内存摘要状态。 | ||||
State | 字符串 | “Enabled”。 | ||||
Health | 字符串 | 表示此资源在没有依赖资源的情况下的运行状况状态。 | ||||
Model | 字符串 | 系统的型号 | ||||
Name | 字符串 | ComputerSystem | ||||
NetworkInterfaces | 链接 | 与此系统关联的网络接口集合的引用。 | ||||
PCIeDevices | 数组 | 包含此系统的 PCI 设备的引用数组。 | ||||
PartNumber | 字符串 | null | ||||
PCIeFunctions | 数组 | 包含此系统的 PCI 功能的引用数组。 | ||||
PCIeFunctions[] | 链接 | PCIeFunction 的链接 | ||||
PowerRestorePolicy | 字符串 | 在断电后恢复电源时,系统所需的电源状态。 | ||||
PowerState | 字符串 | 系统的当前电源状态。 | ||||
ProcessorSummary | 对象 | 此对象大致详细描述系统的中央处理器。 | ||||
CoreCount | 数字 | 系统中的核数。 | ||||
Count | 数字 | 计算。计算所有 CoreCount 的总和。 | ||||
Status | 对象 | 反映处理器摘要状态。 | ||||
Health | 字符串 | 表示此资源在没有依赖资源的情况下的运行状况状态。 | ||||
Processors | 链接 | 此对象大致详细描述系统的处理器。 | ||||
SerialConsole | 对象 | 已展开。 | ||||
IPMI | 数字 | 已展开。 | ||||
ServiceEnabled | 布尔 | False | ||||
SSH | 对象 | 已展开。 | ||||
HotKeySequenceDisplay | 字符串 | 可供用户退出串行控制台会话的热键序列。 | ||||
Port | 整数 | 分配给服务的端口。 | ||||
ServiceEnabled | 布尔 | 指示是否为此系统启用了该服务。 | ||||
SerialNumber | 字符串 | 系统的序列号 | ||||
Status | 对象 | 已展开。 | ||||
State | 字符串 | Enabled | ||||
HealthRollup | 字符串 | OK | ||||
Health | 字符串 | 表示此资源在没有依赖资源的情况下的运行状况状态。 | ||||
Storage | 链接 | 与此系统关联的存储设备集合的引用。 | ||||
SystemType | 字符串 | 此资源表示的计算机系统的类型 | ||||
UUID | 字符串 | 此系统的通用唯一标识符(UUID) | ||||
SecureBoot | 链接 | 与此系统关联的 SecureBoot 设置的引用。 | ||||
SubModel | 字符串 | 系统的子型号 | ||||
SKU | 字符串 | 此系统的制造商 SKU。 | ||||
VirtualMedia | 链接 | 此系统的虚拟介质服务的引用。 | ||||
@Redfish.Settings | 对象 | 已展开。 | ||||
Messages | 数组 | 项:对象 项数:0 或 1 | ||||
Messages[N] | 对象 | 已展开。 成功修改 Pending 资源的 Boot/BootOrder 时指示“RebootRequired”消息。 | ||||
MessageId | 字符串 | “ExtendedError.1.2. RebootRequired” | ||||
SettingsObject | 链接 | /redfish/v1/Systems/1/Pending | ||||
SupportedApplyTimes | 数组 | 项:字符串 项数:1 | ||||
SupportedApplyTimes[0] | 字符串 | “OnReset” | ||||
Time | 字符串 | 指示上次应用 Settings 资源的时间,否则值为 null。 | ||||
IndicatorLED | 字符串 | 与此系统关联的指示灯状态 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@Redfish.Settings": {
"@odata.type": "#Settings.v1_3_0.Settings",
"Messages": [],
"SettingsObject": {
"@odata.id": "/redfish/v1/Systems/1/Pending"
},
"SupportedApplyTimes": [
"OnReset"
],
"Time": null
},
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
"@odata.etag": "\"38AA1EF7\"",
"@odata.id": "/redfish/v1/Systems/1",
"@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem",
"Actions": {
"#ComputerSystem.Reset": {
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/ResetActionInfo",
"target": "/redfish/v1/Systems/1/Actions/ComputerSystem.Reset",
"title": "Reset"
},
"Oem": {
...
}
}
},
"AssetTag": "",
"Bios": {
"@odata.id": "/redfish/v1/Systems/1/Bios"
},
"BiosVersion": "IHE109B",
"Boot": {
"AutomaticRetryConfig": "RetryAttempts",
"AutomaticRetryConfig@Redfish.AllowableValues": [
"Disabled",
"RetryAttempts"
],
"BootOptions": {
"@odata.id": "/redfish/v1/Systems/1/BootOptions"
},
"BootOrder": [
"Boot000A",
"Boot0001",
"Boot0002",
"Boot0003"
],
"BootSourceOverrideEnabled": "Disabled",
"BootSourceOverrideMode": "UEFI",
"BootSourceOverrideTarget": "None",
"BootSourceOverrideTarget@Redfish.AllowableValues": [
"None",
"Pxe",
"Hdd",
"Cd",
"Diags",
"BiosSetup",
"Usb",
"UefiTarget"
],
"StopBootOnFault": "Never",
"TrustedModuleRequiredToBoot": "Disabled",
"UefiTargetBootSourceOverride": null
},
"Description": "This resource is used to represent a computing system for a Redfish implementation.",
"EthernetInterfaces": {
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces"
},
"GraphicalConsole": {
"ConnectTypesSupported": [
"KVMIP"
],
"MaxConcurrentSessions": 4,
"ServiceEnabled": true
},
"HostWatchdogTimer": {
"FunctionEnabled": false,
"Status": {
"State": "Enabled"
},
"TimeoutAction": "ResetSystem"
},
"Id": "1",
"IndicatorLED": "Off",
"LastResetTime": "2024-12-04T02:40:29+00:00",
"Links": {
"Chassis": [
{
"@odata.id": "/redfish/v1/Chassis/1"
}
],
"ManagedBy": [
{
"@odata.id": "/redfish/v1/Managers/1"
}
]
},
"LogServices": {
"@odata.id": "/redfish/v1/Systems/1/LogServices"
},
"Manufacturer": "Lenovo",
"Memory": {
"@odata.id": "/redfish/v1/Systems/1/Memory"
},
"MemorySummary": {
"Status": {
"Health": "OK",
"State": "Enabled"
},
"TotalSystemMemoryGiB": 256
},
"Model": "ThinkSystem SR650 V4",
"Name": "ComputerSystem",
"NetworkInterfaces": {
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces"
},
"Oem": {
...
}
},
"PCIeDevices": [
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot14_0xb40000"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot3_0xb0000"
}
],
"PCIeDevices@odata.count": 2,
"PCIeFunctions": [
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot3_0xb0000/PCIeFunctions/slot_3.00"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot3_0xb0000/PCIeFunctions/slot_3.01"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot14_0xb40000/PCIeFunctions/slot_14.00"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot14_0xb40000/PCIeFunctions/slot_14.01"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot14_0xb40000/PCIeFunctions/slot_14.02"
},
{
"@odata.id": "/redfish/v1/Chassis/1/PCIeDevices/slot14_0xb40000/PCIeFunctions/slot_14.03"
}
],
"PartNumber": "SB27C00442",
"PowerRestorePolicy": "LastState",
"PowerState": "On",
"ProcessorSummary": {
"Count": 2,
"Status": {
"Health": "OK"
}
},
"Processors": {
"@odata.id": "/redfish/v1/Systems/1/Processors"
},
"SKU": "7DGCCTO1WW",
"SecureBoot": {
"@odata.id": "/redfish/v1/Systems/1/SecureBoot"
},
"SerialConsole": {
"IPMI": {
"ServiceEnabled": false
},
"SSH": {
"HotKeySequenceDisplay": "Press ~. to exit console",
"Port": 22,
"ServiceEnabled": true
}
},
"SerialNumber": "BHSFW2U005",
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"Storage": {
"@odata.id": "/redfish/v1/Systems/1/Storage"
},
"SubModel": "7DGC",
"SystemType": "Physical",
"UUID": "FE57AA52-E969-4448-9C0B-045179900052",
"VirtualMedia": {
"@odata.id": "/redfish/v1/Systems/1/VirtualMedia"
}
}