Edge Route User Agent Filter Module
Replace HTTPS Edge Route User Agent Filter Module
Request
PUT /edges/https/{edge_id}/routes/{id}/user_agent_filter
Example Request
curl \
-X PUT \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"enabled":true,"allow":["(Pingdom\\.com_bot_version_)(\\d+)\\.(\\d+)"],"deny":["(made_up_bot)/(\\d+)\\.(\\d+)"]}' \
https://api.ngrok.com/edges/https/edghts_2bMmXLm72GkoHS8tCdzOuTQcG5r/routes/edghtsrt_2bMmXQ1tcvPsx0op3cx8T1C1WSO/user_agent_filter
Parameters
Name | Type | Description |
---|---|---|
enabled | boolean | |
allow | List<string> | |
deny | List<string> |
Response
Returns a 200 response on success
Example Response
{
"enabled": true,
"allow": ["(Pingdom\\.com_bot_version_)(\\d+)\\.(\\d+)"],
"deny": ["(made_up_bot)/(\\d+)\\.(\\d+)"]
}
Fields
Name | Type | Description |
---|---|---|
enabled | boolean | |
allow | List<string> | |
deny | List<string> |
Get HTTPS Edge Route User Agent Filter Module
Request
GET /edges/https/{edge_id}/routes/{id}/user_agent_filter
Example Request
curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/https/edghts_2bMmXLm72GkoHS8tCdzOuTQcG5r/routes/edghtsrt_2bMmXQ1tcvPsx0op3cx8T1C1WSO/user_agent_filter
Response
Returns a 200 response on success
Example Response
{
"enabled": true,
"allow": ["(Pingdom\\.com_bot_version_)(\\d+)\\.(\\d+)"],
"deny": ["(made_up_bot)/(\\d+)\\.(\\d+)"]
}
Fields
Name | Type | Description |
---|---|---|
enabled | boolean | |
allow | List<string> | |
deny | List<string> |
Delete HTTPS Edge Route User Agent Filter Module
Request
DELETE /edges/https/{edge_id}/routes/{id}/user_agent_filter
Example Request
curl \
-X DELETE \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/https/edghts_2bMmXLm72GkoHS8tCdzOuTQcG5r/routes/edghtsrt_2bMmXQ1tcvPsx0op3cx8T1C1WSO/user_agent_filter
Response
Returns a 204 response with no body on success