Google cloud storage 如何在欧盟和美国以外的其他地方创建GS Bucket?

Google cloud storage 如何在欧盟和美国以外的其他地方创建GS Bucket?,google-cloud-storage,google-cloud-endpoints,Google Cloud Storage,Google Cloud Endpoints,我正在编写在谷歌云存储中创建Bucket的示例代码。我正在关注这个XML API,该API编写于- 如果我在标签中提供我们和欧盟,我可以创建Bucket。但是,如果我给出的不是这两个,那么让我们假设标记中的-US-CENTRAL2为- <xml version="1.0" encoding="UTF-8"?> <CreateBucketConfiguration> <LocationConstraint>US-CENTRAL2</LocationC

我正在编写在谷歌云存储中创建Bucket的示例代码。我正在关注这个XML API,该API编写于-

如果我在
标签中提供我们和欧盟,我可以创建Bucket。但是,如果我给出的不是这两个,那么让我们假设
标记中的-US-CENTRAL2为-

<xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
   <LocationConstraint>US-CENTRAL2</LocationConstraint>
</CreateBucketConfiguration> 
如何在美国和欧盟以外的其他六个地区创建bucket??API有什么变化吗

谢谢你的帮助


Neelam Sharma

为了在美国和欧盟以外的其他地方创建存储桶,我们需要通过添加一个具有持久性值的标签来发送PUT Bucket请求-

<xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
   <LocationConstraint>US-CENTRAL2</LocationConstraint>
   <StorageClass>DURABLE_REDUCED_AVAILABILITY</StorageClass>
</CreateBucketConfiguration> 

US-CENTRAL2
持久的可用性降低

添加此标记解决了我的问题。

对于在美国和欧盟以外的其他位置创建存储桶,我们需要通过添加一个具有持久性值的标记来发送放置存储桶的请求-

<xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
   <LocationConstraint>US-CENTRAL2</LocationConstraint>
   <StorageClass>DURABLE_REDUCED_AVAILABILITY</StorageClass>
</CreateBucketConfiguration> 

US-CENTRAL2
持久的可用性降低

添加此标签解决了我的问题。

请参阅@MikeSchwartz谢谢Mike,我还尝试添加了一个具有持久性价值的标签,并在“解决我的问题”中提供这些位置。请参阅@MikeSchwartz谢谢Mike,我还尝试添加一个值为“持久性”\u“减少可用性”的标签,并在解决我的问题中提供这些位置。为了更明确,区域存储桶仅支持DRA存储,如下所述:为了更明确,区域存储桶仅支持DRA存储,如下所述:
Encountered too many Internal Server errors (6), aborting request. PUT '/mybucket/' on Host 'commondatastorage.googleapis.com' @ 'Fri, 16 Aug 2013 09:08:21 GMT' -- ResponseCode: 500, ResponseStatus: Internal Server Error
<xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
   <LocationConstraint>US-CENTRAL2</LocationConstraint>
   <StorageClass>DURABLE_REDUCED_AVAILABILITY</StorageClass>
</CreateBucketConfiguration>