# Retrieves all DLP-supported countries Retrieves all DLP-supported countries for country-specific data rules. ## Endpoint `GET /endpointdlp/api/data-classification/countries` ## Request URL `https://{server-hostname}:8383/endpointdlp/api/data-classification/countries` ## Scope `EndpointDLP.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/getDlpCountries.v1+json` ### Sample Request ```curl curl --request GET \ --url https://appdomain/endpointdlp/api/data-classification/countries \ --header 'Accept: application/getDlpCountries.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 #### Response Body — `application/json` - `JSON object` - **countries** (`JSON array`): List of DLP-supported countries ### Sample Response: HTTP 200 Successful retrieval of countries ```json { "countries": [ { "countryName": "Albania", "countryId": "1" }, { "countryName": "Andorra", "countryId": "2" } ] } ``` ### HTTP code 500 #### Response Body — `application/json` - `JSON object` - **errorCode** (`string`): Internal error code (`INTERNAL_ERROR`) returned when fetching DLP metadata (data category/class/country) fails - **errorMessage** (`string`): Detailed message including the underlying exception message ### Sample Response: HTTP 500 Internal server error ```json { "errorMessage": "Exception occurred while fetching Countries :: ", "errorCode": "INTERNAL_ERROR" } ``` ## Possible Response Codes - **200** — HTTP code - **500** — HTTP code **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration — Time window for the threshold. Threshold — Number of API calls allowed within the specified duration. Lock Period — Wait time before consecutive API requests.