Menu
AWS CloudFormation
API Reference (API Version 2010-05-15)

ListStackInstances

Returns summary information about stack instances that are associated with the specified stack set. You can filter for stack instances that are associated with a specific AWS account name or region.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

MaxResults

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No

NextToken

If the previous request didn't return all of the remaining results, the response's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackInstances again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Required: No

StackInstanceAccount

The name of the AWS account that you want to list stack instances for.

Type: String

Pattern: [0-9]{12}

Required: No

StackInstanceRegion

The name of the region where you want to list stack instances.

Type: String

Required: No

StackSetName

The name or unique ID of the stack set that you want to list stack instances for.

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.

NextToken

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListStackInstances again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Summaries.member.N

A list of StackInstanceSummary structures that contain information about the specified stack instances.

Type: Array of StackInstanceSummary objects

Errors

For information about the errors that are common to all actions, see Common Errors.

StackSetNotFound

The specified stack set doesn't exist.

HTTP Status Code: 404

Example

ListStackInstances

Sample Request


https://cloudformation.us-east-1.amazonaws.com/
 ?Action=ListStackInstances
 &StackInstanceAccount=[account]
 &Version=2010-05-15
 &StackSetName=stack-set-example
 &MaxResults=10
 &X-Amz-Algorithm=AWS4-HMAC-SHA256
 &X-Amz-Credential=[Access key ID and scope]
 &X-Amz-Date=20170810T233349Z
 &X-Amz-SignedHeaders=content-type;host
 &X-Amz-Signature=[Signature]
         

Sample Response


<ListStackInstancesResponse xmlns="http://internal.amazon.com/coral/com.amazonaws.maestro.service.v20160713/">
  <ListStackInstancesResult>
    <Summaries>
      <member>
        <StackId>arn:aws:cloudformation:us-east-1:[account]:stack/StackSet-2adddc60-b4be-4811-813d-9072example/1b0bfb00-793f-11e7-b627-500c2example</StackId>
        <StackSetId>stack-set-example:c14cd6d1-cd17-40bd-82ed-ff97example</StackSetId>
        <Region>us-east-1</Region>
        <Account>[account]</Account>
        <Status>CURRENT</Status>
      </member>
      <member>
        <StackId>arn:aws:cloudformation:us-west-2:[account]:stack/StackSet-a3c97291-8df5-448e-b576-8c7c9example/f857db10-793e-11e7-ab1a-50d5example</StackId>
        <StackSetId>config-stack-test:c14cd6d1-cd17-40bd-82ed-ff97example</StackSetId>
        <Region>us-west-2</Region>
        <Account>[account]</Account>
        <Status>CURRENT</Status>
      </member>
    </Summaries>
  </ListStackInstancesResult>
  <ResponseMetadata>
    <RequestId>5387255d-7e18-11e7-a3cd-2f784example</RequestId>
  </ResponseMetadata>
</ListStackInstancesResponse>
         
         

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: