v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1447387247.5 KB

<note> <p> This method works, but is deprecated. Use <code>BatchGetDeploymentTargets</code> instead. </p> </note> <p> Returns an array of one or more instances associated with a deployment. This method works with EC2/On-premises and Lambda compute platforms. The newer <code>BatchGetDeploymentTargets</code> works with all compute platforms. The maximum number of instances that can be returned is 25.</p>

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

Headers

X-Amz-Target'CodeDeploy_20141006.BatchGetDeploymentInstances' required

Request body

deploymentIdstring required

The unique ID of a deployment.

instanceIdsInstanceId[] required

The unique IDs of instances used in the deployment. The maximum number of instance IDs you can specify is 25.

Response

Success

errorMessagestring

Information about errors that might have occurred during the API call.