list_daemons
¶
list_daemons(
*,
config_overrides: Optional[ECSClientConfig] = None,
cluster_arn: Optional[String] = None,
capacity_provider_arns: Optional[StringList] = None,
max_results: Optional[BoxedInteger] = None,
next_token: Optional[String] = None,
) -> ListDaemonsResponse
Returns a list of daemons. You can filter the results by cluster or capacity provider.
Parameters:
-
cluster_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the cluster to filter daemons by. If you do not specify a cluster, the default cluster is assumed.
-
capacity_provider_arns(Optional[StringList], default:None) –The Amazon Resource Names (ARNs) of the capacity providers to filter daemons by. Only daemons associated with the specified capacity providers are returned.
-
max_results(Optional[BoxedInteger], default:None) –The maximum number of daemon results that
ListDaemonsreturned in paginated output. When this parameter is used,ListDaemonsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListDaemonsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter isn't used, thenListDaemonsreturns up to 100 results and anextTokenvalue if applicable. -
next_token(Optional[String], default:None) –The
nextTokenvalue returned from aListDaemonsrequest indicating that more results are available to fulfill the request and further calls will be needed. IfmaxResultswas provided, it's possible for the number of results to be fewer thanmaxResults.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
Raises:
-
AccessDeniedException–You don't have authorization to perform the requested action.
-
ClientException–These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.
-
ClusterNotFoundException–The specified cluster wasn't found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region specific.
-
InvalidParameterException–The specified parameter isn't valid. Review the available parameters for the API request.
For more information about service event errors, see Amazon ECS service event messages.
-
ServerException–These errors are usually caused by a server issue.
-
UnsupportedFeatureException–The specified task isn't supported in this Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list daemons in a cluster This example lists all daemons in the specified cluster.
Source code in docs_src/capo_ecs/_services/ecs.py
3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 | |