Bucket is a JSON Structure definition published by Backblaze, describing 8 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/backblaze/refs/heads/main/json-structure/b2-native-api-bucket-structure.json",
"name": "Bucket",
"description": "Represents a B2 bucket",
"type": "object",
"properties": {
"accountId": {
"type": "string",
"description": "The account that owns the bucket",
"example": "abc123def456"
},
"bucketId": {
"type": "string",
"description": "The unique ID of the bucket",
"example": "e73ede9969c64355ef8b"
},
"bucketName": {
"type": "string",
"description": "The unique name of the bucket",
"example": "my-media-bucket"
},
"bucketType": {
"type": "string",
"enum": [
"allPublic",
"allPrivate",
"snapshot"
],
"description": "The bucket privacy setting",
"example": "allPrivate"
},
"bucketInfo": {
"type": "object",
"description": "User-defined information stored with the bucket"
},
"corsRules": {
"type": "array",
"items": {
"type": "object"
},
"description": "CORS rules for the bucket"
},
"lifecycleRules": {
"type": "array",
"items": {
"type": "object"
},
"description": "Lifecycle rules for the bucket"
},
"revision": {
"type": "int32",
"description": "The number of times the bucket info has been modified",
"example": 1
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.