Documentation navigation

Bucket

Bucket record returned by the Storage API.

NameTypeDefinition
namestringBucket name.
project_idstringProject that owns the bucket.
publicbooleanWhether objects in this bucket are publicly accessible.
location"apac" | "eeur" | "enam" | "oc" | "weur" | "wnam"Physical or logical storage location for bucket data.
allowed_mime_typesstring[]MIME types accepted by this bucket. An empty array means the bucket does not restrict uploads by MIME type.
file_size_limitnumberMaximum direct object upload size in bytes. `0` means there is no bucket-specific limit. Platform-wide upload limits may still apply.
allow_overwritebooleanWhether uploading an existing object key is allowed to replace the object.
signed_url_expiry_secondsnumberDefault signed URL expiry in seconds for this bucket.
attributesJsonObjectUser-defined bucket metadata.
created_atstringTimestamp when the bucket was created.
updated_atstringTimestamp when the bucket was last updated.

Example

{  "name": "string",  "project_id": "string",  "public": true,  "location": "apac",  "allowed_mime_types": [    "string"  ],  "file_size_limit": 0,  "allow_overwrite": true,  "signed_url_expiry_seconds": 0,  "attributes": {},  "created_at": "string",  "updated_at": "string"}