I have created a bucket with DM using the below code
resources:
- type: storage.v1.bucket
name: test-bucket
properties:
project: my-project
name: test-bucket
Now, when trying to create a folder structure inside the bucket (test-bucket-name\test), I am getting error. Please refer the sample code and the error message below.
resources:
- type: storage.v1.object
name: test
properties:
project: my-project
name: test
bucket: test-bucket
Error:
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"}}'
I tried to set the urlpath property but did not work.
Could anyone guide me this.