Skip to main content

GET /utils/countries

Use this method to return a list of common country and region codes.

Note
This REST API requires Lenovo XClarity Administrator v3.3.0 or later.

Authentication

Authentication with username and password is required.

Request URL

GET https://<management_server_IP>/utils/countries

Query parameters

None

Request body

None

Response codes

CodeDescriptionComments
200OKThe request completed successfully.

Response body

ParametersTypeDescription
idStringCounty code ID
abbreviationStringISO 3166 code for the country or region
nameStringCountry or region name
The following example is returned if the request is successful.
[
{
"id": "7",
"abbreviation": "AO",
"name": "ANGOLA"
},
{
"id": "11",
"abbreviation": "AR",
"name": "ARGENTINA"
},
{
"id": "12",
"abbreviation": "AM",
"name": "ARMENIA"
},
...,
{
"id": "242",
"abbreviation": "VI",
"name": "VIRGIN ISLANDS, U.S."
},
{
"id": "246",,
"abbreviation": "ZM"
"name": "ZAMBIA"
},
{
"id": "247",
"abbreviation": "ZW",
"name": "ZIMBABWE"
}
]