Method: projects.locations.capacityCommitments.merge

Merges capacity commitments of the same plan into a single commitment.

The resulting capacity commitment has the greater commitmentEndTime out of the to-be-merged capacity commitments.

Attempting to merge capacity commitments of different plan will fail with the error code google.rpc.Code.FAILED_PRECONDITION.

HTTP request

POST https://bigqueryreservation.googleapis.com/v1/{parent=projects/*/locations/*}/capacityCommitments:merge

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Parent resource that identifies admin project and location e.g., projects/myproject/locations/us

Request body

The request body contains data with the following structure:

JSON representation
{
  "capacityCommitmentIds": [
    string
  ]
}
Fields
capacityCommitmentIds[]

string

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent.

Response body

If successful, the response body contains an instance of CapacityCommitment.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/bigquery
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Try it!