Bucket Creation
POST {{protocol}}://{{media_storage_url}}/bucket
Create a bucket.
This API only allows Service to Service consumption. A zesty user cannot use this API.
X-Service-Auth-Content
and X-Service-Auth-Sig
custom headers are used to consume this API via Service to Service token.
Body: raw JSON
name | description |
---|---|
storage_driver | [string] Required. Storage Provider. accepted value is gcp |
Request Body
{"storage_driver"=>"", "storage_name"=>""}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Service-Auth-Content | string | ||
X-Service-Auth-Sig | string |
RESPONSES
status: Created
{"message":"Created Bucket","status":"Created","data":{"name":"test_storage_gcp_2","storageUrl":"https://test_storage_gcp_2.storage.googleapis.com"},"code":201}