ECS / Client / list_daemons
list_daemons¶
- ECS.Client.list_daemons(**kwargs)¶
Returns a list of daemons. You can filter the results by cluster or capacity provider.
See also: AWS API Documentation
Request Syntax
response = client.list_daemons( clusterArn='string', capacityProviderArns=[ 'string', ], maxResults=123, nextToken='string' )
- Parameters:
clusterArn (string) – The Amazon Resource Name (ARN) of the cluster to filter daemons by. If not specified, daemons from all clusters are returned.
capacityProviderArns (list) –
The Amazon Resource Names (ARNs) of the capacity providers to filter daemons by. Only daemons associated with the specified capacity providers are returned.
(string) –
maxResults (integer) – 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.nextToken (string) –
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.Note
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.
- Return type:
dict
- Returns:
Response Syntax
{ 'daemonSummariesList': [ { 'daemonArn': 'string', 'status': 'ACTIVE'|'DELETE_IN_PROGRESS', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
daemonSummariesList (list) –
The list of daemon summaries.
(dict) –
A summary of a daemon.
daemonArn (string) –
The Amazon Resource Name (ARN) of the daemon.
status (string) –
The status of the daemon.
createdAt (datetime) –
The Unix timestamp for the time when the daemon was created.
updatedAt (datetime) –
The Unix timestamp for the time when the daemon was last updated.
nextToken (string) –
The
nextTokenvalue to include in a futureListDaemonsrequest. When the results of aListDaemonsrequest exceedmaxResults, this value can be used to retrieve the next page of results.
Exceptions