更新时间:2024-10-29 GMT+08:00
查询后台任务管理中的指定记录
功能介绍
查询后台任务管理中的指定记录。
URI
GET /v2/{project_id}/instances/{instance_id}/tasks/{task_id}
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| project_id | 是 | String | 项目ID,获取方式请参见获取项目ID。 |
| instance_id | 是 | String | 实例ID。 |
| task_id | 是 | String | 任务ID。 |
请求参数
无
请求示例
GET https://{endpoint}/v2/{project_id}/instances/{instance_id}/tasks/{task_id} 响应示例
状态码: 200
查询成功。
{
"task_count" : "1",
"tasks" : [ {
"id" : "ff80808272dcc90f0172df1e490f41b0",
"name" : "bindInstancePublicIp",
"user_name" : "dms_test",
"user_id" : "xxxxxxxx93ff484a828144c6xxxxxxxx",
"params" : "{\"public_ip_id\":\"06a13350-4305-4338-9f0e-6b322bb1413d\",\"public_ip_address\":\"xx.xx.xx.xx\",\"enable_public_ip\":true}",
"status" : "SUCCESS",
"created_at" : "2020-06-23T03:00:03.471Z",
"updated_at" : "2020-06-23T03:00:08.130Z"
} ]
} 状态码
| 状态码 | 描述 |
|---|---|
| 200 | 查询成功。 |
错误码
请参见错误码。
父主题: 后台任务管理