You need to enable JavaScript to run this app.
导航

DeleteCommand

最近更新时间2023.11.20 19:41:49

首次发布时间2023.09.04 15:43:18

调用DeleteCommand接口,删除一条自定义命令。

调试

请求参数

名称类型是否必填示例值描述
ActionStringDeleteCommand要执行的操作,取值:DeleteCommand。
VersionString2020-04-01接口的版本,取值:2020-04-01。
CommandIdStringcmd-4302d02424c5c8e10281e3a31****自定义命令ID。可通过DescribeCommands接口查询获取。

返回数据

名称类型示例值描述
CommandIdStringcmd-4302d02424c5c8e10281e3a31****自定义命令ID。

请求示例

GET /?Action=DeleteCommand&Version=2020-04-01&CommandId=cmd-4302d02424c5c8e10281e3a31**** HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: ecs

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202106111445100102252431000052****",
        "Action": "DeleteCommand",
        "Version": "2020-04-01",
        "Service": "ecs",
        "Region": "cn-beijing"
    },
    "Result": {
        "CommandId": "cmd-4302d02424c5c8e10281e3a31****"
    }
}