跳到主要内容

PATCH – 更新 GPU PowerLimit 设置

使用 PATCH 方法更新 BMC 的 GPU 功率限制资源中的属性。

请求 URL

在基于 AMD 的系统中,只有 NVIDIA GPU 支持此功能。
PATCH https://<BMC_IPADDR>/redfish/v1/Chassis/1/Controls/GPU{N}_PowerLimit

请求正文

要更新的属性如下所示,所有这些属性都可以单独更改。

字段类型错误消息 ID

SetPoint

数字“Disabled”或“Manual”。

ControlMode

字符串所需的控件设定点。在同时给定 SetPoint 和 ControlMode 的情况下,如果 SetPoint 是一个数字,则 ControlMode 必须为“Manual”,如果 SetPoint 为 null,则 ControlMode 必须为“Disabled”,反之亦然,否则返回 400 Conflict。

响应正文

响应返回的内容与 GET 操作相同,但更新了属性。

状态代码

HTTP 状态代码错误消息 ID
400BadRequest
500InternalError

示例

以下示例是 PATCH 正文。

{
"SetPoint": 50,
"ControlMode": "Manual"
}

返回以下示例 JSON 响应:

{
"Status": {
"Health": "OK",
"State": "Enabled"
},
"@odata.context": "/redfish/v1/$metadata#Control.Control",
"Id": "GPU1_PowerLimit",
"Name": "GPU Power Limit",
"@odata.type": "#Control.v1_1_0.Control",
"@odata.id": "/redfish/v1/Chassis/1/Controls/GPU1_PowerL{imit",
"SetPointType": "Single",
"SetPointUnits": "Watt",
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/1",
},
{
“@odata.id”: “/redfish/v1/System/1/Processor/GPU1”
}
],
"Increment": 1,
"PhysicalContext": "Controls",
"Sensor": {
"Reading": 20,
"DataSourceUri": "/redfish/v1/Chassis/1/Sensors/GPU1_Power"
},
"ControlType": "Power",
"Implementation": "Programmable",
"Description": "This resource shall represent gpu power limit of a chassis for a Redfish implementation.",
"@odata.etag": "\"79fb6c6b41bd242e8a2\"",
"ControlMode": "Manual",
"SetPoint": 50
}