Method: organizations.capacityPlans.query

Returns a list of the capacity plans that are in the parent parameter and match your specified filters. (The maximum list length is limited by the pageSize parameter.)

HTTP request

GET https://capacityplanner.googleapis.com/v1beta/{parent=organizations/*}/capacityPlans:query

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource container. Format: projects/{project} or folders/{folder} or organizations/{organization}

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of plans to return per page. The service may return fewer than this value. If unspecified, the server will use a sensible default. The maximum value is 1000; values above 1000 will be coerced to 1000.

pageToken

string

Optional. A page token, received from a previous capacityPlans.query call. Provide this to retrieve the subsequent page.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of QueryCapacityPlansResponse.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/devstorage.full_control

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • capacityplanner.capacityPlans.list

For more information, see the IAM documentation.