v8

latestOpenAPI 3.0.0raw.githubusercontent.com2026-01-23241216351.5 KB
IPPolicyRules

Create

Create a new IP policy rule attached to an IP Policy.

post/ip_policy_rules

Headers

ngrok-versioninteger required

Request body

descriptionstring

human-readable description of the source IPs of this IP rule. optional, max 255 bytes.

metadatastring

arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes.

cidrstring required

an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported.

ip_policy_idstring required

ID of the IP policy this IP policy rule will be attached to

actionstring required

the action to apply to the policy rule, either allow or deny

Response

Create a new IP policy rule attached to an IP Policy.

idstring

unique identifier for this IP policy rule

uristring

URI of the IP policy rule API resource

created_atstring

timestamp when the IP policy rule was created, RFC 3339 format

descriptionstring

human-readable description of the source IPs of this IP rule. optional, max 255 bytes.

metadatastring

arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes.

cidrstring

an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported.

actionstring

the action to apply to the policy rule, either allow or deny