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.
This is the response object from the ListTasks operation.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class ListTasksResponse : AmazonWebServiceResponse
The ListTasksResponse type exposes the following members
Name | Description | |
---|---|---|
ListTasksResponse() |
Name | Type | Description | |
---|---|---|---|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
NextToken | System.String |
Gets and sets the property NextToken.
The |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
TaskArns | System.Collections.Generic.List<System.String> |
Gets and sets the property TaskArns.
The list of task ARN entries for the |
This example lists all of the tasks in a cluster.
var client = new AmazonECSClient(); var response = client.ListTasks(new ListTasksRequest { Cluster = "default" }); List<string> taskArns = response.TaskArns;
This example lists the tasks of a specified container instance. Specifying a ``containerInstance`` value limits the results to tasks that belong to that container instance.
var client = new AmazonECSClient(); var response = client.ListTasks(new ListTasksRequest { Cluster = "default", ContainerInstance = "f6bbb147-5370-4ace-8c73-c7181ded911f" }); List<string> taskArns = response.TaskArns;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5