Skip to content

Support v4 Multi-Bucket Application Keys#30

Open
johnmaguire wants to merge 1 commit into
Backblaze:masterfrom
johnmaguire:support-v4-api
Open

Support v4 Multi-Bucket Application Keys#30
johnmaguire wants to merge 1 commit into
Backblaze:masterfrom
johnmaguire:support-v4-api

Conversation

@johnmaguire
Copy link
Copy Markdown

@johnmaguire johnmaguire commented Apr 15, 2026

Fixes #27 with the ultimate goal of solving restic/restic#5741

A new b2.CreateKeyMultiBucket was added to avoid breaking the type signature of b2.CreateKey, with support for multi-bucket application keys.

b2.CreateKey continues to use the old API (similar to the terraform provider's usage of bucket_id vs bucket_ids) in order to support clients which do not support multi-bucket application keys.

Client.CreateKey accepts a new BucketIDs option and selects CreateKeyMultiBucket when len(bucketIDs) > 1.

References:

@mlech-reef mlech-reef self-assigned this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Native API v4

2 participants