Skip to content

List Daemon Deployments

ecs_list_daemon_deployments R Documentation

Returns a list of daemon deployments for a specified daemon

Description

Returns a list of daemon deployments for a specified daemon. You can filter the results by status or creation time.

Usage

ecs_list_daemon_deployments(daemonArn, status, createdAt, maxResults,
  nextToken)

Arguments

daemonArn

[required] The Amazon Resource Name (ARN) of the daemon to list deployments for.

status

An optional filter to narrow the list_daemon_deployments results by deployment status. If you don't specify a status, all deployments are returned.

createdAt

An optional filter to narrow the list_daemon_deployments results by creation time. If you don't specify a time range, all deployments are returned.

maxResults

The maximum number of daemon deployment results that list_daemon_deployments returned in paginated output. When this parameter is used, list_daemon_deployments only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another list_daemon_deployments request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then list_daemon_deployments returns up to 20 results and a nextToken value if applicable.

nextToken

The nextToken value returned from a list_daemon_deployments request indicating that more results are available to fulfill the request and further calls will be needed. If maxResults was provided, it's possible for the number of results to be fewer than maxResults.

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.

Value

A list with the following syntax:

list(
  nextToken = "string",
  daemonDeployments = list(
    list(
      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 = as.POSIXct(
        "2015-01-01"
      ),
      startedAt = as.POSIXct(
        "2015-01-01"
      ),
      stoppedAt = as.POSIXct(
        "2015-01-01"
      ),
      finishedAt = as.POSIXct(
        "2015-01-01"
      )
    )
  )
)

Request syntax

svc$list_daemon_deployments(
  daemonArn = "string",
  status = list(
    "PENDING"|"SUCCESSFUL"|"STOPPED"|"STOP_REQUESTED"|"IN_PROGRESS"|"ROLLBACK_IN_PROGRESS"|"ROLLBACK_SUCCESSFUL"|"ROLLBACK_FAILED"
  ),
  createdAt = list(
    before = as.POSIXct(
      "2015-01-01"
    ),
    after = as.POSIXct(
      "2015-01-01"
    )
  ),
  maxResults = 123,
  nextToken = "string"
)