Return login security country codes

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

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_countries_with_known_ip_ranges

Response samples

Content type
application/json
{
  • "data": {
    • "countries": [
      • {
        • "code": "US",
        • "name": "United States"
        }
      ]
    },
  • "metadata": {
    • "command": "get_countries_with_known_ip_ranges",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}