ConstReadonlyBypassGovernance: "bypassGovernance"Shorten governance-mode retention.
ReadonlyDeleteBuckets: "deleteBuckets"Remove existing buckets from the account.
ReadonlyDeleteFiles: "deleteFiles"Delete file versions.
ReadonlyDeleteKeys: "deleteKeys"Delete application keys.
ReadonlyListAllBucketNames: "listAllBucketNames"List bucket names without other metadata.
ReadonlyListBuckets: "listBuckets"List buckets (subject to key restrictions).
ReadonlyListFiles: "listFiles"List file names and versions.
ReadonlyListKeys: "listKeys"List application keys.
ReadonlyReadBucketEncryption: "readBucketEncryption"Read default bucket encryption settings.
ReadonlyReadBucketNotifications: "readBucketNotifications"Read bucket event-notification rules.
ReadonlyReadBucketReplications: "readBucketReplications"Read bucket replication configuration.
ReadonlyReadBucketRetentions: "readBucketRetentions"Read bucket-level Object Lock retention settings.
ReadonlyReadBuckets: "readBuckets"Read bucket settings.
ReadonlyReadFileLegalHolds: "readFileLegalHolds"Read per-file legal hold flags.
ReadonlyReadFileRetentions: "readFileRetentions"Read per-file Object Lock retention settings.
ReadonlyReadFiles: "readFiles"Download files.
ReadonlyShareFiles: "shareFiles"Mint download authorisation tokens.
ReadonlyWriteBucketEncryption: "writeBucketEncryption"Modify default bucket encryption settings.
ReadonlyWriteBucketNotifications: "writeBucketNotifications"Modify bucket event-notification rules.
ReadonlyWriteBucketReplications: "writeBucketReplications"Modify bucket replication configuration.
ReadonlyWriteBucketRetentions: "writeBucketRetentions"Modify bucket-level Object Lock retention settings.
ReadonlyWriteBuckets: "writeBuckets"Create and update buckets.
ReadonlyWriteFileLegalHolds: "writeFileLegalHolds"Modify per-file legal hold flags.
ReadonlyWriteFileRetentions: "writeFileRetentions"Modify per-file Object Lock retention settings.
ReadonlyWriteFiles: "writeFiles"Upload files.
ReadonlyWriteKeys: "writeKeys"Create new application keys.
Named constants for the B2 API capabilities that can be granted to an application key. Each capability controls access to a specific set of API operations.
Use these when constructing the
capabilitiesarray for an application key request, or when checking required capabilities viaB2Client.hasCapabilities.