v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1447387247.5 KB

<note> <p> The newer <code>BatchGetDeploymentTargets</code> should be used instead because it works with all compute types. <code>ListDeploymentInstances</code> throws an exception if it is used with a compute platform other than EC2/On-premises or Lambda. </p> </note> <p> Lists the instance for a deployment associated with the IAM user or Amazon Web Services account. </p>

post/#X-Amz-Target=CodeDeploy_20141006.ListDeploymentInstances

Query parameters

nextTokenstring

Pagination token

Headers

X-Amz-Target'CodeDeploy_20141006.ListDeploymentInstances' required

Request body

deploymentIdstring required

The unique ID of a deployment.

nextTokenstring

An identifier returned from the previous list deployment instances call. It can be used to return the next set of deployment instances in the list.

instanceStatusFilterInstanceStatus[]
<p>A subset of instances to list by status:</p> <ul> <li> <p> <code>Pending</code>: Include those instances with pending deployments.</p> </li> <li> <p> <code>InProgress</code>: Include those instances where deployments are still in progress.</p> </li> <li> <p> <code>Succeeded</code>: Include those instances with successful deployments.</p> </li> <li> <p> <code>Failed</code>: Include those instances with failed deployments.</p> </li> <li> <p> <code>Skipped</code>: Include those instances with skipped deployments.</p> </li> <li> <p> <code>Unknown</code>: Include those instances with deployments in an unknown state.</p> </li> </ul>
instanceTypeFilterInstanceType[]

The set of instances in a blue/green deployment, either those in the original environment ("BLUE") or those in the replacement environment ("GREEN"), for which you want to view instance information.

Response

Success

instancesListInstanceId[]

A list of instance IDs.

nextTokenstring

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment instances call to return the next set of deployment instances in the list.