最近更新时间:2023.07.18 10:22:41
首次发布时间:2023.07.18 10:22:41
调用DeleteMigrationSource接口,删除一个迁移源。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteMigrationSource | 要执行的操作,取值:DeleteMigrationSource。 |
Version | String | 是 | 2020-04-01 | API的版本,取值: 2020-04-01。 |
SourceId | String | 是 | s-3tiegs1y963vj0**** | 迁移源ID。您可以调用DescribeMigrationSources接口查询获取。 |
操作接口仅返回公共参数及错误码。
GET /?Action=DeleteMigrationSource&Version=2020-04-01&SourceId=s-3tiegs1y963vj0**** HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing Service: smc
{ "ResponseMetadata": { "RequestId": "2021062415303301022514515207C4****", "Action": "DeleteMigrationSource", "Version": "2020-04-01", "Service": "smc", "Region": "cn-beijing" }, "Result": {} }
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidJobStateForDelete.Unsupported | The specified migration job state does not support delete. | 指定的迁移任务状态不支持删除。 |
400 | InvalidSourceStateForDelete.Unsupported | The specified migration source state does not support delete. | 迁移源状态不支持删除。 |
400 | MissingParameter.SourceId | The required parameter SourceId is not supplied. | 参数SourceId不能为空。 |
404 | InvalidMigrationSource.NotFound | The specified migration source does not exist. | 指定的迁移源不存在。 |