v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1447387247.5 KB

Returns an array of target IDs that are associated a deployment.

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

Headers

X-Amz-Target'CodeDeploy_20141006.ListDeploymentTargets' required

Request body

deploymentIdstring

The unique ID of a deployment.

nextTokenstring

A token identifier returned from the previous <code>ListDeploymentTargets</code> call. It can be used to return the next set of deployment targets in the list.

targetFiltersobject
<p> A key used to filter the returned targets. The two valid values are:</p> <ul> <li> <p> <code>TargetStatus</code> - A <code>TargetStatus</code> filter string can be <code>Failed</code>, <code>InProgress</code>, <code>Pending</code>, <code>Ready</code>, <code>Skipped</code>, <code>Succeeded</code>, or <code>Unknown</code>. </p> </li> <li> <p> <code>ServerInstanceLabel</code> - A <code>ServerInstanceLabel</code> filter string can be <code>Blue</code> or <code>Green</code>. </p> </li> </ul>

Response

Success

targetIdsTargetId[]

The unique IDs of deployment targets.

nextTokenstring

If a large amount of information is returned, a token identifier is also returned. It can be used in a subsequent <code>ListDeploymentTargets</code> call to return the next set of deployment targets in the list.