请求地址

/v2/webservice/task/task-info

请求方法

Post

请求参数说明

参数名称 类型 是否必填 说明
task_id number

示例

{
    task_id:1001
}

返回参数说明

参数名称 类型 说明
id number 任务ID
status number 任务状态https://iwiki.woa.com/p/4012458753#任务状态
type number 任务类型
reason number 任务挂起原因

成功返回

{
    "code": 0,
    "request_id": "d846fce1-75a4-4fdd-a4bc-41b436e5e263",
    "data": {
        "id": 1051,
        "app_id": 3,
        "zone_id": 0,
        "type": 541,
        "status": 9,
        "reason": 0,
        "num": 0,
        "id_name": "9.135.102.211:SA2.2XLARGE16,,广州-华新园;",
        "data": "m1_9.135.102.211_1724037231(9.135.102.211);s1_9.135.102.211_1724037231(9.135.102.211);",
        "memo": "AddHostEx",
        "create_user": "tcaplus",
        "create_time": "2024-08-19T03:14:00.000Z",
        "update_time": "2024-08-19T03:14:16.000Z",
        "can_redo": 1,
        "can_suspend": 1,
        "can_rollback": 1,
        "set_id": 1,
        "extend_info": "",
        "max_concurrent_count": 10,
        "app_name": "pb_app"
    }
}

失败返回

{
    "request_id": "d6bf5fe4-b3f6-4ff0-acfe-d4ed10dfaa35",
    "code": 102,
    "message": "任务(1054)不存在",
    "debug_message": {
        "task_id": 1054
    }
}

相关常量说明(任务状态、任务类型等):

https://iwiki.woa.com/p/4012458753

results matching ""

    No results matching ""