list_daemons
async
¶
list_daemons(
*,
config_overrides: Optional[AsyncECSClientConfig] = 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/async_ecs.py
3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 | |