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
| Option | Description | Required | Default |
|---|---|---|---|
--name <value> | Policy profile name | Yes | - |
--mode <value> | Access mode: read_only or read_write | No | - |
--file <value> | Path to a JSON file with the full profile body | No | - |
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.jsonOutput
Prints the created policy profile.