代码仓
中
Systems
更新时间: 2026/08/06
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Systems/system_id

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-指定系统资源模型的OData描述信息
@odata.idstringtrue-指定系统资源的访问路径
@odata.typestringtrue-指定系统资源的类型
Idstringtrue-指定系统资源的ID
Namestringtrue-指定系统资源的名称
AssetTagnullfalse-指定系统资源的资产标签
Manufacturerstringtrue-指定系统资源的制造商
Modelnulltrue-指定系统资源的型号
PowerModestringfalseMaximumPerformance/BalancedPerformance/PowerSaving/Static/OSControlled/OEM/EfficiencyFavorPower/EfficiencyFavorPerformance指定系统的节能模式
SerialNumbernulltrue-指定系统资源的序列号
UUIDstringfalse-指定系统资源的全球唯一标识
SystemTypestringtruePhysical指定系统资源的系统类型
HostNamenullfalse-指定系统资源的主机名
PartNumbernulltrue-指定系统资源的部件号
HostingRole[ ]arraytrueApplicationServer/Switch/StorageServer指定系统资源的主机角色
HostWatchdogTimer {objecttrue-指定系统资源的看门狗计时器功能
HostWatchdogTimer.FunctionEnabledbooleantrue-系统资源的看门狗使能
HostWatchdogTimer.TimeoutActionstringtrueNone/OEM/PowerCycle/PowerDown/ResetSystem系统资源的看门狗超时策略
}
LastResetTimestringtrue-上次重启时间
Status {objecttrue-指定系统资源的状态,包括Health/State/Severity,包括:
● Health:健康状态
● Severity:告警严重级别
● State:静态模式
Status.Healthstringtrue-指定系统资源的健康状态,包括:
● OK:正常
● Warning:警告
● Critical:严重
● null
Status.Oem {objecttrue-自定义属性
Status.Oem.Public {objectfalse-自定义属性
Status.Oem.Public.Severitystringfalse-指定系统资源的自定义健康状态,包括:
● Informational:正常
● Minor:轻微
● Major:严重
● Critical:紧急
● null
}
}
Status.Statestringtrue-指定系统的状态
● Offline:离线
● Partiallydegraded:部分降级
● Degraded:降级
● Optimal:正常
● Failed:故障
● Not Configured:未配置
● Interimrecovery:临时恢复
● Readyfor recovery:准备恢复
● Recovering:恢复中
● Wrongdrive replaced:错误硬盘被替换
● Driveimproperly connected:硬盘连接不正确
● Expanding:扩容中
● Not available:不可用
● Queuedfor expansion:排队等待扩容
● Disabledfrom SCSIconflict:SCSI冲突禁用
● Ejected:已弹出
● Erasein progress:擦除进行中
● Unused:未使用
● Readyto performpredictive sparerebuild:准备执行预测性热备重建
● RPIin progress:RPI进行中
● RPI queued:RPI排队中
● Encryptedwithoutkey:加密但无密钥
● Encryptionmigration:加密迁移中
● Encrypted & re-keying:加密且正在重新密钥
● Encryptedwith encryptionoff:加密但加密已关闭
● Volumeencode requested:请求卷编码
● Encryptedwithre-key request:加密且有重新密钥请求
● Unsupported:不支持
● Not Formatted:未格式化
● Formatting:格式化中
● Sanitizing:安全擦除中
}
PowerStatestringtrueOn/Off指定系统资源的上电状态
PowerRestorePolicystringfalseAlwayOn/LastState/AlwaysOff通电开机策略
Boot {objectfalse-指定系统资源的启动参数
Boot.BootSourceOverrideTargetstringfalse-系统的当前启动设备
Boot.BootSourceOverrideEnabledstringfalseDisabled/Once/Continuous系统启动参数的使能状态
Boot.BootSourceOverrideModestringfalseLegacy/UEFI系统启动模式
Boot.BootSourceOverrideTarget@Redfish.AllowableValues[ ]arraytrueNone/Pxe/Floppy/Cd/Hdd/BiosSetupRedfish定义的启动设备
}
TrustedModules [ {arraytrue-指定系统资源的可信模块
TrustedModules[].FirmwareVersionstringtrue-可信模块的固件版本
TrustedModules[].InterfaceTypestringtrueTPM1_2/TPM2_0/TCM1_0可信模块的接口类型
TrustedModules[].Status {objecttrue-指定系统资源的状态,包括Health/State/Severity,包括:
● Health:健康状态
● Severity:告警严重级别
● State:静态模式
TrustedModules[].Status.Healthstringtrue-指定系统资源的健康状态,包括:
● OK:正常
● Warning:警告
● Critical:严重
● null
TrustedModules[].Status.Oem {objecttrue-自定义属性
TrustedModules[].Status.Oem.Public {objectfalse-自定义属性
TrustedModules[].Status.Oem.Public.Severitystringfalse-严重性级别
● OK:正常
● Warning:告警
● Critical:致命
}
}
TrustedModules[].Status.statestringtrue-可信模块的状态
}
} ]
BiosVersionstringtrue-指定系统资源的BIOS版本
ProcessorSummary {objecttrue-指定系统资源的CPU信息
ProcessorSummary.Countnumbertrue-CPU个数
ProcessorSummary.Modelstringtrue-CPU型号
ProcessorSummary.CoreCountnumbertrue-处理器核心总数
ProcessorSummary.Metrics {objecttrue-处理器指标摘要
ProcessorSummary.Metrics.@odata.idstringtrue-Metrics资源的访问路径
}
ProcessorSummary.Oem {objecttrue-自定义属性
ProcessorSummary.Oem.Public {objectfalse-自定义属性
ProcessorSummary.Oem.Public.PresencestringtruePresent、Absent在位状态
}
}
ProcessorSummary.Status {objecttrue-指定系统资源的状态,包括Health/State/Severity,包括:
● Health:健康状态
● Severity:告警严重级别
● State:静态模式
ProcessorSummary.Status.HealthRollupstringtrue-指定系统子资源整体运行状态,通常取值为OK,任意Job子资源JobStatus存在异常(Critical)时取值为Warning,包括:
● OK:正常
● Warning:警告
ProcessorSummary.Status.Oem {objecttrue-自定义属性
ProcessorSummary.Status.Oem.Public {objectfalse-自定义属性
ProcessorSummary.Status.Oem.Public.Severitystringfalse-错误严重级别,包括:
● OK:正常
● Warning:警告
● Critical:严重
}
}
}
}
MemorySummary {objecttrue-指定系统资源的内存信息
MemorySummary.TotalSystemMemoryGiBnumbertrue-系统总内存容量,单位为GB
MemorySummary.Metrics {objecttrue-内存指标摘要
MemorySummary.Metrics.@odata.idstringtrue-Metrics资源的访问路径
}
MemorySummary.Oem {objecttrue-自定义属性
MemorySummary.Oem.Public {objectfalse-自定义属性
MemorySummary.Oem.Public.MemoryCountnumbertrue-内存数量
}
}
MemorySummary.Status {objecttrue-指定系统资源的状态,包括Health/State/Severity,包括:
● Health:健康状态
● Severity:告警严重级别
● State:静态模式
MemorySummary.Status.HealthRollupstringtrue-指定系统子资源整体运行状态,通常取值为OK,任意Job子资源JobStatus存在异常(Critical)时取值为Warning,包括:
● OK:正常
● Warning:警告
MemorySummary.Status.Oem {objecttrue-自定义属性
MemorySummary.Status.Oem.Public {objectfalse-自定义属性
MemorySummary.Status.Oem.Public.Severitystringfalse-错误严重级别,包括:
● OK:正常
● Warning:警告
● Critical:严重
}
}
}
}
GraphicalConsole {objectfalse-虚拟控制台(KVM-IP)服务的信息。BMC300 5.12.0及以上版本支持
GraphicalConsole.ConnectTypesSupported[ ]arraytrue-支持的虚拟控制台连接类型
GraphicalConsole.MaxConcurrentSessionsnumbertrue-最大会话数
GraphicalConsole.Portnumberfalse-服务的端口号
GraphicalConsole.ServiceEnabledbooleanfalse-服务的使能状态
}
VirtualMediaConfig {objectfalse-虚拟媒体服务的信息。BMC300 5.12.0及以上版本支持
VirtualMediaConfig.Portnumberfalse-服务的端口号
VirtualMediaConfig.ServiceEnabledbooleanfalse-服务的使能状态
}
Processors {objecttrue-处理器资源节点的访问路径
Processors.@odata.idstringtrue-Processors资源的访问路径
}
Memory {objecttrue-内存资源节点的访问路径
Memory.@odata.idstringtrue-Memory资源的访问路径
}
EthernetInterfaces {objecttrue-主机网卡资源节点的访问路径
EthernetInterfaces.@odata.idstringtrue-EthernetInterfaces资源的访问路径
}
Storage {objecttrue-存储资源节点的访问路径
Storage.@odata.idstringtrue-Storage资源的访问路径
}
NetworkInterfaces {objecttrue-网络接口资源节点的访问路径
NetworkInterfaces.@odata.idstringtrue-NetworkInterfaces资源的访问路径
}
LogServices {objecttrue-日志服务资源节点的访问路径
LogServices.@odata.idstringtrue-LogServices资源的访问路径
}
PCIeDevices[ ]arraytrue-PCIe设备资源节点的访问路径
PCIeFunctions[ ]arraytrue-PCIe功能资源节点的访问路径
Biosnulltrue-Bios资源节点的访问路径(只有V5服务器存在)
SecureBoot {objecttrue-安全启动资源节点的访问路径
SecureBoot.@odata.idstringtrue-SecureBoot资源的访问路径
}
VirtualMedia {objecttrue-虚拟媒体资源访问路径
VirtualMedia.@odata.idstringtrue-VirtualMedia资源的访问路径
}
Links {objecttrue-系统资源的资源链接
Links.Chassis [ {arraytrue-机箱资源节点的访问路径
Links.Chassis[].@odata.idstringtrue-成员资源节点的访问路径
} ]
Links.Managers [ {arraytrue-管理资源的资源节点访问路径
Links.Managers[].@odata.idstringtrue-成员资源节点的访问路径
} ]
Links.TrustedComponents[ ]arraytrue-可信组件链接
}
Oem {objecttrue-自定义属性
Oem.Public {objectfalse-自定义属性
Oem.Public.HealthSummary {objecttrue-系统健康状态总览
Oem.Public.HealthSummary.CriticalAlarmCountnumbertrue-当前系统中致命告警的数量
Oem.Public.HealthSummary.MajorAlarmCountnumbertrue-当前系统中严重告警的数量
Oem.Public.HealthSummary.MinorAlarmCountnumbertrue-当前系统中轻微告警的数量
}
Oem.Public.ConfigurationModelstringfalse-配置型号
Oem.Public.OSVersionnulltrue-操作系统版本
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-智能节能功能使能
}
}
Actions {objecttrue-Redfish允许的指定系统资源可执行操作
Actions.#ComputerSystem.Reset {objecttrue-OS重启操作
Actions.#ComputerSystem.Reset.targetstringtrue-重启操作属性的访问路径
Actions.#ComputerSystem.Reset.@Redfish.ActionInfostringtrue-操作信息查询路径
}
Actions.Oem {objecttrue-自定义属性
Actions.Oem.Public {objectfalse-自定义属性
Actions.Oem.Public.#ComputerSystem.FruControl {objecttrue-FRU重启操作
Actions.Oem.Public.#ComputerSystem.FruControl.@Redfish.ActionInfostringtrue-操作信息查询路径
Actions.Oem.Public.#ComputerSystem.FruControl.targetstringtrue-重启操作属性的访问路径
}
}
}
}

supported_methods ​

  • GET
  • PATCH
  • POST

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"
    },
    "Metrics": {
      "@odata.id": "/redfish/v1/Systems/1/Processors/Metrics"
    },
    "Oem": {
      "Public": {
        "Presence": "Present"
      }
    },
    "CoreCount": 32
  },
  "MemorySummary": {
    "TotalSystemMemoryGiB": 8,
    "Status": {
      "Oem": {
        "Public": {
          "Severity": "Informational"
        }
      },
      "HealthRollup": "OK"
    },
    "Oem": {
      "Public": {
        "MemoryCount": 8
      }
    },
    "Metrics": {
      "@odata.id": "/redfish/v1/Systems/1/Memory/Metrics"
    }
  },
  "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"
      }
    ],
    "TrustedComponents": []
  },
  "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"
        }
      }
    }
  },
  "LastResetTime": "2023-01-01T00:00:00+00:00"
}

响应码: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
    }
  }
}

请求体参数说明

参数参数说明取值
UUIDUUID格式满足正则表达式:^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$
HostNameHostName字符串
AssetTag自定义的资产标签null,或1~48个字节的字符串
BootSourceOverrideEnabled系统启动参数的使能状态Disabled/Once/Continuous
BootSourceOverrideTarget系统的当前启动设备None/Pxe/Floppy/Cd/Hdd/BiosSetup
PowerRestorePolicy通电开机策略AlwayOn/LastState/AlwaysOff
PowerMode系统的节能模式MaximumPerformance/BalancedPerformance/PowerSaving/Static/OSControlled/OEM/EfficiencyFavorPower/EfficiencyFavorPerformance
ConfigurationModel配置型号字符串
HostnameSyncEnablediBMA上报Hostname同步BMC使能开关true/false
CPUThresholdPercentCPU使用率的百分比值数字0-100
MemoryThresholdPercent内存使用率的百分比值数字0-100
SafePowerOffTimeoutEnabled下电时限使能开关布尔
SafePowerOffTimoutSeconds安全下电超时时间数字
PowerOnStrategy通电策略TurnOn/RestorePreviousState/StayOff
LeakStrategy液冷服务器漏液后电源控制策略ManualPowerOff/AutoPowerOff
PowerRestoreDelayMode上电延迟模式DefaultDelay/HalfDelay/FixedDelay/RandomDelay
PowerRestoreDelaySeconds延迟上电的时间(单位秒)数字,保留一位小数
LocalKvmEnabled本地Kvm使能true/false
EnergySavingEnabled智能节能功能使能true/false

使用实例

请求样例:

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

POST (ACTION) ​

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

POST (ACTION) ​

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