projects

GET /v1/projects/{projectsId}/locations/{locationsId}/capacityAllocations

Lists CapacityAllocation resources in a given project and location.

Request

  • Base URL
    https://vmwareengine.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/cloud-platform
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/cloud-platform

Path parameters

projectsId, string required
locationsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

filter, string

Optional. A filter expression that matches resources returned in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string or a number. The comparison operator must be =, !=, >, >=, <, or <=. The has operator : is also supported. Supported fields include name, display_name (or placement_group), machine_family, allocated_capacity_count, consumed_capacity_count, and connected_placement_group (using =). For example, if you are filtering a list of capacity allocations, you can exclude the ones named example-capacity-allocation by specifying name != "example-capacity-allocation". You can also filter on other fields, such as machine family ("ve1", "ve2", or "ve3") or connected placement group: machine_family = "ve1" connected_placement_group = "example-placement-group" To filter on multiple expressions, provide each separate expression within parentheses. For example: (machine_family = "ve1") (allocated_capacity_count > 10) By default, each expression is an AND expression. However, you can include AND, OR, and NOT expressions explicitly. For example: ((machine_family = "ve1") AND (allocated_capacity_count > 10)) OR (consumed_capacity_count > 0)

orderBy, string

Optional. Sorts list results by a certain order. By default, returned results are ordered by name in ascending order. You can also sort results in descending order based on the name value using orderBy="name desc". Currently, only ordering by name is supported.

pageSize, integer

Optional. The maximum number of capacity allocations to return in one page. The service may return fewer than this value. The maximum value is coerced to 1000. The default value of this field is 500.

pageToken, string

Optional. A page token, received from a previous ListCapacityAllocations call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListCapacityAllocations must match the call that provided the page token.

Response

Successful response

ListCapacityAllocationsResponse required

Response message for VmwareEngine.ListCapacityAllocations

capacityAllocations, CapacityAllocation[]

A list of capacity allocations.

nextPageToken, string

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

unreachable, string[]

Unordered list. Locations that could not be reached when making an aggregated query using wildcards.

Changes

No recorded changes to this operation across all 5 revisions of this API.