Skip to content

pulumi policy group get | CLI commands ​

[EXPERIMENTAL] Get the details of a Policy Group

Synopsis ​

[EXPERIMENTAL] Get the details of a Policy Group.

Retrieves detailed information about a single Policy Group in an organization, including the list of Policy Packs applied to it, the stacks or Insights accounts added to the group individually, and the stack and account match rules, if any. Match rules are shown in the syntax pulumi policy group edit --stack-rule accepts, or as JSON when that syntax cannot express them.

Pass --stacks or --accounts to list the group's member stacks or Insights accounts instead: both those added individually and those matched by the group's match rule. Only members you have permission to read are listed. --source narrows the list to one of the two. The first 100 members are shown by default; use --count or --all to fetch more. With --output=json, hasMore reports whether members were left out.

Each applied Policy Pack shows how many of its policies the group configures; pass --show-config to list them.

Default output is a human-readable summary; pass --output=json for the full response as JSON.

pulumi policy group get <name> [flags]

Examples ​

  # Show a Policy Group
  pulumi policy group get prod-policies

  # Show a Policy Group with each pack's policy configuration
  pulumi policy group get prod-policies --show-config

  # Show a Policy Group in another organization as JSON
  pulumi policy group get prod-policies --org acme --output json

  # List every stack in a Policy Group, including those matched by its match rule
  pulumi policy group get prod-policies --stacks --all

  # List only the Insights accounts matched by a Policy Group's match rule
  pulumi policy group get compliance --accounts --source rule

Options ​

      --accounts        List the Insights accounts in the group that you can read, added individually or matched by its match rule
      --all             With --stacks or --accounts, return every member you can read; mutually exclusive with --count
      --count int       With --stacks or --accounts, the maximum number of members to return (default 100)
  -h, --help            help for get
      --org string      The organization that owns the Policy Group
      --output string   Output format. Supported values are: default and json (default "default")
      --show-config     List each policy pack's configured policies under the pack
      --source string   With --stacks or --accounts, list only members that were added individually (explicit) or matched by the match rule (rule)
      --stacks          List the stacks in the group that you can read, added individually or matched by its match rule

Options inherited from parent commands ​

      --color string                 Colorize output. Choices are: always, never, raw, auto (default "auto")
  -C, --cwd string                   Run pulumi as if it had been started in another directory
      --disable-integrity-checking   Disable integrity checking of checkpoint files
  -e, --emoji                        Enable emojis in the output
  -Q, --fully-qualify-stack-names    Show fully-qualified stack names
      --logflow                      Flow log settings to child processes (like plugins)
      --logtostderr                  Log to stderr instead of to files
      --memprofilerate int           Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate
      --non-interactive              Disable interactive mode for all commands
      --otel-traces string           Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors
      --profiling string             Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively
      --tracing file:                Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file
  -v, --verbose int                  Enable verbose logging (e.g., v=3); anything >3 is very verbose

SEE ALSO ​

Auto generated by spf13/cobra on 2-Dec-2026 ​

Content from the official Pulumi documentation (github.com/pulumi/docs).