For the complete documentation index, see llms.txt. This page is also available as Markdown.

put

Create or replace the public access block configuration for a bucket

Usage

ionosctl object-storage bucket public-access-block put [flags]

Aliases

For bucket command:

[b]

For public-access-block command:

[pab]

For put command:

[p]

Description

Create or replace the bucket's Public Access Block. These guardrails override ACLs and bucket policies, so turning them on is the dependable way to force a bucket private regardless of what its policy/ACLs say.

Provide the configuration as a JSON file via --json-properties - a flat object with four booleans: BlockPublicAcls Reject requests that would apply a public ACL. IgnorePublicAcls Ignore public ACLs already set. BlockPublicPolicy Reject bucket policies that grant public access. RestrictPublicBuckets Limit access via an existing public policy to authorized principals.

Set all four to true to lock a bucket down completely. This is a full REPLACE of the configuration. Run with --json-properties-example to print a template with every guardrail enabled.

Options

Examples

Last updated

Was this helpful?