Querying a Batch Job Status
Function
This API is used to obtain the execution status of a batch processing job.
URI
- URI format
- Parameter description
Table 1 URI parameters Parameter
Mandatory
Description
project_id
Yes
Definition
Project ID, which is used for resource isolation. For how to obtain a project ID, see Obtaining a Project ID.
Example: 48cc2c48765f481480c7db940d6409d1
Constraints
None
Range
The value can contain up to 64 characters. Only letters and digits are allowed.
Default Value
None
batch_id
Yes
Definition
ID of a batch processing job. For details about how to obtain an ID, see appId in the response parameters in Listing Batch Processing Jobs.
Example: 0a324461-d9d9-45da-a52a-3b3c7a3d809e
Constraints
The parameter value must be a string matching the regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$.
Range
None
Default Value
None
Request Parameters
None
Response Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
No |
String |
Definition ID of a batch processing job, which is in the universal unique identifier (UUID) format. Range None |
state |
No |
String |
Definition Status of a batch processing job. For details, see Table 7 in Creating a Batch Processing Job. Range None |
Example Request
None
Example Response
{"id":"0a324461-d9d9-45da-a52a-3b3c7a3d809e","state":"Success"}
Status Codes
Table 3 describes the status code.
Error Codes
If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.