功能介绍
成本评估任务详情是对任务基本信息、评估明细进行展示,主要包括基本信息( 任务名称、源端区域、目标端区域、源端类型、调研方式、申请时间),成本评估明细(阶段、明细名称、详细描述、操作、备注)等信息功能。
接口类型
POST
接口地址
https://cms.ctyun.cn/apis/cost_assessment/task/list
接口参数
value参数 参数类型 参数说明 offset int 偏移量 Limit int 分页数量 pageNo int 当前页 pageSize int 绑定关系id rows json 查询结果 Id long rows子项:任务表Id name string rows子项:任务名称 sourceType int rows子项:源端类型 1,阿里云 2,IDC targetType int rows子项:目标端类型 targetRegionId string rows子项:目标端资源池id targetRegioname string rows子项:目标端资源池名称 status int rows子项:任务状态 vmStatus int rows子项:云主机子任务状态 vmFailureReason string rows子项:云主机子任务失败原因 databaseStatus int rows子项:数据库子任务状态 databaseFailureReason string rows子项:数据库子任务失败原因 objectStorageStatus int rows子项:对象存储子任务状态 objectStorageFailureReason string rows子项:对象存储子任务失败原因 type int rows子项:调研方式 createTime date rows子项:生成时间 updateTime date rows子项:修改时间 remark string rows子项:备注 total int 总条数 TotalPages int 总页数 frist string 根据pageNO和pageSize计算当前页在总结果的集合中的位置
请求参数
请求头
headers: {‘token’: “xxx”}
请求示例
- 成功反馈
{
"offset": 0,
"limit": 10,
"pageNo": 1,
"pageSize": 10,
"rows": [
{
"id": 390,
"name": "测试",
"sourceType": 1,
"targetType": 1,
"targetRegionId": "d7d93102848711ea9ff10242ac110002",
"targetRegionName": "深圳",
"status": 3,
"vmStatus": 2,
"vmFailureReason": null,
"databaseStatus": 2,
"databaseFailureReason": null,
"objectStorageStatus": 2,
"objectStorageFailureReason": null,
"type": 2,
"createTime": "2023-10-26 16:02:36",
"updateTime": null,
"remark": null
},
{
"id": 321,
"name": "测试",
"sourceType": 1,
"targetType": 1,
"targetRegionId": "d7d93102848711ea9ff10242ac110002",
"targetRegionName": "福州4",
"status": 3,
"vmStatus": 0,
"vmFailureReason": null,
"databaseStatus": 2,
"databaseFailureReason": null,
"objectStorageStatus": 0,
"objectStorageFailureReason": null,
"type": 1,
"createTime": "2023-10-12 08:51:32",
"updateTime": "2023-10-12 08:51:34",
"remark": null
},
],
"total": 34,
"totalPages": 4,
"first": 1
}
- 失败反馈
{
"code": 1099006,
"msg": "单页查询超过上限",
"data": null
}