GetJobStatus

Updated at:

Returns the status of an asynchronous task. After calling an asynchronous API, poll this API to obtain the success status.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:GetJobStatus

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

JobId

string

Yes

The task ID returned after calling an asynchronous API.

70ecdaec-bf21-4c11-8ecb-4f77453ceea8

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

5E2BFE96-C0E0-5A98-85C8-633EC803198D

JobStatus

object

The real-time result of the task status.

JobId

string

The asynchronous task ID.

C664CDE3-9C0B-5792-B17F-6C543783BBBC

JobType

string

The task type.

  • Create: A creation task.

  • Update: An update task.

  • Cancel: A cancellation task.

Create

Completed

string

Indicates whether the operation is complete. Valid values:

  • True: The current job has been completed.

  • False: The current job is still running.

False

Status

string

The task status. Valid values:

  • Success: succeeded.

  • Fail: failed.

  • Cancel: canceled.

  • Running: running.

Success

Error

string

The task failure information.

Not Found

CreateTime

string

The creation time.

The value is a 13-digit number, such as 1729063449802.

1729063449802

Examples

Success response

JSON format

{
  "RequestId": "5E2BFE96-C0E0-5A98-85C8-633EC803198D",
  "JobStatus": {
    "JobId": "C664CDE3-9C0B-5792-B17F-6C543783BBBC",
    "JobType": "Create",
    "Completed": "False",
    "Status": "Success",
    "Error": "Not Found",
    "CreateTime": "1729063449802"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.