Description
Gets description about a task.
Request syntax
GET /jobs/{Id}/tasks?Marker={Marker}&MaxItemCount={MaxItemCount}
Attribute description
| Attribute |
Type |
Required |
Description |
| Id |
string |
Yes |
ID of a job. |
| Marker |
String |
No |
Start resource ID of the current page. |
| MaxItemCount |
int |
No |
Maximum number of actually returned resources. |
Response
Success
The 200 status code and the following task list information are returned:
{ "NextMarker": "", "Items":[{ "TaskName": "taskA" "State": "Running", "StartTime": "2016-11-01T15:25:03.020203Z", "EndTime": "", "InstanceMetrics": { "WaitingCount": 0, "RunningCount": 1, "FinishedCount": 0, "FailedCount": 0, "StoppedCount": 0 } },{ "TaskName": "taskB" "State": "Running", "StartTime": "2016-11-01T15:25:04.020203Z", "EndTime": "", "InstanceMetrics": { "WaitingCount": 0, "RunningCount": 1, "FinishedCount": 0, "FailedCount": 0, "StoppedCount": 0 } }]}
Attribute description
| Attribute |
Type |
Description |
| NextMarker |
string |
Start resource ID on the next page. This value is blank in the last page. |
| Items |
array |
List of resources. |
Error codes
| Error code |
Error message |
Status code |
Syntax |
| InvalidResource.NotFound |
Specified resource is not found. |
404 |
The user requested resource does not exist. |
| InvalidMaxItemCount |
Specified parameter MaxItemCount is not valid. Its type must be integer. |
400 |
MaxItemCount must be an integer. |
| InvalidMaxItemCount |
Specified parameter MaxItemCount is not valid. It must be in [0, 100]. |
400 |
The MaxItemCount value must be in the range of [0, 100]. |