Systems
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Systems/system_id

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-指定系统资源模型的OData描述信息
@odata.idstringtrue-指定系统资源的访问路径
@odata.typestringtrue-指定系统资源的类型
Idstringtrue-指定系统资源的ID
Namestringtrue-指定系统资源的名称
AssetTagstringfalse-指定系统资源的资产标签
Manufacturerstringtrue-指定系统资源的制造商
Modelstringtrue-指定系统资源的型号
PowerModestringfalseMaximumPerformance/BalancedPerformance/PowerSaving/Static/OSControlled/OEM/EfficiencyFavorPower/EfficiencyFavorPerformance指定系统的节能模式
SerialNumberstringtrue-指定系统资源的序列号
UUIDstringfalse-指定系统资源的全球唯一标识
SystemTypestringtruePhysical指定系统资源的系统类型
HostNamestringfalse-指定系统资源的主机名
PartNumberstringtrue-指定系统资源的部件号
HostingRoleobjecttrueApplicationServer/Switch/StorageServer指定系统资源的主机角色
HostWatchdogTimerobjecttrue-指定系统资源的看门狗计时器功能
HostWatchdogTimer.FunctionEnabledbooleantrue-系统资源的看门狗使能
HostWatchdogTimer.TimeoutActionstringtrueNone/OEM/PowerCycle/PowerDown/ResetSystem系统资源的看门狗超时策略
Statusobjecttrue-指定系统资源的状态,包括Health/State/Severity
PowerStatestringtrueOn/Off指定系统资源的上电状态
PowerRestorePolicystringfalseAlwayOn/LastState/AlwaysOff通电开机策略
Bootobjectfalse-指定系统资源的启动参数
Boot.BootSourceOverrideTargetstringfalse-系统的当前启动设备
Boot.BootSourceOverrideEnabledstringfalseDisabled/Once/Continuous系统启动参数的使能状态
Boot.BootSourceOverrideModestringfalseLegacy/UEFI系统启动模式
Boot.BootSourceOverrideTarget@Redfish.AllowableValuesarraytrueNone/Pxe/Floppy/Cd/Hdd/BiosSetupRedfish定义的启动设备
TrustedModulesarraytrue-指定系统资源的可信模块
TrustedModules[].FirmwareVersionstringtrue-可信模块的固件版本
TrustedModules[].InterfaceTypestringtrueTPM1_2/TPM2_0/TCM1_0可信模块的接口类型
BiosVersionstringtrue-指定系统资源的BIOS版本
ProcessorSummaryobjecttrue-指定系统资源的CPU信息
ProcessorSummary.Countnumbertrue-CPU个数
ProcessorSummary.Modelstringtrue-CPU型号
MemorySummaryobjecttrue-指定系统资源的内存信息
MemorySummary.TotalSystemMemoryGiBnumbertrue-系统总内存容量,单位为GB
GraphicalConsoleobjectfalse-虚拟控制台(KVM-IP)服务的信息。BMC300 5.12.0及以上版本支持
GraphicalConsole.ConnectTypesSupportedarraytrue-支持的虚拟控制台连接类型
GraphicalConsole.MaxConcurrentSessionsnumbertrue-最大会话数
GraphicalConsole.Portnumberfalse-服务的端口号
GraphicalConsole.ServiceEnabledbooleanfalse-服务的使能状态
VirtualMediaConfigobjectfalse-虚拟媒体服务的信息。BMC300 5.12.0及以上版本支持
VirtualMediaConfig.Portnumberfalse-服务的端口号
VirtualMediaConfig.ServiceEnabledbooleanfalse-服务的使能状态
Processorsobjecttrue-处理器资源节点的访问路径
Memoryobjecttrue-内存资源节点的访问路径
EthernetInterfacesobjecttrue-主机网卡资源节点的访问路径
Storageobjecttrue-存储资源节点的访问路径
NetworkInterfacesobjecttrue-网络接口资源节点的访问路径
LogServicesobjecttrue-日志服务资源节点的访问路径
PCIeDevicesobjecttrue-PCIe设备资源节点的访问路径
PCIeFunctionsobjecttrue-PCIe功能资源节点的访问路径
Biosobjecttrue-Bios资源节点的访问路径(只有V5服务器存在)
SecureBootobjecttrue-安全启动资源节点的访问路径
VirtualMediaobjecttrue-虚拟媒体资源访问路径
Linksobjecttrue-系统资源的资源链接
Links.Chassisarraytrue-机箱资源节点的访问路径
Links.Managersarraytrue-管理资源的资源节点访问路径
Oem.Publicobjectfalse-自定义属性
Oem.Public.HealthSummaryobjecttrue-系统健康状态总览
Oem.Public.HealthSummary.CriticalAlarmCountnumbertrue-当前系统中致命告警的数量
Oem.Public.HealthSummary.MajorAlarmCountnumbertrue-当前系统中严重告警的数量
Oem.Public.HealthSummary.MinorAlarmCountnumbertrue-当前系统中轻微告警的数量
Oem.Public.ConfigurationModelstringfalse-配置型号
Oem.Public.OSVersionstringtrue-操作系统版本
Oem.Public.HostnameSyncEnabledbooleanfalse-iBMA上报Hostname同步BMC使能开关
Oem.Public.CPUUsagePercentnumbertrue-CPU占用率
Oem.Public.MemoryUsagePercentnumbertrue-内存占用率
Oem.Public.LocalKvmEnabledbooleanfalse-本地Kvm使能
Oem.Public.SafePowerOffTimeoutEnabledbooleanfalse-下电时限使能开关
Oem.Public.SafePowerOffTimoutSecondsnumberfalse-安全下电超时时间
Oem.Public.PowerOnStrategystringfalseTurnOn/RestorePreviousState/StayOff通电开机策略
Oem.Public.LeakStrategystringfalseManualPowerOff/AutoPowerOff液冷服务器漏液后电源控制策略
Oem.Public.PowerRestoreDelayModestringfalseDefaultDelay/HalfDelay/FixedDelay/RandomDelay上电延迟模式
Oem.Public.PowerRestoreDelaySecondsnumberfalse-延迟上电的时间,单位秒
Oem.Public.EnergySavingEnabledbooleanfalse-智能节能功能使能
Actionsobjecttrue-Redfish允许的指定系统资源可执行操作
Actions.#ComputerSystem.Resetobjecttrue-OS重启操作
Actions.#ComputerSystem.Reset.targetstringtrue-重启操作属性的访问路径
Actions.Oem.Public.#ComputerSystem.FruControlobjecttrue-FRU重启操作

supported_methods

  • GET
  • PATCH
  • POST (ACTION)

HTTP methods

GET

命令功能

查询指定系统资源信息

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID针对机架服务器取值为1;针对高密服务器取值为BladeN;针对刀片服务器取值为BladeN或SwiN;针对X6800 V5等取值还可为Enc;针对设备U位取值为UN;针对机柜取值为Rack
auth_value执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Systems/1

请求头:

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

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
  "@odata.id": "/redfish/v1/Systems/1",
  "@odata.type": "#ComputerSystem.v1_23_0.ComputerSystem",
  "Id": "1",
  "Name": "Computer System",
  "AssetTag": null,
  "Manufacturer": "",
  "Model": null,
  "PowerMode": "BalancedPerformance",
  "SerialNumber": null,
  "UUID": "421C1E9E-1DD2-11B2-986D-0018AC640A29",
  "SystemType": "Physical",
  "HostName": null,
  "PartNumber": null,
  "HostingRole": [
    "ApplicationServer"
  ],
  "HostWatchdogTimer": {
    "FunctionEnabled": true,
    "TimeoutAction": "PowerDown"
  },
  "Status": {
    "Health": "OK",
    "Oem": {
      "Public": {
        "Severity": "Informational"
      }
    },
    "State": "Enabled"
  },
  "PowerState": "On",
  "PowerRestorePolicy": "LastState",
  "Boot": {
    "BootSourceOverrideTarget": "None",
    "BootSourceOverrideEnabled": "Disabled",
    "BootSourceOverrideMode": "Legacy",
    "BootSourceOverrideTarget@Redfish.AllowableValues": [
      "None",
      "Pxe",
      "Floppy",
      "Cd",
      "Hdd",
      "BiosSetup"
    ]
  },
  "TrustedModules": [
    {
      "FirmwareVersion": "v1.0",
      "InterfaceType": "TPM1_2",
      "Status": {
        "Health": "OK",
        "Oem": {
          "Public": {
            "Severity": "Informational"
          }
        },
        "state": "Absent"
      }
    }
  ],
  "BiosVersion": "3.78",
  "ProcessorSummary": {
    "Count": 1,
    "Model": "Central Processor",
    "Status": {
      "Oem": {
        "Public": {
          "Severity": "Informational"
        }
      },
      "HealthRollup": "OK"
    }
  },
  "MemorySummary": {
    "TotalSystemMemoryGiB": 8,
    "Status": {
      "Oem": {
        "Public": {
          "Severity": "Informational"
        }
      },
      "HealthRollup": "OK"
    }
  },
  "GraphicalConsole": {
    "ConnectTypesSupported": [
      "KVMIP"
    ],
    "MaxConcurrentSessions": 2,
    "Port": 2198,
    "ServiceEnabled": true
  },
  "VirtualMediaConfig": {
    "Port": 8208,
    "ServiceEnabled": true
  },
  "Processors": {
    "@odata.id": "/redfish/v1/Systems/1/Processors"
  },
  "Memory": {
    "@odata.id": "/redfish/v1/Systems/1/Memory"
  },
  "EthernetInterfaces": {
    "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces"
  },
  "Storage": {
    "@odata.id": "/redfish/v1/Systems/1/Storages"
  },
  "NetworkInterfaces": {
    "@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces"
  },
  "LogServices": {
    "@odata.id": "/redfish/v1/Systems/1/LogServices"
  },
  "PCIeDevices": [],
  "PCIeFunctions": [],
  "Bios": null,
  "SecureBoot": {
    "@odata.id": "/redfish/v1/Systems/1/SecureBoot"
  },
  "VirtualMedia": {
    "@odata.id": "/redfish/v1/Systems/1/VirtualMedia"
  },
  "Links": {
    "Chassis": [
      {
        "@odata.id": "/redfish/v1/Chassis/1"
      }
    ],
    "Managers": [
      {
        "@odata.id": "/redfish/v1/Managers/1"
      }
    ]
  },
  "Oem": {
    "Public": {
      "HealthSummary": {
        "CriticalAlarmCount": 0,
        "MajorAlarmCount": 0,
        "MinorAlarmCount": 0
      },
      "ConfigurationModel": "2025V1",
      "OSVersion": null,
      "HostnameSyncEnabled": true,
      "CPUUsagePercent": 0,
      "MemoryUsagePercent": 0,
      "LocalKvmEnabled": true,
      "SafePowerOffTimeoutEnabled": true,
      "SafePowerOffTimoutSeconds": 600,
      "PowerOnStrategy": "TurnOn",
      "LeakStrategy": "ManualPowerOff",
      "PowerRestoreDelayMode": "DefaultDelay",
      "PowerRestoreDelaySeconds": 0.0,
      "EnergySavingEnabled": false
    }
  },
  "Actions": {
    "#ComputerSystem.Reset": {
      "target": "/redfish/v1/Systems/1/Actions/ComputerSystem.Reset",
      "@Redfish.ActionInfo": "/redfish/v1/Systems/1/ResetActionInfo"
    },
    "Oem": {
      "Public": {
        "#ComputerSystem.FruControl": {
          "target": "/redfish/v1/Systems/1/Actions/Oem/Public/ComputerSystem.FruControl",
          "@Redfish.ActionInfo": "/redfish/v1/Systems/1/FruControlActionInfo"
        }
      }
    }
  }
}

响应码:200

PATCH

修改指定系统资源属性

命令功能

修改指定系统资源属性

参数说明

参见 请求头参数说明

请求消息体

json
{
  "UUID": uuid_value,
  "HostName": hostname_value,
  "AssetTag": tag,
  "Boot": {
    "BootSourceOverrideEnabled": state,
    "BootSourceOverrideTarget": target,
    "BootSourceOverrideMode": Legacy
  },
  "PowerMode": power_mode,
  "PowerRestorePolicy": RestorePolicy,
  "GraphicalConsole": {
    "Port": 2198,
    "ServiceEnabled": true
  },
  "VirtualMediaConfig": {
    "Port": 8208,
    "ServiceEnabled": true
  },
  "Oem": {
    "Public": {
      "ConfigurationModel": configuration_model,
      "HostnameSyncEnabled": hostname_enabled,
      "CPUThresholdPercent": number,
      "MemoryThresholdPercent": number,
      "LocalKvmEnabled": LocalKvmEnabled_value,
      "SafePowerOffTimeoutEnabled": enabled_value,
      "SafePowerOffTimoutSeconds": Seconds,
      "PowerOnStrategy": Strategy,
      "LeakStrategy": power_control,
      "PowerRestoreDelayMode": Delay_mode,
      "PowerRestoreDelaySeconds": Delay_seconds,
      "EnergySavingEnabled": EnergySavingEnabled_value
    }
  }
}

请求体参数说明

参数参数说明取值
uuid_valueUUID格式满足正则表达式:^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$
hostname_valueHostName字符串
tag自定义的资产标签null,或1~48个字节的字符串
state系统启动参数的使能状态Disabled/Once/Continuous
target系统的当前启动设备None/Pxe/Floppy/Cd/Hdd/BiosSetup
RestorePolicy通电开机策略AlwayOn/LastState/AlwaysOff
power_mode系统的节能模式MaximumPerformance/BalancedPerformance/PowerSaving/Static/OSControlled/OEM/EfficiencyFavorPower/EfficiencyFavorPerformance
configuration_model配置型号字符串
hostname_enablediBMA上报Hostname同步BMC使能开关true/false
number使用率的百分比值数字0-100
enabled_value下电时限使能开关布尔
Seconds安全下电超时时间数字
Strategy通电策略TurnOn/RestorePreviousState/StayOff
power_control液冷服务器漏液后电源控制策略ManualPowerOff/AutoPowerOff
Delay_mode上电延迟模式DefaultDelay/HalfDelay/FixedDelay/RandomDelay
Delay_seconds延迟上电的时间(单位秒)数字,保留一位小数
LocalKvmEnabled_value本地Kvm使能true/false
EnergySavingEnabled_value智能节能功能使能true/false
ifmatch_value请求消息的匹配参数可通过对相应资源发起GET操作,从响应头中获取(对应于"ETag"参数)

使用实例

请求样例:

http
PATCH https://device_ip/redfish/v1/Systems/1

请求头:

X-Auth-Token: 123456789***********************
Content-Type: application/json
If-Match: W/"3d607e36"

请求消息体:

json
{
  "AssetTag": "my test",
  "PowerMode": "BalancedPerformance",
  "GraphicalConsole": {
    "Port": 2198,
    "ServiceEnabled": true
  },
  "VirtualMediaConfig": {
    "Port": 8208,
    "ServiceEnabled": true
  },
  "Oem": {
    "Public": {
      "KVMSettings": {
        "PersistentUSBConnectionEnabled": true,
        "AutoOSLockEnabled": false,
        "AutoOSLockType": "Windows",
        "AutoOSLockKey": [
          ""
        ],
        "DisableKeyboardDuringBiosStartup": true
      },
      "VncSettings": {
        "DisableKeyboardDuringBiosStartup": true
      },
      "SSDMediaLifeLeftPercentThreshold": 5
    }
  }
}

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
  "@odata.id": "/redfish/v1/Systems/1",
  "@odata.type": "#ComputerSystem.v1_2_0.ComputerSystem",
  "Id": "1",
  "Name": "Computer System",
  "AssetTag": "my test",
  "Manufacturer": "",
  "Model": null,
  "PowerMode": "BalancedPerformance",
  "SerialNumber": null,
  "UUID": "421C1E9E-1DD2-11B2-986D-0018AC640A29",
  "HostName": null,
  "PartNumber": null,
  "HostingRole": [
    "ApplicationServer"
  ],
  "HostWatchdogTimer": {
    "FunctionEnabled": true,
    "TimeoutAction": "PowerDown"
  },
  "Status": {
    "Health": "OK",
    "Oem": {
      "Public": {
        "Severity": "Informational"
      }
    },
    "State": "Enabled"
  },
  "PowerState": "On",
  "PowerRestorePolicy": "LastState",
  "Boot": {
    "BootSourceOverrideTarget": "None",
    "BootSourceOverrideEnabled": "Disabled",
    "BootSourceOverrideMode": "Legacy",
    "BootSourceOverrideTarget@Redfish.AllowableValues": [
      "None",
      "Pxe",
      "Floppy",
      "Cd",
      "Hdd",
      "BiosSetup"
    ]
  },
  "Actions": {
    "#ComputerSystem.Reset": {
      "target": "/redfish/v1/Systems/1/Actions/ComputerSystem.Reset",
      "@Redfish.ActionInfo": "/redfish/v1/Systems/1/ResetActionInfo"
    },
    "Oem": {
      "Public": {
        "#ComputerSystem.FruControl": {
          "target": "/redfish/v1/Systems/1/Actions/Oem/Public/ComputerSystem.FruControl",
          "@Redfish.ActionInfo": "/redfish/v1/Systems/1/FruControlActionInfo"
        }
      }
    }
  }
}

响应码:200

POST (ACTION)

Reset

命令功能

重启服务器

说明

控制FRU上下电状态。

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Actions/ComputerSystem.Reset

请求头:

X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{
  "ResetType": value
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
value上下电类型On/ForceOff/GracefulShutdown/ForceRestart/Nmi/ForcePowerCycle/PowerCycle

使用指南

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/1/Actions/ComputerSystem.Reset

请求头:

X-Auth-Token: 123456789***********************
Content-Type: application/json

请求消息体:

json
{
  "ResetType": "On"
}

响应样例:

json
{
  "error": {
    "code": "Base.1.0.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "MessageId": "Base.1.0.Success",
        "RelatedProperties": [],
        "Message": "Successfully Completed Request",
        "MessageArgs": [],
        "Severity": "OK",
        "Resolution": "None"
      }
    ]
  }
}

响应码:200

FruControl

命令功能

FRU 上下电控制

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Actions/Oem/Public/ComputerSystem.FruControl

请求头:

X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{
  "FruControlType": controltype,
  "FruID": fruid
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
controltypeFRU控制类型On/GracefulShutdown/ForceRestart/Nmi/ForcePowerCycle/PowerCycle
fruidFRU ID0:OS平面 1:Base平面 2:Fabric平面 3:FC平面 4:全域平面

使用指南

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/1/Actions/Oem/Public/ComputerSystem.FruControl

请求头:

X-Auth-Token: 123456789***********************
Content-Type: application/json

请求消息体:

json
{
  "FruControlType": "On",
  "FruID": 0
}

响应样例:

json
{
  "error": {
    "code": "Base.1.0.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "MessageId": "Base.1.0.Success",
        "RelatedProperties": [],
        "Message": "Successfully Completed Request",
        "MessageArgs": [],
        "Severity": "OK",
        "Resolution": "None"
      }
    ]
  }
}

响应码:200

ClearNetworkHistoryUsageRate

命令功能

清空网口历史占用率资源信息

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/Actions/Oem/Public/ComputerSystem.ClearNetworkHistoryUsageRate

请求头:

X-Auth-Token: 123456789***********************
Content-Type: header_type

请求消息体:

json
{
  "BWUWaveTitle": network_card
}

请求头参数说明

参见 请求头参数说明

请求体参数说明

参数参数说明取值
network_card网卡标识可通过/redfish/v1/Systems/1/NetworkHistoryUsageRate查询获取

使用指南

使用实例

请求样例:

http
POST https://device_ip/redfish/v1/Systems/1/Actions/Oem/Public/ComputerSystem.ClearNetworkHistoryUsageRate

请求头:

X-Auth-Token: 123456789***********************
Content-Type: application/json

请求消息体:

json
{
  "BWUWaveTitle": "chassisNIC1(SF221Q)"
}

响应样例:

json
{
  "error": {
    "code": "Base.1.0.GeneralError",
    "message": "A general error has occurred. See ExtendedInfo for more information.",
    "@Message.ExtendedInfo": [
      {
        "@odata.type": "#Message.v1_0_0.Message",
        "MessageId": "Base.1.0.Success",
        "RelatedProperties": [],
        "Message": "Successfully Completed Request",
        "MessageArgs": [],
        "Severity": "OK",
        "Resolution": "None"
      }
    ]
  }
}

响应码:200