PgBeam Docs
policies

policies create

Create a policy profile

Create a policy profile. Provide a name and access mode, or pass a JSON file describing the full profile (statement rules, allow/deny lists, masking, budgets).

Usage

pgbeam policies create [flags]

Options

OptionDescriptionRequiredDefault
--name <value>Policy profile nameYes-
--mode <value>Access mode: read_only or read_writeNo-
--file <value>Path to a JSON file with the full profile bodyNo-

Global options

All global options (--token, --profile, --project, --org, --json, --no-color, --debug) are also available on this command.

Examples

# Create a read-only profile
pgbeam policies create --name "read-only" --mode read_only

# Create from a JSON file
pgbeam policies create --name analytics --file ./policy.json

Output

Prints the created policy profile.

On this page