Description
Obtains the instance information.
Request syntax
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.
{ "InstanceId": 0, "State": "Running", "StartTime": "2016-11-01T15:25:03.020203Z", "EndTime": "", "RetryCount": 30, "Progress": 0, "StderrRedirectPath": "oss://bucket/tests/a44c0ad8-a003-11e6-8f8e-fefec0a80e06/logs/stderr.job-0000000058184218000008150000000D.task.0", "StdoutRedirectPath": "oss://bucket/tests/a44c0ad8-a003-11e6-8f8e-fefec0a80e06/logs/stdout.job-0000000058184218000008150000000D.task.0", "Result": { "ExitCode": 0, "ErrorCode": "", "ErrorMessage": "", "Detail": "" }, "Error": { "Code": string, "Message": string }, "Outputs": { "outputFile": "oss://bucket/b" }}
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. |