ipmcset -t maintenance -d callredfish
更新时间: 2026/07/28
在Gitcode上查看源码命令功能
调用 Redfish 接口
命令格式
ipmcset -t maintenance -d callredfish -v <uri> <method> <data> <header>
命令类型
ipmcset
参数说明
| Name | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|
uri | string | 是 | - | Type: Script; if string.match(Input, '^/redfish') == nil or string.match(Input, '%.%/') ~= nil then local err = base_messages.PropertyValueFormatError(Input, 'uri') err.RelatedProperties = {'#/uri'} error(err) end return true | Must start with '/redfish' |
method | string | 是 | - | Type: Enum; Enum: GET, PATCH, POST, DELETE | Method types are: GET, PATCH, POST, DELETE |
data | string | 是 | - | - | Must be JSON character or null |
header | string | 是 | - | - | Must be JSON character or null |
输出样例
Invalid data
Invalid header
get curl handler failed
Send http msg failed, err: <value>