AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the ListJobs operation. Returns a list of Batch jobs.
You must specify only one of the following items:
A job queue ID to return a list of jobs in that job queue
A multi-node parallel job ID to return a list of nodes for that job
An array job ID to return a list of the children for that job
You can filter the results by job status with the jobStatus
parameter. If you
don't specify a status, only RUNNING
jobs are returned.
Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z
public class ListJobsRequest : AmazonBatchRequest IAmazonWebServiceRequest
The ListJobsRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
ListJobsRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
ArrayJobId | System.String |
Gets and sets the property ArrayJobId. The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the specified array. |
![]() |
Filters | System.Collections.Generic.List<Amazon.Batch.Model.KeyValuesPair> |
Gets and sets the property Filters.
The filter to apply to the query. Only one filter can be used at a time. When the
filter is used,
|
![]() |
JobQueue | System.String |
Gets and sets the property JobQueue. The name or full Amazon Resource Name (ARN) of the job queue used to list jobs. |
![]() |
JobStatus | Amazon.Batch.JobStatus |
Gets and sets the property JobStatus.
The job status used to filter jobs in the specified queue. If the |
![]() |
MaxResults | System.Int32 |
Gets and sets the property MaxResults.
The maximum number of results returned by The following outlines key parameters and limitations:
|
![]() |
MultiNodeJobId | System.String |
Gets and sets the property MultiNodeJobId. The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID with this parameter lists all nodes that are associated with the specified job. |
![]() |
NextToken | System.String |
Gets and sets the property NextToken.
The Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes. |
This example lists the running jobs in the HighPriority job queue.
var client = new AmazonBatchClient(); var response = client.ListJobs(new ListJobsRequest { JobQueue = "HighPriority" }); List<JobSummary> jobSummaryList = response.JobSummaryList;
This example lists jobs in the HighPriority job queue that are in the SUBMITTED job status.
var client = new AmazonBatchClient(); var response = client.ListJobs(new ListJobsRequest { JobQueue = "HighPriority", JobStatus = "SUBMITTED" }); List<JobSummary> jobSummaryList = response.JobSummaryList;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5