Parameter description
| Attribute | Type | Description |
|---|---|---|
| job | str | Job ID |
| next_marker | str | Start resource ID on the next page. The value is null for the last page |
| max_item_count | int | Maximum number of actually returned resources. The default value is 50. The maximum value is 100 |
Response description
The list_tasks method returns a
ListResponseobject, which contains a set ofTaskobjects.For more information about attributes of the
Taskobject, see the description of theTaskclass.
| Attribute | Type | Description |
|---|---|---|
| NextMarker | str | Start resource ID on the next page. The value is null for the last page |
| Items | list | List of Task classes |
Example
try:# Get a Client object.client = Client(......job = "job-xxx"marker = ""max_item = 100round = 0while marker or round == 0:response = client.list_tasks(job, marker, max_item)marker = response.NextMarkerfor task in response.Items:print (task.TaskName, task.State)round += 1except ClientError, e:print(e)