You need to enable JavaScript to run this app.
文档中心
云服务器

云服务器

复制全文
下载 pdf
云助手
DeleteCommand - 删除自定义命令
复制全文
下载 pdf
DeleteCommand - 删除自定义命令
调用DeleteCommand接口,删除一条自定义命令。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:DeleteCommand​
要执行的操作,取值:DeleteCommand。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
CommandId string 必选 示例值:cmd-4302d02424c5c8e10281e3a31****​
自定义命令ID。可通过DescribeCommands接口查询获取。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
CommandId string 示例值:cmd-4302d02424c5c8e10281e3a31****​
自定义命令ID。​
​
​
​
请求示例​
​
GET /?Action=DeleteCommand&Version=2020-04-01&CommandId=cmd-ydckta****HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
Service: ecs​
​
返回示例​
​
{​
"ResponseMetadata":{​
"RequestId":"2023082415303301022514515207C4****",​
"Action":"DeleteCommand",​
"Version":"2020-04-01",​
"Service":"ecs",​
"Region":"cn-beijing"​
},​
"Result":{​
"CommandId":"cmd-ydckta****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter.AccountId​
The required parameter AccountId is not supplied.​
用户ID不能为空。​
400​
MissingParameter.CommandId​
The required parameter CommandId is not supplied.​
命令 ID 不能为空。​
404​
InvalidCommand.NotFound​
The specified Command does not exist.​
指定的命令不存在。​
500​
InternalError​
An internal error has occurred.​
内部错误,请重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2026.01.08 17:57:05
这个页面对您有帮助吗?
有用
有用
无用
无用