This page describes how to use the turbo replication feature on a dual-region bucket.
Required roles
In order to get the required permissions for using turbo replication, ask your
administrator to grant you the Storage Admin
( roles/storage.admin
) IAM role on the bucket.
This predefined role contains the permissions required to use turbo replication. To see the exact permissions that are required, expand the Required permissionssection:
Required permissions
-
storage.buckets.get
-
storage.buckets.update
-
storage.buckets.list
- This permission is only required if you plan on using the Google Cloud console to perform the instructions on this page.
You might also be able to get these permissions with custom roles or other predefined roles .
For instructions on granting roles on buckets, see Use IAM with buckets .
Set turbo replication
To enable or disable turbo replication on an existing bucket, complete the following instructions:
Console
- In the Google Cloud console, go to the Cloud Storage Buckets
page.
-
In the bucket list, click the name of the desired bucket.
-
Click the Configurationtab.
-
In the Replicationrow, click Edit.
The window that appears indicates whether you are about to Enable turbo replicationor Disable turbo replication.
-
Click Saveto confirm the new setting.
Command line
Use the gcloud storage buckets update
command with the --rpo
flag:
gcloud storage buckets update gs:// BUCKET_NAME --rpo= STATE
Where:
-
BUCKET_NAME
is the name of the relevant bucket. For example,my-bucket
. -
STATE
isASYNC_TURBO
for enabling Turbo Replication orDEFAULT
for disabling Turbo Replication.
If successful, the response looks like:
Updating gs://my-bucket/... Completed 1
Client libraries
C++
For more information, see the Cloud Storage C++ API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket:
C#
For more information, see the Cloud Storage C# API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket:
Go
For more information, see the Cloud Storage Go API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket:
Java
For more information, see the Cloud Storage Java API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket:
Node.js
For more information, see the Cloud Storage Node.js API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket:
PHP
For more information, see the Cloud Storage PHP API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket:
Python
For more information, see the Cloud Storage Python API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket:
Ruby
For more information, see the Cloud Storage Ruby API reference documentation .
To authenticate to Cloud Storage, set up Application Default Credentials. For more information, see Set up authentication for client libraries .
The following sample enables turbo replication on a bucket:
The following sample enables default replication on a bucket: