---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/capacityAllocations"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/capacityAllocations"
tags: ["projects"]
---

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

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

## Request

- Base URL: `https://vmwareengine.googleapis.com`
- URL: `https://vmwareengine.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/capacityAllocations`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists `CapacityAllocation` resources in a given project and location.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListCapacityAllocationsResponse: Response message for VmwareEngine.ListCapacityAllocations
  - `capacityAllocations` CapacityAllocation[]: A list of capacity allocations.
    - `allocatedCapacityCount` integer: Output only. The allocated capacity for the capacity allocation.
    - `consumedCapacityCount` integer: Output only. The consumed capacity for the capacity allocation.
    - `machineFamily` string: Output only. The machine family of the capacity allocation.
    - `name` string: Output only. Identifier. The resource name of the capacity allocation. The last segment of the name is the placement group name. For example: `projects/my-project/locations/us-central1-a/capacityAllocations/pg-123`
    - `privateClouds` string[]: Output only. The private cloud names using the capacity allocation.
  - `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.

---

[API](https://skmtc.dev/google/apis/vmwareengine.md) - [All operations](https://skmtc.dev/google/apis/vmwareengine/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/vmwareengine/revisions/fe35a276b8e1?raw)
