功能介绍
通过调用修改迁移任务配置的接口,可以根据用户提供的信息修改迁移任务配置,实现对迁移任务配置的修改。
接口类型
POST
接口地址
/v4/ctcloud/openapi_cms/cms/task/config/update
接口参数
名称 类型 是否必填 说明 id long 是 绑定关系id encryption int 是 是否加密迁移 0 不加密 1 加密 incre int 是 是否开启增量 0 关闭增量 1 开启增量 compress int 是 是否压缩迁移 0 不压缩 1压缩 networkConfigStatus int 是 0静态IP 1动态IP (单网卡时有效) networkConfig string 是 目标机预设的网卡配置,可填null
请求参数
请求头
Content-Type: { 'Content-Type' :“appliaction/json”} #内容类型。
userid:{'userid':“xxx”}# 用户id。
accountld:{'accountld':“xxx”}# 客户对应云公司账户的accountld。
请求示例
- 成功示例
{
"statusCode": 800,
"message": "Success",
"description": "成功",
"details": null,
"returnObj": null
}
- 失败示例
{
"statusCode": 900,
"message": "error",
"description": "请先进行目标机分区",
"details": null,
"returnObj": null,
"errorCode": "Openapi.CMS.Error",
"error": "Openapi.CMS.Error"
}