Use custom pricing in the estimate, using a CostScenario
with a defined billingAccount
.
HTTP request
POST https://cloudbilling.googleapis.com/v1beta/{billingAccount=billingAccounts/*}:estimateCostScenario
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
billingAccount |
Resource name of the billing account for the cost estimate. The resource name has the form Must be specified. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"costScenario": {
object ( |
Fields | |
---|---|
costScenario |
The scenario to estimate costs for. |
Response body
Response for billingAccounts.estimateCostScenario
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"costEstimationResult": {
object ( |
Fields | |
---|---|
costEstimationResult |
The result of the cost estimation. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-billing
For more information, see the Authentication Overview.