【发布时间】:2018-01-08 14:08:27
【问题描述】:
我使用以下代码创建了一个带有 DM 的存储桶
resources:
- type: storage.v1.bucket
name: test-bucket
properties:
project: my-project
name: test-bucket
现在,当尝试在存储桶 (test-bucket-name\test) 中创建文件夹结构时,我遇到了错误。请参考下面的示例代码和错误信息。
resources:
- type: storage.v1.object
name: test
properties:
project: my-project
name: test
bucket: test-bucket
错误:
message: '{"ResourceType":"storage.v1.object","ResourceErrorCode":"400","Resou
rceErrorMessage":{"code":400,"errors":[{"domain":"global","message":"Upload
requests must include an uploadType URL parameter and a URL path beginning w
ith
/upload/","reason":"wrongUrlForUpload","extendedHelp":"https://cloud.google.
com/storage/docs/json_api/v1/how-tos/upload"}],"message":"Upload
requests must include an uploadType URL parameter and a URL path beginning w
ith
/upload/","statusMessage":"Bad Request","requestPath":"https://www.googleapi
s.com/storage/v1/b/test-bucket/o","httpMethod":"POST"}}'
我尝试设置 urlpath 属性但没有成功。
谁能指导我。
【问题讨论】:
标签: google-cloud-storage google-deployment-manager