You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-storage/tre
114
114
| Configure Retries |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/configureRetries.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/configureRetries.js,samples/README.md)|
115
115
| Copy File |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/copyFile.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/copyFile.js,samples/README.md)|
116
116
| Copy Old Version Of File. |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/copyOldVersionOfFile.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/copyOldVersionOfFile.js,samples/README.md)|
117
+
| Create a Dual-Region Bucket |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithDualRegion.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithDualRegion.js,samples/README.md)|
117
118
| Create Bucket With Storage Class and Location. |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithStorageClassAndLocation.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithStorageClassAndLocation.js,samples/README.md)|
118
119
| Create Bucket With Turbo Replication |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithTurboReplication.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithTurboReplication.js,samples/README.md)|
119
120
| Create New Bucket |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createNewBucket.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createNewBucket.js,samples/README.md)|
Copy file name to clipboardExpand all lines: samples/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ objects to users via direct download.
33
33
*[Configure Retries](#configure-retries)
34
34
*[Copy File](#copy-file)
35
35
*[Copy Old Version Of File.](#copy-old-version-of-file.)
36
+
*[Create a Dual-Region Bucket](#create-a-dual-region-bucket)
36
37
*[Create Bucket With Storage Class and Location.](#create-bucket-with-storage-class-and-location.)
37
38
*[Create Bucket With Turbo Replication](#create-bucket-with-turbo-replication)
38
39
*[Create New Bucket](#create-new-bucket)
@@ -413,6 +414,25 @@ __Usage:__
413
414
414
415
415
416
417
+
### Create a Dual-Region Bucket
418
+
419
+
Create a Dual-Region Bucket with provided locations.
420
+
421
+
View the [source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithDualRegion.js).
422
+
423
+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithDualRegion.js,samples/README.md)
// The bucket in the sample below will be created in the project associated with this client.
47
+
// For more information, please see https://cloud.google.com/docs/authentication/production or https://googleapis.dev/nodejs/storage/latest/Storage.html
48
+
conststorage=newStorage();
49
+
50
+
asyncfunctioncreateDualRegionBucket(){
51
+
// For regions supporting dual-regions see: https://cloud.google.com/storage/docs/locations
0 commit comments