Parameter description
Attribute |
Type |
Description |
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 200. |
Response description
- The list_jobs method returns a
ListResponse
object, which contains a set of Job
objects. - For more information about attributes of the
Job
object, see the description of the Job
class.
Attribute |
Type |
Description |
NextMarker |
str |
Start resource ID on the next page. The value is null for the last page. |
Items |
list |
List of Job classes |
Example
try:
# Get a Client object.
client = Client(...
...
marker = ""
max_item = 100
round = 0
while marker or round == 0:
response = client.list_jobs(marker, max_item)
marker = response.NextMarker
for job in response.Items:
print (job.Id, job.State)
round += 1
except ClientError, e:
print(e)