GET /registration/countries

Use this method to return a list of country and region codes that can be used during the registration process.

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

Authentication

Authentication with user name and password is required.

Request URL

GET https://{management_server_IP}/registration/countries

Query parameters

None

Request body

None

Response codes

Code Description Comments
200 OK The request completed successfully.
400 Bad Request A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
500 Internal Server Error An internal error occurred. A descriptive error message is returned in the response body.

Response body

Attributes Type Description
message String Results of the request. This can be one of the following values.
  • success. The request completed successfully.
  • failure. The request failed. A descriptive error message was returned.
body Array of objects Information about each country or region
  Text String Country or region name
  Value String Two-letter ISO 3166 code for the country or region
The following example is returned if the request is successful.
{
   "message": "succeed",
   "body": [{
      "Text": "ANGOLA",
      "Value": "AO"
   },
   {
      "Text": "ARGENTINA",
       "Value": "AR"
   },
   ...,
   {
      "Text": "ZAMBIA",
      "Value": "ZM"
   },
   {
      "Text": "ZIMBABWE",
      "Value": "ZW"
   }]
}