Reputation: 23
What should be the proper format to provide Google storage image link while images.insert
?
Image file located at GS Bucket as *.tar.gz
.
Creating new image with google client library in python with api images.insert(body=body,project=project)
my body config looks like:
body = { "name":"test", "sourceImage":"https://console.cloud.google.com/storage/browser/[BUCKET]/[IMAGEFILE]",}
Procedure fails with following error:
googleapiclient.errors.HttpError: <HttpError 400 when requesting returned "Invalid value for field 'resource.sourceImage': 'https://storag
e.cloud.google.com/[BUCKET]/[IMAGEFILE]'. The URL is malformed.">
Upvotes: 0
Views: 345