功能介绍
成本评估任务列表是对任务信息进行展示,主要包括任务编号、任务名称、源端类型、目标区域、任务状态、调研方式、创建时间,基本信息操作等功能。
接口类型
GET
接口地址
https://cms.ctyun.cn/apis/cost_assessment/task/vo/details/99
接口参数
value参数 参数类型 参数说明 offset int 偏移量 : 第一条数据在表中的位置 limit int 每页的数量 pageNo int 页编号 : 第几页 pageSize int 页大小 : 每页的数量 rows json 返回值 id long rows子项:源端,云主机id taskId long rows子项:源端,资源发现任务id alias string rows子项:源端,别名 resourceStatus int rows子项:源端,资源状态,ResourceStatusEnum,1未计划,2待迁移,3迁移中,4迁移完成,5迁移失败 resourceType int rows子项:源端,资源类型 migrateGroupId long rows子项:源端,迁移组id migratePlanId long rows子项:源端,cpu迁移计划id type int 采集方式,aksk、离线导入 sourceType int 源端类型:1 阿里云,2 IDC(冗余自t_resource_discovery_task表) version string 系统版本 publicIp string 源端,公网ip primaryIp string 源端,弹性网卡主私有IP地址 uuid string uuid resourceCreated int 资源是否已创建,0未创建,1已创建 changed int 是否变更,1是,0否 createTime date 生成时间 remark string 备注 taskName string 发现任务名称 migrateGroupName string 迁移组名称 migratePlanName string 迁移计划名称
请求示例
- 成功反馈
{
"code": 200,
"msg": "success",
"data": {
"taskName": "测试",
"sourceRegionId": "cn-shanghai",
"sourceRegionName": "上海",
"targetRegionId": "d7d93102848711ea9ff10242ac110002",
"targetaRegionName": "福州4",
"sourceType": 1,
"type": 1,
"applicationTime": "2023-08-07 14:42:03",
"vmAmount": 6,
"dataBaseType": [
"Primary"
"MySQL",
"PostgreSQL"
],
"sourceStorageSize": null,
"sourceStorageSizeConversion": null
}
}
- 失败反馈
{
"code": 500,
"msg": "任务不存在",
"data": null
}