Amazon.ECS.AmazonECSClient.ListTasks C# (CSharp) Method

ListTasks() public method

Returns a list of tasks for a specified cluster. You can filter the results by family name, by a particular container instance, or by the desired status of the task with the family, containerInstance, and desiredStatus parameters.

Recently-stopped tasks might appear in the returned results. Currently, stopped tasks appear in the returned results for at least one hour.

/// These errors are usually caused by a client action, such as using an action or resource /// on behalf of a user that doesn't have permission to use the action or resource, or /// specifying an identifier that is not valid. /// /// The specified cluster could not be found. You can view your available clusters with /// ListClusters. Amazon ECS clusters are region-specific. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// These errors are usually caused by a server issue. /// /// The specified service could not be found. You can view your available services with /// ListServices. Amazon ECS services are cluster-specific and region-specific. ///
public ListTasks ( ListTasksRequest request ) : ListTasksResponse
request Amazon.ECS.Model.ListTasksRequest Container for the necessary parameters to execute the ListTasks service method.
return Amazon.ECS.Model.ListTasksResponse
        public ListTasksResponse ListTasks(ListTasksRequest request)
        {
            var marshaller = new ListTasksRequestMarshaller();
            var unmarshaller = ListTasksResponseUnmarshaller.Instance;

            return Invoke<ListTasksRequest,ListTasksResponse>(request, marshaller, unmarshaller);
        }
AmazonECSClient