Listing all ISO codes for countries¶
Send a GET request to the /waf/countries endpoint.
Description¶
The List-Country request allows the user to request a list of all possible ISO codes for countries for a WAF rule in the Myra Suite.
Requirements¶
Values of the request: none
Objects: none
Request¶
To request a list of all countries, no additional information needs to be added to the path of the request.
As a result, you will receive one or more CountryVO objects containing the requested information.
The object provides the following information:
| Attributes | Description |
|---|---|
countryCode |
The short name for the country. |
country |
The long name for the country. |
continentCode |
The short name for the continent. |
continent |
The long name for the continent. |
id |
The ID of the entry. |
Example¶
Example response:
[
{
"objectType": "string",
"countryCode": "string",
"country": "string",
"continentCode": "string",
"continent": "string",
"id": 0,
"modified": "string",
"created": "string"
}
]
Responses¶
The following responses are available:
| STATUS CODE | DESCRIPTION |
|---|---|
| 200 | The request has succeeded. |
| 400 | The request was unsuccessful. The request was invalid or information is missing. |
| 401 | The request has not succeeded because the user authentication was incorrect. |
| 403 | The request has not succeeded because the user does not have the right permissions. |