Exports reservations usage data requested by user into either an existing Cloud Storage bucket or a new/existing BigQuery table.
HTTP request
POST https://capacityplanner.googleapis.com/v1beta/{parent=organizations/*/locations/*}/reservationsUsage:export
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
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 ( |
Fields | |
---|---|
locationLevel |
Optional. The location level of the reservations usage timeseries. |
cloudResourceType |
Required. The resource for the |
usageAggregationMethod |
Required. The method that should be used to convert sampled reservations data to daily usage values. |
shareType |
Optional. Type of share settings to filter reservations in response. If unspecified, all types are included. |
startDate |
Optional. The start date of reservations usage. |
endDate |
Optional. The end date of reservations usage. |
outputConfig |
Required. Output configuration indicating where the results will be output to. |
Union field resource . resource to query reservations and usage by. resource can be only one of the following: |
|
machineFamily |
Optional. The machine family to query reservations and usage by. For example: n1, n2d. |
machineShape |
Optional. The machineShape as a filter to select matching reservations and its usage. |
gpuType |
Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4. |
Response body
If successful, the response body contains an instance of Operation
.
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.usageHistories.list
For more information, see the IAM documentation.