Lists jobs in a specified category¶
Description¶
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 list_jobs:
Usage¶
sagemaker_list_jobs(JobCategory, NextToken, MaxResults,
CreationTimeAfter, CreationTimeBefore, LastModifiedTimeAfter,
LastModifiedTimeBefore, NameContains, SortBy, SortOrder, StatusEquals)
Arguments¶
-
JobCategory[required] The category of jobs to list.
-
NextTokenIf the previous response was truncated, this token retrieves the next set of results.
-
MaxResultsThe maximum number of jobs to return in the response. The default value is 50.
-
CreationTimeAfterA filter that returns only jobs created after the specified time.
-
CreationTimeBeforeA filter that returns only jobs created before the specified time.
-
LastModifiedTimeAfterA filter that returns only jobs modified after the specified time.
-
LastModifiedTimeBeforeA filter that returns only jobs modified before the specified time.
-
NameContainsA string in the job name to filter results. Only jobs whose name contains the specified string are returned.
-
SortByThe field to sort results by.
-
SortOrderThe sort order for results. Valid values are
AscendingandDescending. -
StatusEqualsA filter that returns only jobs with the specified status.
Value¶
A list with the following syntax:
list(
NextToken = "string",
JobSummaries = list(
list(
JobArn = "string",
JobName = "string",
JobCategory = "AgentRFT"|"AgentRFTEvaluation",
JobStatus = "InProgress"|"Completed"|"Failed"|"Stopping"|"Stopped"|"Deleting"|"DeleteFailed",
JobSecondaryStatus = "Starting"|"Downloading"|"Training"|"Uploading"|"Stopping"|"Stopped"|"MaxRuntimeExceeded"|"Interrupted"|"Failed"|"Completed"|"Restarting"|"Pending"|"Evaluating"|"Deleting"|"DeleteFailed",
CreationTime = as.POSIXct(
"2015-01-01"
),
LastModifiedTime = as.POSIXct(
"2015-01-01"
),
EndTime = as.POSIXct(
"2015-01-01"
)
)
)
)
Request syntax¶
svc$list_jobs(
JobCategory = "AgentRFT"|"AgentRFTEvaluation",
NextToken = "string",
MaxResults = 123,
CreationTimeAfter = as.POSIXct(
"2015-01-01"
),
CreationTimeBefore = as.POSIXct(
"2015-01-01"
),
LastModifiedTimeAfter = as.POSIXct(
"2015-01-01"
),
LastModifiedTimeBefore = as.POSIXct(
"2015-01-01"
),
NameContains = "string",
SortBy = "Name"|"CreationTime"|"Status",
SortOrder = "Ascending"|"Descending",
StatusEquals = "InProgress"|"Completed"|"Failed"|"Stopping"|"Stopped"|"Deleting"|"DeleteFailed"
)