@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Interface BucketInfo

    Complete bucket metadata as returned by the B2 API. Corresponds to the bucket object in responses from b2_list_buckets, b2_create_bucket, and b2_update_bucket.

    interface BucketInfo {
        accountId: AccountId;
        bucketId: BucketId;
        bucketInfo: Record<string, string>;
        bucketName: string;
        bucketType: BucketType;
        corsRules: readonly CorsRule[];
        defaultRetention: BucketRetentionPolicy;
        defaultServerSideEncryption: EncryptionSetting;
        fileLockConfiguration: {
            isClientAuthorizedToRead: boolean;
            value:
                | {
                    defaultRetention: BucketRetentionPolicy;
                    isFileLockEnabled: boolean;
                }
                | null;
        };
        lifecycleRules: readonly LifecycleRule[];
        options: readonly string[];
        replicationConfiguration: ReplicationConfiguration;
        revision: number;
    }
    Index

    Properties

    accountId: AccountId

    Account that owns this bucket.

    bucketId: BucketId

    Unique identifier for this bucket.

    bucketInfo: Record<string, string>

    User-defined key-value metadata stored on the bucket.

    bucketName: string

    Globally unique name of this bucket.

    bucketType: BucketType

    Access level of this bucket.

    corsRules: readonly CorsRule[]

    CORS rules configured on this bucket.

    defaultRetention: BucketRetentionPolicy

    Default retention policy for newly uploaded files.

    defaultServerSideEncryption: EncryptionSetting

    Default server-side encryption setting for new files in this bucket.

    fileLockConfiguration: {
        isClientAuthorizedToRead: boolean;
        value:
            | {
                defaultRetention: BucketRetentionPolicy;
                isFileLockEnabled: boolean;
            }
            | null;
    }

    File Lock configuration including authorization status and current settings.

    Type Declaration

    • ReadonlyisClientAuthorizedToRead: boolean

      Whether the caller is authorized to read file lock settings.

    • Readonlyvalue: { defaultRetention: BucketRetentionPolicy; isFileLockEnabled: boolean } | null

      File lock settings, or null if the caller lacks read authorization.

    lifecycleRules: readonly LifecycleRule[]

    Lifecycle rules configured on this bucket.

    options: readonly string[]

    Set of options enabled on this bucket (e.g., 's3').

    replicationConfiguration: ReplicationConfiguration

    Cross-region replication configuration for this bucket.

    revision: number

    Monotonically increasing revision number, incremented on each bucket update.