ListStackSets
Returns summary information about StackSets that are associated with the user.
Note
This API provides strongly consistent reads meaning it will always return the most up-to-date data.
-
[Self-managed permissions] If you set the
CallAsparameter toSELFwhile signed in to your AWS account,ListStackSetsreturns all self-managed StackSets in your AWS account. -
[Service-managed permissions] If you set the
CallAsparameter toSELFwhile signed in to the organization's management account,ListStackSetsreturns all StackSets in the management account. -
[Service-managed permissions] If you set the
CallAsparameter toDELEGATED_ADMINwhile signed in to your member account,ListStackSetsreturns all StackSets with service-managed permissions in the management account.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- CallAs
-
[Service-managed permissions] Specifies whether you are acting as an account administrator in the management account or as a delegated administrator in a member account.
By default,
SELFis specified. UseSELFfor StackSets with self-managed permissions.-
If you are signed in to the management account, specify
SELF. -
If you are signed in to a delegated administrator account, specify
DELEGATED_ADMIN.Your AWS account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the AWS CloudFormation User Guide.
Type: String
Valid Values:
SELF | DELEGATED_ADMINRequired: No
-
- 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
NextTokenvalue that you can assign to theNextTokenrequest 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 paginated request didn't return all the remaining results, the response object's
NextTokenparameter value is set to a token. To retrieve the next set of results, callListStackSetsagain and assign that token to the request object'sNextTokenparameter. If there are no remaining results, the previous response object'sNextTokenparameter is set tonull.Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No
- Status
-
The status of the StackSets that you want to get summary information about.
Type: String
Valid Values:
ACTIVE | DELETEDRequired: No
Response Elements
The following elements are returned by the service.
- NextToken
-
If the request doesn't return all of the remaining results,
NextTokenis set to a token. To retrieve the next set of results, callListStackInstancesagain and assign that token to the request object'sNextTokenparameter. If the request returns all results,NextTokenis set tonull.Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
- Summaries.member.N
-
A list of
StackSetSummarystructures that contain information about the user's StackSets.Type: Array of StackSetSummary objects
Errors
For information about the errors that are common to all actions, see Common Errors.
Examples
ListStackSets
This example illustrates one usage of ListStackSets.
Sample Request
https://cloudformation.us-east-1.amazonaws.com/
?Action=ListStackSets
&Status=ACTIVE
&Version=2010-05-15
&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
<ListStackSetsResponse xmlns="http://internal.amazon.com/coral/com.amazonaws.maestro.service.v20160713/">
<ListStackSetsResult>
<Summaries>
<member>
<StackSetName>stack-set-example-one</StackSetName>
<Description>Description of the StackSet</Description>
<StackSetId>stack-set-example-one:c14cd6d1-cd17-40bd-82ed-ff97example</StackSetId>
<Status>ACTIVE</Status>
</member>
<member>
<StackSetName>stack-set-example-two</StackSetName>
<StackSetId>stack-set-example-two:22f04391-472b-4e36-b11a-727example</StackSetId>
<Status>ACTIVE</Status>
</member>
</Summaries>
</ListStackSetsResult>
<ResponseMetadata>
<RequestId>35ec5187-794a-11e7-8c45-3f18example</RequestId>
</ResponseMetadata>
</ListStackSetsResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: