GET /licenseCountries
Use this REST API to return a list of countries and languages that can be for customer information associated with licenses.
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}/licenseCountries
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. |
403 | Forbidden | The orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request. For XClarity Administrator advanced functions, ensure that you have active licenses for each managed server that supports the advanced functions. |
409 | Conflict | There is a conflict with the current state of the resource. 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 | ||
---|---|---|---|---|
countries | Array of objects | Information about each country | ||
desc | String | Country description | ||
value | String | Country code | ||
languages | Array of objects | Information about each language | ||
desc | String | Language description | ||
value | String | Language code |
The following example is returned if the request is successful.
{
"countries" :[
{ "desc": "China", "value": "CN" },
{ "desc": "UnitedKingdom", "value": "GB" }
...,
],
"languages" :[
{ "desc": "Chinese-traditional", "value": "ZN" },
{ "desc": "English", "value": "EN" },
...,
]
}
Give documentation feedback