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
| Code | Description | Comments |
|---|---|---|
| 200 | OK | The request completed successfully. |
Response body
| Parameters | Type | Description | ||
|---|---|---|---|---|
| id | String | County code ID | ||
| abbreviation | String | ISO 3166 code for the country or region | ||
| name | String | Country 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"
}
]
Give documentation feedback