Required. The compute engine resource and location of the reservationsusage. The format is: projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location}
Request body
The request body contains data with the following structure:
JSON representation
{"locationLevel": enum (LocationType),"cloudResourceType": string,"usageAggregationMethod": enum (AggregationMethod),"shareType": enum (ShareType),"startDate": {object (Date)},"endDate": {object (Date)},"outputConfig": {object (OutputConfig)},// Union field resource can be only one of the following:"machineFamily": string,"machineShape": {object (MachineShape)},"gpuType": string// End of list of possible types for union field resource.}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nExports reservations usage data requested by user into either an existing Cloud Storage bucket or a new/existing BigQuery table.\n\nHTTP request\n\n`POST https://capacityplanner.googleapis.com/v1beta/{parent=folders/*/locations/*}/reservationsUsage:export`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The compute engine resource and location of the reservationsusage. The format is: projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location} |\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"locationLevel\": enum (/capacity-planner/docs/reference/rest/v1beta/LocationType), \"cloudResourceType\": string, \"usageAggregationMethod\": enum (/capacity-planner/docs/reference/rest/v1beta/AggregationMethod), \"shareType\": enum (/capacity-planner/docs/reference/rest/v1beta/ShareType), \"startDate\": { object (/capacity-planner/docs/reference/rest/v1beta/Date) }, \"endDate\": { object (/capacity-planner/docs/reference/rest/v1beta/Date) }, \"outputConfig\": { object (/capacity-planner/docs/reference/rest/v1beta/OutputConfig) }, // Union field `resource` can be only one of the following: \"machineFamily\": string, \"machineShape\": { object (/capacity-planner/docs/reference/rest/v1beta/MachineShape) }, \"gpuType\": string // End of list of possible types for union field `resource`. } ``` |\n\n| Fields ||\n|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `locationLevel` | `enum (`[LocationType](/capacity-planner/docs/reference/rest/v1beta/LocationType)`)` Optional. The location level of the reservations usage timeseries. |\n| `cloudResourceType` | `string` Required. The resource for the `ReservationsUsage` values to return. Possible values include \"gce-vcpus\", \"gce-ram\", \"gce-local-ssd\", and \"gce-gpu\". |\n| `usageAggregationMethod` | `enum (`[AggregationMethod](/capacity-planner/docs/reference/rest/v1beta/AggregationMethod)`)` Required. The method that should be used to convert sampled reservations data to daily usage values. |\n| `shareType` | `enum (`[ShareType](/capacity-planner/docs/reference/rest/v1beta/ShareType)`)` Optional. Type of share settings to filter reservations in response. If unspecified, all types are included. |\n| `startDate` | `object (`[Date](/capacity-planner/docs/reference/rest/v1beta/Date)`)` Optional. The start date of reservations usage. |\n| `endDate` | `object (`[Date](/capacity-planner/docs/reference/rest/v1beta/Date)`)` Optional. The end date of reservations usage. |\n| `outputConfig` | `object (`[OutputConfig](/capacity-planner/docs/reference/rest/v1beta/OutputConfig)`)` Required. Output configuration indicating where the results will be output to. |\n| Union field `resource`. resource to query reservations and usage by. `resource` can be only one of the following: ||\n| `machineFamily` | `string` Optional. The machine family to query reservations and usage by. For example: n1, n2d. |\n| `machineShape` | `object (`[MachineShape](/capacity-planner/docs/reference/rest/v1beta/MachineShape)`)` Optional. The machineShape as a filter to select matching reservations and its usage. |\n| `gpuType` | `string` Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4. |\n\nResponse body\n\nIf successful, the response body contains an instance of [Operation](/capacity-planner/docs/reference/rest/v1beta/Operation).\n\nAuthorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/devstorage.full_control`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nIAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `capacityplanner.usageHistories.list`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]