All Products
Search
Document Center

GetInstance

Last Updated: May 14, 2018

Description

Obtains the instance information.

Request syntax

  1. GET /jobs/{JobId}/tasks/{TaskName}/instances/{InstanceId}

Attribute description

Attribute Type Required Description
JobId String yes Job ID.
TaskName string Yes ID of a task.
InstanceId String Yes Instance ID.

Response

Success

The 200 status code and the following instance status information are returned.

  1. {
  2. "InstanceId": 0,
  3. "State": "Running",
  4. "StartTime": "2016-11-01T15:25:03.020203Z",
  5. "EndTime": "",
  6. "RetryCount": 30,
  7. "Progress": 0,
  8. "StderrRedirectPath": "oss://bucket/tests/a44c0ad8-a003-11e6-8f8e-fefec0a80e06/logs/stderr.job-0000000058184218000008150000000D.task.0",
  9. "StdoutRedirectPath": "oss://bucket/tests/a44c0ad8-a003-11e6-8f8e-fefec0a80e06/logs/stdout.job-0000000058184218000008150000000D.task.0",
  10. "Result": {
  11. "ExitCode": 0,
  12. "ErrorCode": "",
  13. "ErrorMessage": "",
  14. "Detail": ""
  15. },
  16. "Error": {
  17. "Code": string,
  18. "Message": string
  19. },
  20. "Outputs": {
  21. "outputFile": "oss://bucket/b"
  22. }
  23. }

Attributes of Result

Attribute Type Description
ExitCode int Exit code.
ErrorCode String Error code.
ErrorMessage String Error message.
Detail String Detailed information.

Attribute of Error

Parameter Name Type Description
Code string Error code, indicating the type of error generated when the application is running.
Message String Error message.

Error codes

Error code Error message Status code Syntax
InvalidResource.NotFound Specified resource is not found. 404 The user requested resource does not exist.