When creating a new monitoring job (probe), you must configure your monitored hosts to allow for communication with NS1 monitoring nodes.
Run the API request below to return a list of available monitoring regions, their IP addresses, and more.
curl -sX GET -H "X-NSONE-Key: $NSONE_API_KEY" \ https://api.nsone.net/v1/monitoring/regions \ | jq -r 'sort_by(.name) | .[] | .name, .code, .subnets[]'
Note
The example request above includes special formatting requests for a human-readable response. You can exclude the jq formatting details, if desired.
This produces a human-readable JSON response with the name, code, and IP(v4/v6) information for each region. For example:
Amsterdam ams 163.114.228.0/24 2620:4d:4033::/48 Dallas dal 163.114.225.0/24 2620:4d:4031::/48 London lhr 163.114.231.0/24 2620:4d:4037::/48 New York lga 163.114.224.0/24 2620:4d:4032::/48 San Jose sjc 163.114.226.0/24 2620:4d:4030::/48 Singapore sin 163.114.227.0/24 2620:4d:4034::/48 Sydney syd 163.114.229.0/24 2620:4d:4035::/48 São Paulo gru 163.114.232.0/24 2620:4d:4038::/48 Tokyo nrt 163.114.230.0/24 2620:4d:4036::/48
Notice that the response uses the following format for each monitoring region in the list:
<region_name> <region_code> <IPv4 subnet> <IPv6 subnet>
For further assistance, please contact the NS1 support team.