Backblaze · Schema

Bucket

Represents a B2 bucket

Cloud StorageObject StorageStorageBackup

Properties

Name Type Description
accountId string The account that owns the bucket
bucketId string The unique ID of the bucket
bucketName string The unique name of the bucket
bucketType string The bucket privacy setting
bucketInfo object User-defined information stored with the bucket
corsRules array CORS rules for the bucket
lifecycleRules array Lifecycle rules for the bucket
revision integer The number of times the bucket info has been modified
View JSON Schema on GitHub

JSON Schema

b2-native-api-bucket-schema.json Raw ↑
{
  "$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-bucket-schema.json",
  "title": "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": "integer",
      "description": "The number of times the bucket info has been modified",
      "example": 1
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/b2-native-api-bucket"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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.

A second provider on the same verified email joins the account you already have.