创建域存储桶

时间:2019-02-27 07:40:36

标签: google-cloud-storage google-deployment-manager

message: '{"ResourceType":"storage.v1.bucket","ResourceErrorCode":"403","ResourceErrorMessage":{"code":403,"errors":[{"domain":"global","message":"The
    bucket you tried to create requires domain ownership verification.","reason":"forbidden"}],"message":"The
    bucket you tried to create requires domain ownership verification.","statusMessage":"Forbidden","requestPath":"https://www.googleapis.com/storage/v1/b","httpMethod":"POST","suggestion":"Consider
    granting permissions to 1058303916595@cloudservices.gserviceaccount.com"}}'

上面是我尝试通过Deployment Manager创建存储桶时的消息。我已经尝试在Google Search Console上将1058303916595@cloudservices.gserviceaccount.com添加到该域的“已验证”所有者中,但是还是没有运气

1 个答案:

答案 0 :(得分:-1)

要使用域名创建存储桶,您的帐户应该是经过验证的域所有者,而不是 cloudservices.gserviceaccount.com 。其他信息可以在Domain-Named Bucket Verification文档中找到。

您必须使用与登录Google Cloud Console相同的帐户登录到域名提供商。然后请求一个新域名,请转到Google Cloud Console App Engine页面。转到设置,然后单击Custom domains,然后单击Add a custom domain。在此处添加域名并进行验证后,您将能够使用该域名作为名称来创建存储桶名称。但是请确保使用与验证域相同的帐户进行验证。