[ Web Proxy ]
URL:
Viewing: https://docs.cloud.google.com/storage/docs/json_api/v1/buckets/relocate [Back]  [Original]

Buckets: relocate  |  Cloud Storage  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Buckets: relocate Stay organized with collections Save and categorize content based on your preferences.

Initiates the dry run or the relocation step of a bucket relocation operation.

Users can use Operations: get to check the status of the operation.

Required permissions

You must have the storage.buckets.relocate IAM permission on the bucket to initiate the dry run or the bucket relocation step.

You might also need the following permissions on the bucket:

Request

HTTP request

POST https://storage.googleapis.com/storage/v1/b/bucket/relocate

In addition to standard query parameters, the following query parameters apply to this method.

To see an example of how to include query parameters in a request, see the JSON API Overview page.

Parameters

Parameter name Value Description
Path parameters
bucket string Name of the bucket that you want to relocate.

Request body

In the request body, supply the following properties:

Property name Value Description Notes
Required parameters
destinationLocation string The destination location of the bucket. Writable
Optional parameters
destinationCustomPlacementConfig object The bucket's destination placement configuration if relocating to a configurable dual-region. Writable
destinationCustomPlacementConfig.dataLocations list of strings The list of configurable dual-region locations where you want to relocate the bucket. Writable
validateOnly boolean When set to true, the dry run of the bucket relocation operation starts. Writable

Response

Initiating a bucket relocation process starts a long-running operation. You'll receive an operation ID and a description of the operation. To track the completion of the bucket relocation operation, you'll need to track its progress. For information about how to track the progress of the bucket relocation operation, see Get details of a long-running operation.

For information about status and error codes returned by this API, see the reference page.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback

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 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page