Method: projects.locations.reservations.assignments.move

Moves a assignment under a new reservation. Customers can do this by deleting the existing assignment followed by creating another assignment under the new reservation, but this method provides a transactional way to do so, to make sure the assignee always has an associated reservation. Without the method customers might see some queries run on-demand which might be unexpected.

HTTP request

POST https://bigqueryreservation.googleapis.com/v1beta1/{name=projects/*/locations/*/reservations/*/assignments/*}:move

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource name of the assignment, e.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123

Authorization requires the following Google IAM permission on the specified resource name:

  • bigquery.reservationAssignments.delete

Query parameters

Parameters
destinationId

string

The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod

Request body

The request body must be empty.

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.

Try it!

此页内容是否有用?请给出您的反馈和评价:

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面