John Doe
John Doe

Reputation: 9

How can i do a PUT with an access key into a google storage bucket?

Is there way to do a PUT or POST into a Google Storage bucket with an API key

In the api explorer there is the ability to test this out with OAUTH and the API key, but the explorer doesn't allow me to use the api

Is this possible? PUT https://www.googleapis.com/storage/v1/b/bucket/o/object&key="InsertSomeKey"

OR

https://www.googleapis.com/upload/storage/v1/b/bucket/o?uploadType=media&name=testobject&key="InsertSomeKey"

Upvotes: 0

Views: 140

Answers (1)

Chaotic Pechan
Chaotic Pechan

Reputation: 966

Not exactly, first of all, you need to authenticate the account that you need to connect, anyway, you must configure an account for access the bucket, like a user account or service account; then you cant make a petition, this is the API reference:

https://cloud.google.com/storage/docs/json_api/v1/

I suggested to do it by code, using the libraries:

https://cloud.google.com/storage/docs/reference/libraries

Upvotes: 1

Related Questions