Method: projects.locations.reservations.assignments.move
Moves an assignment under a new reservation.
This differs from removing an existing assignment and recreating a new one by providing a transactional change that ensures an assignee always has an associated reservation.
HTTP request
POST https://bigqueryreservation.googleapis.com/v1/{name=projects/*/locations/*/reservations/*/assignments/*}:move
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. The resource name of the assignment, e.g. projects/myproject/locations/US/reservations/team1-prod/assignments/123
Authorization requires the following IAM permission on the specified resource name :
bigquery.reservationAssignments.delete
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"destinationId": string,
"assignmentId": string
} |
Fields |
destinationId |
string
The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod
|
assignmentId |
string
The optional assignment ID. A new assignment name is generated if this field is empty. This field can contain only lowercase alphanumeric characters or dashes. Max length is 64 characters.
|
Response body
If successful, the response body contains an instance of Assignment
.
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["This endpoint allows moving an assignment to a new reservation, ensuring a transactional change that maintains an assignee's associated reservation."],["The HTTP request uses the `POST` method with a specific URL structure utilizing gRPC Transcoding syntax to identify the assignment to be moved."],["The `name` path parameter is required to identify the assignment, and the request body requires `destinationId` and optionally `assignmentId` to specify the target reservation."],["Successful execution returns an `Assignment` instance, indicating the move was completed, and requires either `bigquery.reservationAssignments.delete` IAM permission, or one of two OAuth Scopes."]]],[]]