HTTPS Edge Route Backend Module
Replace HTTPS Edge Route Backend Module
Request
PUT /edges/https/{edge_id}/routes/{id}/backend
Example Request
curl \
-X PUT \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"enabled":true,"backend_id":"bkdtg_2NTVHeT705b0MRpx1FRRWHsDzRb"}' \
https://api.ngrok.com/edges/https/edghts_2NTVHZPPljJ5Cws2QE7gFz6lycC/routes/edghtsrt_2NTVHjPBEkyfH6mkJ2AEirAbFZQ/backend
Parameters
enabled | boolean | true if the module will be applied to traffic, false to disable. default true if unspecified |
backend_id | string | backend to be used to back this endpoint |
Response
Returns a 200 response on success
Example Response
{
"enabled": true,
"backend": {
"id": "bkdtg_2NTVHeT705b0MRpx1FRRWHsDzRb",
"uri": "https://api.ngrok.com/backends/tunnel_group/bkdtg_2NTVHeT705b0MRpx1FRRWHsDzRb"
}
}
Fields
enabled | boolean | true if the module will be applied to traffic, false to disable. default true if unspecified |
backend | Ref | backend to be used to back this endpoint |
Ref fields
id | string | a resource identifier |
uri | string | a uri for locating a resource |
Get HTTPS Edge Route Backend Module
Request
GET /edges/https/{edge_id}/routes/{id}/backend
Example Request
curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/https/edghts_2NTVHZPPljJ5Cws2QE7gFz6lycC/routes/edghtsrt_2NTVHjPBEkyfH6mkJ2AEirAbFZQ/backend
Response
Returns a 200 response on success
Example Response
{
"enabled": true,
"backend": {
"id": "bkdtg_2NTVHeT705b0MRpx1FRRWHsDzRb",
"uri": "https://api.ngrok.com/backends/tunnel_group/bkdtg_2NTVHeT705b0MRpx1FRRWHsDzRb"
}
}
Fields
enabled | boolean | true if the module will be applied to traffic, false to disable. default true if unspecified |
backend | Ref | backend to be used to back this endpoint |
Ref fields
id | string | a resource identifier |
uri | string | a uri for locating a resource |
Delete HTTPS Edge Route Backend Module
Request
DELETE /edges/https/{edge_id}/routes/{id}/backend
Example Request
curl \
-X DELETE \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/https/edghts_2NTVHZPPljJ5Cws2QE7gFz6lycC/routes/edghtsrt_2NTVHjPBEkyfH6mkJ2AEirAbFZQ/backend
Response
Returns a 204 response with no body on success