Get Buckets

GET {{baseUrl}}/storage/v1/b/{{bucketName}}?project={{projectId}}&key={{apiKey}}

This request checks if a bucket with the name bucketName already exists on Google Cloud Storage.

If a bucket with the name bucketName already exists, the next request is set to the Upload Object request. Otherwise, the next request is set to the Create Bucket request.

Request Params

KeyDatatypeRequiredDescription
projectstring
keystring

HEADERS

KeyDatatypeRequiredDescription
x-mock-response-namestring

RESPONSES

status: OK

{"kind":"storage#buckets","items":[{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/{{bucketName}}","id":"{{bucketName}}","name":"{{bucketName}}","projectNumber":"00000000","metageneration":"1","location":"US","storageClass":"STANDARD","etag":"CAE=","timeCreated":"2021-00-00T00:00:00.000Z","updated":"2021-00-00T00:00:00.000Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false}},"locationType":"multi-region"}]}