Backblaze · Schema
CreateBucketRequest
CreateBucketRequest schema from Backblaze B2 Native API
Cloud StorageObject StorageStorageBackup
Properties
| Name | Type | Description |
|---|---|---|
| accountId | string | The account ID |
| bucketName | string | The name of the new bucket |
| bucketType | string | Privacy setting for the bucket |
| bucketInfo | object | User-defined info to store with the bucket |
| corsRules | array | CORS rules for the bucket |
| lifecycleRules | array | Lifecycle rules for the bucket |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/backblaze/refs/heads/main/json-schema/b2-native-api-create-bucket-request-schema.json",
"title": "CreateBucketRequest",
"description": "CreateBucketRequest schema from Backblaze B2 Native API",
"type": "object",
"properties": {
"accountId": {
"type": "string",
"description": "The account ID",
"example": "abc123def456"
},
"bucketName": {
"type": "string",
"description": "The name of the new bucket",
"example": "my-media-bucket"
},
"bucketType": {
"type": "string",
"enum": [
"allPublic",
"allPrivate"
],
"description": "Privacy setting for the bucket",
"example": "allPrivate"
},
"bucketInfo": {
"type": "object",
"description": "User-defined info to store 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"
}
},
"required": [
"accountId",
"bucketName",
"bucketType"
]
}