ECS / Client / list_daemon_deployments
list_daemon_deployments¶
- ECS.Client.list_daemon_deployments(**kwargs)¶
Returns a list of daemon deployments for a specified daemon. You can filter the results by status or creation time.
See also: AWS API Documentation
Request Syntax
response = client.list_daemon_deployments( daemonArn='string', status=[ 'PENDING'|'SUCCESSFUL'|'STOPPED'|'STOP_REQUESTED'|'IN_PROGRESS'|'ROLLBACK_IN_PROGRESS'|'ROLLBACK_SUCCESSFUL'|'ROLLBACK_FAILED', ], createdAt={ 'before': datetime(2015, 1, 1), 'after': datetime(2015, 1, 1) }, maxResults=123, nextToken='string' )
- Parameters:
daemonArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the daemon to list deployments for.
status (list) –
An optional filter to narrow the
ListDaemonDeploymentsresults by deployment status. If you don’t specify a status, all deployments are returned.(string) –
createdAt (dict) –
An optional filter to narrow the
ListDaemonDeploymentsresults by creation time. If you don’t specify a time range, all deployments are returned.before (datetime) –
Include service deployments in the result that were created before this time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
after (datetime) –
Include service deployments in the result that were created after this time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
maxResults (integer) – The maximum number of daemon deployment results that
ListDaemonDeploymentsreturned in paginated output. When this parameter is used,ListDaemonDeploymentsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListDaemonDeploymentsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter isn’t used, thenListDaemonDeploymentsreturns up to 20 results and anextTokenvalue if applicable.nextToken (string) –
The
nextTokenvalue returned from aListDaemonDeploymentsrequest 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
{ 'nextToken': 'string', 'daemonDeployments': [ { 'daemonDeploymentArn': 'string', 'daemonArn': 'string', 'clusterArn': 'string', 'status': 'PENDING'|'SUCCESSFUL'|'STOPPED'|'STOP_REQUESTED'|'IN_PROGRESS'|'ROLLBACK_IN_PROGRESS'|'ROLLBACK_SUCCESSFUL'|'ROLLBACK_FAILED', 'statusReason': 'string', 'targetDaemonRevisionArn': 'string', 'createdAt': datetime(2015, 1, 1), 'startedAt': datetime(2015, 1, 1), 'stoppedAt': datetime(2015, 1, 1), 'finishedAt': datetime(2015, 1, 1) }, ] }
Response Structure
(dict) –
nextToken (string) –
The
nextTokenvalue to include in a futureListDaemonDeploymentsrequest. When the results of aListDaemonDeploymentsrequest exceedmaxResults, this value can be used to retrieve the next page of results.daemonDeployments (list) –
The list of daemon deployment summaries.
(dict) –
A summary of a daemon deployment.
daemonDeploymentArn (string) –
The Amazon Resource Name (ARN) of the daemon deployment.
daemonArn (string) –
The Amazon Resource Name (ARN) of the daemon.
clusterArn (string) –
The Amazon Resource Name (ARN) of the cluster that hosts the daemon.
status (string) –
The status of the daemon deployment.
statusReason (string) –
Information about why the daemon deployment is in the current status.
targetDaemonRevisionArn (string) –
The ARN of the daemon revision being deployed.
createdAt (datetime) –
The time the daemon deployment was created.
startedAt (datetime) –
The time the daemon deployment started.
stoppedAt (datetime) –
The time the daemon deployment stopped.
finishedAt (datetime) –
The time the daemon deployment finished.
Exceptions
ECS.Client.exceptions.AccessDeniedExceptionECS.Client.exceptions.ServerExceptionECS.Client.exceptions.InvalidParameterExceptionECS.Client.exceptions.ClientExceptionECS.Client.exceptions.ClusterNotFoundExceptionECS.Client.exceptions.UnsupportedFeatureException