Skip to main content
GET
/
ip_policy_rules
/
{id}
Get
curl --request GET \
  --url https://api.ngrok.com/ip_policy_rules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'ngrok-version: <ngrok-version>'
{
  "id": "<string>",
  "uri": "<string>",
  "created_at": "<string>",
  "description": "<string>",
  "metadata": "<string>",
  "cidr": "<string>",
  "ip_policy": {
    "id": "<string>",
    "uri": "<string>"
  },
  "action": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

ngrok-version
integer
default:2
required

Path Parameters

id
string
required

a resource identifier

Response

200 - application/json

Get detailed information about an IP policy rule by ID.

id
string

unique identifier for this IP policy rule

uri
string

URI of the IP policy rule API resource

created_at
string

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

description
string

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

metadata
string

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

cidr
string

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

ip_policy
object

object describing the IP policy this IP Policy Rule belongs to

action
string

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