v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-171,1822,9897.4 MB

Lists the resource groups to which a Capacity Reservation has been added.

get/#Action=GetGroupsForCapacityReservation

Query parameters

CapacityReservationIdstring required

The ID of the Capacity Reservation. If you specify a Capacity Reservation that is shared with you, the operation returns only Capacity Reservation groups that you own.

NextTokenstring

The token to use to retrieve the next page of results.

MaxResultsinteger

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned <code>nextToken</code> value. This value can be between 5 and 500. If <code>maxResults</code> is given a larger value than 500, you receive an error.

DryRunboolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.

Action'GetGroupsForCapacityReservation' required
Version'2016-11-15' required

Response

Success