Obtains the status of a Spark job.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetJobStatus

The operation that you want to perform. Set the value to GetJobStatus.

JobId String Yes j202011031935hangzhouf742a4330003667

The ID of the Spark job.

VcName String Yes MyCluster

The name of the virtual cluster (VC) on which the job is run.

Response parameters

Parameter Type Example Description
RequestId String 5C3F9ADD-2350-4C21-A3A1-A906F8DF8016

The unique ID of the request.

Status String success

The status code of the job.

The following table describes the job status code.

Status code



The job is starting and has not been run.


The job is being run.


The execution of a program in the job failed and an exception is returned.


The job failed due to issues such as insufficient resources.


The job is canceled during execution.


The job succeeds.


Sample requests

http(s)://[Endpoint]/? Action=GetJobStatus
&<Common request parameters>

Sample success responses

XML format


JSON format

  "Status": "success",
  "RequestId": "5C3F9ADD-2350-4C21-A3A1-A906F8DF8016"

Error codes

For a list of error codes, visit the API Error Center.