cURL
curl --request GET \ --url https://api.ngrok.com/ip_policy_rules \ --header 'Authorization: Bearer <token>' \ --header 'ngrok-version: <ngrok-version>'
{ "ip_policy_rules": [ { "id": "<string>", "uri": "<string>", "created_at": "<string>", "description": "<string>", "metadata": "<string>", "cidr": "<string>", "ip_policy": { "id": "<string>", "uri": "<string>" }, "action": "<string>" } ], "uri": "<string>", "next_page_uri": "<string>" }
List all IP policy rules on this account
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
the list of all IP policy rules on this account
Show child attributes
unique identifier for this IP policy rule
URI of the IP policy rule API resource
timestamp when the IP policy rule was created, RFC 3339 format
human-readable description of the source IPs of this IP rule. optional, max 255 bytes.
arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes.
an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported.
object describing the IP policy this IP Policy Rule belongs to
a resource identifier
a uri for locating a resource
the action to apply to the policy rule, either allow or deny
allow
deny
URI of the IP policy rule list API resource
URI of the next page, or null if there is no next page
Was this page helpful?