ipmcset -t maintenance -d callredfish
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t maintenance -d callredfish
命令功能
调用 Redfish 接口
命令格式
text
ipmcset -t maintenance -d callredfish -v <uri> <method> <data> <header>参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
uri | ReqBody | string | 是 | - | [{"Type": "Script", "Formula": "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 | ReqBody | string | 是 | - | [{"Type": "Enum", "Formula": ["GET", "PATCH", "POST", "DELETE"]}] | Method types are: GET, PATCH, POST, DELETE |
data | ReqBody | string | 是 | - | - | Must be JSON character or null |
header | ReqBody | string | 是 | - | - | Must be JSON character or null |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
PwdValid | RspBody | - | 否 | - | - | - |
RedfishValid | RspBody | - | 否 | - | - | - |
后端处理流
无
使用示例
text
ipmcset -t maintenance -d callredfish -v <uri> <method> <data> <header>输出样例
| Scenario | Output | Source |
|---|---|---|
| 其他 | Please input your username and password in the format "username:password" | interface_config/cli/echoes/ipmcset/maintenance_callredfish |
| 失败 | Invalid data | interface_config/cli/echoes/ipmcset/maintenance_callredfish |
| 失败 | Invalid header | interface_config/cli/echoes/ipmcset/maintenance_callredfish |
| 失败 | get curl handler failed | interface_config/cli/echoes/ipmcset/maintenance_callredfish |
| 失败 | Send http msg failed, err: <value> | interface_config/cli/echoes/ipmcset/maintenance_callredfish |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | maintenance |
| dataitem | callredfish |
| URI | /cli/v1/maintenance/callredfish |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/maintenance.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |