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

DeleteMigrationJob

最近更新时间2023.07.18 10:22:41

首次发布时间2023.07.18 10:22:41

调用DeleteMigrationJob接口,删除一个迁移任务。

请求参数

名称类型是否必填示例值描述
ActionStringDeleteMigrationJob要执行的操作,取值:DeleteMigrationJob。
VersionString2020-04-01API的版本,取值: 2020-04-01。
MigrationJobIdStringjob-3tiegs1y963vj0****迁移任务ID。您可以调用DescribeMigrationJobs接口查询获取。

返回数据

操作接口仅返回公共参数及错误码。

请求示例

GET /?Action=DeleteMigrationJob&Version=2020-04-01&MigrationJobId=job-3tiegs1y963vj0**** HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: smc

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "DeleteMigrationJob",
        "Version": "2020-04-01",
        "Service": "smc",
        "Region": "cn-beijing"
    },
    "Result": {}
}

错误码

HttpCode错误码错误信息描述
400InvalidJobStateForDelete.UnsupportedThe specified migration job state does not support delete.指定的迁移任务状态不支持删除。
400MissingParameter.MigrationJobIdThe required parameter MigrationJobId is not supplied.参数MigrationJobId不能为空。
404InvalidMigrationJob.NotFoundThe specified migration job does not exist.指定的迁移任务不存在。