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

    Class BackupClientExperimental

    High-level Computer Backup API client for listing and deleting backup records.

    The client uses Partner authorization and the backupApiUrl returned by authorizePartner. The target account must belong to a group with Enterprise Controls enabled, and the caller must be a group admin. Deleting a backup also requires the Enterprise Controls setting that permits admins to delete member backups.

    const backup = new BackupClient({
    masterKeyId: process.env.B2_MASTER_KEY_ID,
    masterKey: process.env.B2_MASTER_KEY,
    })
    await backup.authorize()
    for await (const computer of backup.paginateComputers()) {
    console.log(computer.computerName)
    }

    Computer Backup API surface; shape may change as the Backup API docs evolve.

    Index
    partnerAccountInfo: PartnerAccountInfo

    Partner authorization state storage (tokens, URLs, capabilities).

    Low-level client for direct Computer Backup API calls.

    urlGuard: UrlGuard | null

    SSRF allow-list applied by the default transport. null when a custom transport was supplied; in that case the SDK does not own the guard.

    • Experimental

      Deletes a Computer Backup record.

      This destructive mutation is not automatically retried or reauthorized in place; callers should reconcile backup state before issuing a new delete after an ambiguous failure.

      Parameters

      Returns Promise<DeleteComputerResponse>

      The deleted computer backup record array.

      Computer Backup API surface; shape may change as the Backup API docs evolve.

    • Experimental

      Hides credentials and Partner tokens from default stringification.

      Returns string

      A short redacted label.