Skip to content

policy group policy get

Show a policy.

Description

Fetch a single policy by id within a group and print its detail (id, group, name, description, active, effect, principal, actions, resources, created/updated timestamps).

Synopsis

grn agentbase policy group policy get <group-id> <policy-id>

Positional arguments:

  • <group-id> — the policy group id (exactly 1 required).
  • <policy-id> — the policy id (exactly 1 required).

Options

This command takes no command-specific options.

Global options

All grn agentbase commands accept:

  • -o, --output json|table|id — output format (default table)
  • -i, --interactive — prompt for missing required parameters
  • The shared grn global options: --profile, --region, --query, --endpoint-url, --debug

Examples

Show a policy:

grn agentbase policy group policy get pg-abc123 pol-def456