GET /api/v1/service/countryCodes
Use this method to return a list of country and region codes.
Authentication
Authentication with username and password is required.
Resource URI
GET https://{orchestrator_server_IP}/api/v1/service/countryCodes
Query parameters
None
Request body
None
Response codes
| Code | Description | Comments |
|---|---|---|
| 200 | OK | The request completed successfully. |
Response body
When the request is successful, the following attributes are returned. If the request fails, standard message attributes are returned (see Status messages).
| Attributes | Type | Description | ||
|---|---|---|---|---|
| results | Array of objects | Information about each country or region | ||
| abbreviation | String | Two-letter ISO 3166 code for the country or region | ||
| name | String | Country or region name | ||
| _links | Object | Resource URI (see Links) | ||
The following example is returned if the request is successful.
{
"result": [
{
"abbreviation": "AO",
"name": "ANGOLA"
},
{
"abbreviation": "AR",
"name": "ARGENTINA"
},
...,
{
"abbreviation": "ZM",
"name": "ZAMBIA"
},
{
"abbreviation": "ZW",
"name": "ZIMBABWE"
}
],
"_links": {
"rel": "self",
"uri": "/api/v1/service/countryCodes"
}
}
Give documentation feedback