# Capacity Planner API

Provides programmatic access to Capacity Planner features.

- [REST Resource: v1beta.folders.locations.forecasts](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.folders.locations.forecasts)
- [REST Resource: v1beta.folders.locations.reservations](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.folders.locations.reservations)
- [REST Resource: v1beta.folders.locations.reservationsUsage](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.folders.locations.reservationsUsage)
- [REST Resource: v1beta.folders.locations.usageHistories](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.folders.locations.usageHistories)
- [REST Resource: v1beta.organizations.locations.forecasts](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.organizations.locations.forecasts)
- [REST Resource: v1beta.organizations.locations.reservations](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.organizations.locations.reservations)
- [REST Resource: v1beta.organizations.locations.reservationsUsage](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.organizations.locations.reservationsUsage)
- [REST Resource: v1beta.organizations.locations.usageHistories](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.organizations.locations.usageHistories)
- [REST Resource: v1beta.projects.locations.forecasts](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.projects.locations.forecasts)
- [REST Resource: v1beta.projects.locations.reservations](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.projects.locations.reservations)
- [REST Resource: v1beta.projects.locations.reservationsUsage](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.projects.locations.reservationsUsage)
- [REST Resource: v1beta.projects.locations.usageHistories](https://docs.cloud.google.com/capacity-planner/docs/reference/rest#v1beta.projects.locations.usageHistories)

## Service: capacityplanner.googleapis.com

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

- <https://capacityplanner.googleapis.com/$discovery/rest?version=v1beta>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://capacityplanner.googleapis.com`

## REST Resource: [v1beta.folders.locations.forecasts](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.forecasts)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.forecasts/export` | `POST /v1beta/{parent=folders/*/locations/*}/forecasts:export` Exports forecasted usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table. |
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.forecasts/query` | `POST /v1beta/{parent=folders/*/locations/*}/forecasts:query` Returns a list of the forecasts that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.folders.locations.reservations](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.reservations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.reservations/query` | `GET /v1beta/{parent=folders/*/locations/*}/reservations:query` Returns a list of the reservations that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.folders.locations.reservationsUsage](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.reservationsUsage)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.reservationsUsage/export` | `POST /v1beta/{parent=folders/*/locations/*}/reservationsUsage:export` Exports reservations usage data requested by user into either an existing Cloud Storage bucket or a new/existing BigQuery table. |

## REST Resource: [v1beta.folders.locations.usageHistories](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.usageHistories)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.usageHistories/export` | `POST /v1beta/{parent=folders/*/locations/*}/usageHistories:export` Exports historical usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table. |
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/folders.locations.usageHistories/query` | `POST /v1beta/{parent=folders/*/locations/*}/usageHistories:query` Returns a list of the usage histories that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.organizations.locations.forecasts](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.forecasts)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.forecasts/export` | `POST /v1beta/{parent=organizations/*/locations/*}/forecasts:export` Exports forecasted usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table. |
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.forecasts/query` | `POST /v1beta/{parent=organizations/*/locations/*}/forecasts:query` Returns a list of the forecasts that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.organizations.locations.reservations](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.reservations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.reservations/query` | `GET /v1beta/{parent=organizations/*/locations/*}/reservations:query` Returns a list of the reservations that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.organizations.locations.reservationsUsage](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.reservationsUsage)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.reservationsUsage/export` | `POST /v1beta/{parent=organizations/*/locations/*}/reservationsUsage:export` Exports reservations usage data requested by user into either an existing Cloud Storage bucket or a new/existing BigQuery table. |

## REST Resource: [v1beta.organizations.locations.usageHistories](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.usageHistories)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.usageHistories/export` | `POST /v1beta/{parent=organizations/*/locations/*}/usageHistories:export` Exports historical usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table. |
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/organizations.locations.usageHistories/query` | `POST /v1beta/{parent=organizations/*/locations/*}/usageHistories:query` Returns a list of the usage histories that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.projects.locations.forecasts](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.forecasts)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.forecasts/export` | `POST /v1beta/{parent=projects/*/locations/*}/forecasts:export` Exports forecasted usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table. |
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.forecasts/query` | `POST /v1beta/{parent=projects/*/locations/*}/forecasts:query` Returns a list of the forecasts that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.projects.locations.reservations](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.reservations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.reservations/query` | `GET /v1beta/{parent=projects/*/locations/*}/reservations:query` Returns a list of the reservations that are in the parent parameter and match your specified filters. |

## REST Resource: [v1beta.projects.locations.reservationsUsage](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.reservationsUsage)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.reservationsUsage/export` | `POST /v1beta/{parent=projects/*/locations/*}/reservationsUsage:export` Exports reservations usage data requested by user into either an existing Cloud Storage bucket or a new/existing BigQuery table. |

## REST Resource: [v1beta.projects.locations.usageHistories](https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.usageHistories)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.usageHistories/export` | `POST /v1beta/{parent=projects/*/locations/*}/usageHistories:export` Exports historical usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table. |
| `https://docs.cloud.google.com/capacity-planner/docs/reference/rest/v1beta/projects.locations.usageHistories/query` | `POST /v1beta/{parent=projects/*/locations/*}/usageHistories:query` Returns a list of the usage histories that are in the parent parameter and match your specified filters. |