Backblaze · JSON Structure

B2 Native Api List Buckets Request Structure

ListBucketsRequest schema from Backblaze B2 Native API

Type: object Properties: 4 Required: 1
Cloud StorageObject StorageStorageBackup

ListBucketsRequest is a JSON Structure definition published by Backblaze, describing 4 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

accountId bucketId bucketName bucketTypes

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/backblaze/refs/heads/main/json-structure/b2-native-api-list-buckets-request-structure.json",
  "name": "ListBucketsRequest",
  "description": "ListBucketsRequest schema from Backblaze B2 Native API",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "The account ID",
      "example": "abc123def456"
    },
    "bucketId": {
      "type": "string",
      "description": "Filter to a specific bucket"
    },
    "bucketName": {
      "type": "string",
      "description": "Filter by bucket name"
    },
    "bucketTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Filter by bucket type"
    }
  },
  "required": [
    "accountId"
  ]
}