Skip to main content
GET
/
edges
/
https
/
{edge_id}
/
routes
/
{id}
/
traffic_policy
Get
curl --request GET \
  --url https://api.ngrok.com/edges/https/{edge_id}/routes/{id}/traffic_policy \
  --header 'Authorization: Bearer <token>' \
  --header 'ngrok-version: <ngrok-version>'
{
  "enabled": true,
  "value": "<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

edge_id
string
required

unique identifier of this edge

id
string
required

unique identifier of this edge route

Response

200 - application/json

n/a

enabled
boolean

true if the module will be applied to traffic, false to disable. default true if unspecified

value
string

the traffic policy that should be applied to the traffic on your endpoint.