• Elastic Load Balancing

elb
  1. Help Center
  2. Elastic Load Balancing
  3. API Reference
  4. Appendix
  5. Asynchronous Job Query

Asynchronous Job Query

Function

This API is used to query the execution status of an asynchronous job.

URI

GET /v1.0/{project_id}/jobs/{job_id}
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID of the operator.

job_id

Yes

String

Specifies the unique ID assigned to the job for querying the execution status in Combined API.

Request

  • Request parameters

    None

  • Example request

    None

Response

  • Response parameters
    Table 2 Parameter description

    Parameter

    Type

    Description

    status

    String

    Specifies the job execution status.

    SUCCESS: indicates that the job was successfully executed.

    FAIL: indicates that the job failed.

    RUNNIGN: indicates that the job is in progress.

    INIT: indicates that the job is being initialized.

    entities

    Dictionary data structure

    Specifies the resource information or error information. The ELB resource ID is used as an example in the response example.

    job_id

    String

    Specifies the unique ID assigned to the job for querying the execution status in Combined API.

    job_type

    String

    Specifies the task type.

    error_code

    String

    Specifies the error code.

    fail_reason

    String

    Specifies the cause of an error.

  • Example response
    {
        "status":"RUNNING",
        "entities":
        {"elb_id":"ea3e5715b68850a747ec41f335625c08"},
    "job_id":"4010b39b4fd3d5ff014fd943bac41619",
        "job_type":"deleteELB",
    "begin_time":"2015-09-17T03:05:38.756Z",
    "end_time":"",
    "error_code":null,
        "fail_reason":null
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 badRequest

    Request error

    401 unauthorized

    Authentication failed.

    403 userDisabled

    You do not have the rights to perform the operation.

    404 Not Found

    The requested page does not exist.

    500 authFault

    Internal service error.

    503 serviceUnavailable

    The service is unavailable.