ReadonlyaccountAccount that will own the new bucket.
Optional ReadonlybucketOptional user-defined key-value metadata.
Keys must be 1-50 UTF-8 bytes and must not start with b2-; the aggregate
UTF-8 byte length of all values must be at most 10,000 bytes. Keys must
match BUCKET_INFO_KEY_PATTERN. BucketInfo has no documented
pair-count cap.
ReadonlybucketGlobally unique name for the bucket.
ReadonlybucketAccess level for the bucket.
Optional ReadonlycorsOptional CORS rules.
A bucket may have at most 100 rules. Each rule name must be unique, 6-63
characters, match [A-Za-z0-9-], and not start with b2-. Each rule's
name, origins, operations, allowed headers, and exposed headers must total
less than 1,000 UTF-8 bytes. maxAgeSeconds must be at most 86,400.
Optional ReadonlydefaultOptional default Object Lock retention policy.
Optional ReadonlydefaultOptional default server-side encryption setting.
Optional ReadonlyfileWhether to enable Object Lock on the bucket. Cannot be changed after creation.
Optional ReadonlylifecycleOptional lifecycle rules.
Optional ReadonlyreplicationOptional replication configuration.
Request parameters for the
b2_create_bucketAPI call.