功能介绍
迁移任务信息展示界面支持对迁移任务的查询展示。
接口类型
GET
接口参数
名称 类型 是否必填 说明 id int 是 任务id
请求参数
请求头
userid:{'userid':“xxx”}# 用户id。
accountld:{'accountld':“xxx”}# 客户对应云公司账户的accountld。
请求示例
- 成功示例
{
"statusCode": 800,
"message": "Success",
"description": "成功",
"details": null,
"returnObj":{
"id": 206,
"type": 51,
"os": 1,
"stage": 2,
"ip": "xx.xx.xx.xx",
"peIp": "xx.xx.xx.xx",
"percent": 100,
"complete": 0,
"total": 0,
"difference": 0,
"status": 0,
"incre": 1,
"rate": 113899890,
"speed": 0,
"estimate": 0.001,
"curMigOption": "",
"curPercent": 0,
"taskStatus": 3,
"key": null,
"hostPoolNewId": 460,
"peHostPoolNewId": 478,
"hostSummary": {
"sources": {
"hostName": "ecs-90fd",
"platform": "centos 7.8.2003",
"publicIpv4": "xx.xx.xx.xx",
"ipList": [
{
"id": 801,
"hostPoolNewId": 460,
"name": "eth0",
"ipv4": "xx.xx.xx.xx",
"ipv6": "xxx::xxx:xxx:xxx:xxx"
}
],
"cpuName": "Intel(R) Xeon(R) Platinum 8378A CPU @ 3.00GHz",
"cores": 4,
"diskList": [
{
"id": 1457,
"hostPoolNewId": 460,
"name": "sda",
"size": 40960
}
],
"total": 7580,
"alias": "linyz-test"
},
"target": {
"hostName": "linux pe",
"platform": "pe 2.0.13",
"publicIpv4": "xxx.xxx.xxx.xxx",
"ipList": [
{
"id": 803,
"hostPoolNewId": 478,
"name": "eth0",
"ipv4": "xx.xx.xx.xx",
"ipv6": "xxx::xxx:xxx:xxx:xxx"
}
],
"cpuName": "Intel(R) Xeon(R) Gold 6278C CPU @ 2.60GHz",
"cores": 2,
"diskList": [
{
"id": 1459,
"hostPoolNewId": 478,
"name": "vda",
"size": 40960
}
],
"total": 3535,
"alias": "8862e9c1"
}
},
"totalTime": 416931978,
"timeIncrement": true,
"taskFinish": false,
"prepareTime": 0,
"transferTime": 295,
"increTime": 2288283,
"checkTime": 0,
"repairTime": 0,
"guideTime": 0,
"recoveryTime": null,
"recoveryCount": null,
"proxyIp": "",
"pattern": 2,
"checkCancelStatus": 0,
"mountPoints": [
{
"migOption": "/",
"peMigOption": "/",
"percent": 100
}
]
}
}
}
- 失败示例
{
"statusCode": 900,
"message": "error",
"description": "任务不存在",
"details": null,
"returnObj": null,
"errorCode": "Openapi.CMS.Error",
"error": "Openapi.CMS.Error"
}