This operation lists all the service deployments that meet the specified filter criteria¶
Description¶
This operation lists all the service deployments that meet the specified filter criteria.
A service deployment happens when you release a software update for the service. You route traffic from the running service revisions to the new service revison and control the number of running tasks.
This API returns the values that you use for the request parameters in describe_service_revisions.
Usage¶
Arguments¶
-
service[required] The ARN or name of the service
-
clusterThe cluster that hosts the service. This can either be the cluster name or ARN. Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. If you don't specify a cluster,
defaultis used. -
statusAn optional filter you can use to narrow the results. If you do not specify a status, then all status values are included in the result.
-
createdAtAn optional filter you can use to narrow the results by the service creation date. If you do not specify a value, the result includes all services created before the current time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
-
nextTokenThe
nextTokenvalue returned from alist_service_deploymentsrequest indicating that more results are available to fulfill the request and further calls are needed. If you providedmaxResults, it's possible the number of results is fewer thanmaxResults. -
maxResultsThe maximum number of service deployment results that
list_service_deploymentsreturned in paginated output. When this parameter is used,list_service_deploymentsonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherlist_service_deploymentsrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter isn't used, thenlist_service_deploymentsreturns up to 20 results and anextTokenvalue if applicable.
Value¶
A list with the following syntax:
list(
serviceDeployments = list(
list(
serviceDeploymentArn = "string",
serviceArn = "string",
clusterArn = "string",
startedAt = as.POSIXct(
"2015-01-01"
),
createdAt = as.POSIXct(
"2015-01-01"
),
finishedAt = as.POSIXct(
"2015-01-01"
),
targetServiceRevisionArn = "string",
status = "PENDING"|"SUCCESSFUL"|"STOPPED"|"STOP_REQUESTED"|"IN_PROGRESS"|"ROLLBACK_REQUESTED"|"ROLLBACK_IN_PROGRESS"|"ROLLBACK_SUCCESSFUL"|"ROLLBACK_FAILED",
statusReason = "string"
)
),
nextToken = "string"
)
Request syntax¶
svc$list_service_deployments(
service = "string",
cluster = "string",
status = list(
"PENDING"|"SUCCESSFUL"|"STOPPED"|"STOP_REQUESTED"|"IN_PROGRESS"|"ROLLBACK_REQUESTED"|"ROLLBACK_IN_PROGRESS"|"ROLLBACK_SUCCESSFUL"|"ROLLBACK_FAILED"
),
createdAt = list(
before = as.POSIXct(
"2015-01-01"
),
after = as.POSIXct(
"2015-01-01"
)
),
nextToken = "string",
maxResults = 123
)