Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.provisionr.io/llms.txt

Use this file to discover all available pages before exploring further.

Usage

prv policy-rule:create [options]

Aliases

You can also use these shorthand aliases:
  • prv policy-rule:new
  • prv porul:create
  • prv porul:new

Options

OptionDescription
-t, --resource_type[=<value>](Option 1) The type of resource to create the rule for
-i, --resource_id[=<value>](Option 1) The Attribute ID or Resource ID to create the rule for
--policy_role_id[=<value>]The Policy Role ID to assign to the rule
-p, --policy_ruleset_id[=<value>](Option 2) The Policy Ruleset ID to create the rule for
-d, --description[=<value>]The description of the rule
--no_conditionsIf set, will not prompt to create conditions
--api(Debug) Show the API endpoint and query string in the command header

Examples

Create rule for a ruleset

prv policy-rule:create --policy_ruleset_id=poset_01hq8xyzabc123def456ghi789

Create rule without conditions prompt

prv policy-rule:create --policy_ruleset_id=poset_01hq8xyzabc123def456ghi789 --no_conditions

Create rule with description

prv policy-rule:create --policy_ruleset_id=poset_01hq8xyzabc123def456ghi789 --description="Engineering team access"