调用接口更新迁移上云任务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RequestPars | string | 否 | 扩展请求参数,JSON格式。 | {} |
Id | string | 否 | 任务ID。 | 1 |
ClusterType | string | 否 | 集群类型。
| Nacos-Ans |
OriginInstanceAddress | string | 否 | 源实例节点地址。 | 192.168.1.1:8848 |
OriginInstanceName | string | 否 | 源实例名称。 | 来源集群 |
OriginInstanceNamespace | string | 否 | 命名空间列表,当来源集群是Nacos时选填。 | namesapceId1,namesapceId2 |
TargetInstanceId | string | 否 | 目标实例ID。 | mse-cn-ud82***** |
TargetClusterName | string | 否 | 目标实例名称。 | 目标集群 |
TargetClusterUrl | string | 否 | 目标实例Url。 | mse-66*****-nacos-ans.mse.aliyuncs.com:8848 |
ProjectDesc | string | 否 | 描述。 | 这是一段描述 |
AcceptLanguage | string | 否 | 返回信息的语言类型:
| zh |
返回参数
示例
正常返回示例
JSON
格式
{
"HttpCode": "200",
"Data": {
"Id": "1",
"UserId": "183876217*****",
"ClusterType": "Nacos-Ans",
"OriginInstanceAddress": "192.168.100.2:2181",
"OriginInstanceName": "src",
"OriginInstanceNamespace": "fsdfsdfdsf",
"TargetInstanceId": "mse-cn-zvp2u*****",
"TargetClusterName": "multiple-nacos",
"TargetClusterUrl": "mse-0b*****-nacos-ans.mse.aliyuncs.com:8848",
"ProjectDesc": "1232345",
"GmtCreate": "2022-01-07T10:07:57.000+0000",
"GmtModified": "2022-01-07T10:07:57.000+0000"
},
"RequestId": "AF21683A-29C7-4853-AC0F-B5ADEE4****",
"Message": "请求处理成功",
"ErrorCode": "mse-100-000",
"Success": true
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
404 | NotFound | Not found:%s | 资源不存在:%s |
500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
访问错误中心查看更多错误码。