Return login security country codes

This function lists the country codes available for whitelist and blacklist functions.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/get_countries_with_known_ip_ranges
Request samples
whmapi1 --output=jsonpretty \
  get_countries_with_known_ip_ranges
Response samples
application/json
{
  • "data": {
    • "countries": [
      • {
        • "code": "US",
        • "name": "United States"
        }
      ]
    },
  • "metadata": {
    • "command": "get_countries_with_known_ip_ranges",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}