List All Policies
Returns a list of all access control policies.string
Unique policy identifier
string
Policy name
string
Policy description
boolean
Whether the policy is active
array
Posture check IDs applied to source groups
array
List of policy rules defining access controls
Get a Policy
Retrieve detailed information about a specific policy.string
required
The unique identifier of the policy
Example
Create a Policy
Create a new access control policy with rules.string
required
Policy name
string
Policy description
boolean
required
Whether the policy is active
array
Posture check IDs to apply to source groups
array
required
List of policy rules
Update a Policy
Update an existing policy and its rules.string
required
The unique identifier of the policy
string
required
Policy name
boolean
required
Whether the policy is active
array
required
Complete list of policy rules (replaces existing rules)
Example
Delete a Policy
Remove a policy from the network.string
required
The unique identifier of the policy
Example
Policy Rules
Each policy contains one or more rules that define access controls.Rule Fields
string
required
Rule name
string
Rule description
boolean
required
Whether the rule is active
string
required
Action to take:
accept or dropboolean
required
Whether the rule applies in both directions
string
required
Protocol type:
all, tcp, udp, icmp, or netbird-ssharray
List of port numbers (for TCP/UDP)
array
List of port range objects with
start and end fieldsarray
required
Source group IDs
array
required
Destination group IDs
object
Source resource object (alternative to sources)
object
Destination resource object (alternative to destinations)
Protocol Examples
Policy Actions
Accept
Allow traffic matching the rule
Drop
Block traffic matching the rule
Bidirectional Rules
Whenbidirectional: true, the rule applies in both directions:
- Group A → Group B
- Group B → Group A
Posture Checks
Apply security requirements to source groups:Common Policy Patterns
Allow All Within Group
Database Access
Zero Trust Access
Best Practices
Start with deny-all - Create policies that explicitly allow only required traffic
Use specific protocols and ports - Avoid using
"protocol": "all" when possibleEnable posture checks - Require security compliance for sensitive access
Document policies - Add clear descriptions explaining the purpose of each policy
Test before deploying - Verify policies in a test environment first
Review regularly - Audit policies periodically to ensure they’re still needed