list_jobs
¶
list_jobs(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
job_category: Optional[JobCategory] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
last_modified_time_after: Optional[Timestamp] = None,
last_modified_time_before: Optional[Timestamp] = None,
name_contains: Optional[NameContains] = None,
sort_by: Optional[SortBy] = None,
sort_order: Optional[SortOrder] = None,
status_equals: Optional[JobStatus] = None,
) -> ListJobsResponse
Lists jobs in a specified category. You can filter results by creation time, last modified time, name, and status. Results are sorted by the field you specify in SortBy. Use pagination to retrieve large result sets efficiently.
The following operations are related to ListJobs:
-
CreateJob -
DescribeJob
Parameters:
-
job_category(Optional[JobCategory], default:None) –The category of jobs to list.
-
next_token(Optional[NextToken], default:None) –If the previous response was truncated, this token retrieves the next set of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of jobs to return in the response. The default value is 50.
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only jobs created after the specified time.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only jobs created before the specified time.
-
last_modified_time_after(Optional[Timestamp], default:None) –A filter that returns only jobs modified after the specified time.
-
last_modified_time_before(Optional[Timestamp], default:None) –A filter that returns only jobs modified before the specified time.
-
name_contains(Optional[NameContains], default:None) –A string in the job name to filter results. Only jobs whose name contains the specified string are returned.
-
sort_by(Optional[SortBy], default:None) –The field to sort results by.
-
sort_order(Optional[SortOrder], default:None) –The sort order for results. Valid values are
AscendingandDescending. -
status_equals(Optional[JobStatus], default:None) –A filter that returns only jobs with the specified status.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 23581 23582 23583 23584 | |