# Retrieves all predefined data rules Retrieves all predefined data rules. ## Endpoint `GET /endpointdlp/api/data-classification/data-rule/data-rules` ## Request ### Request URL `https://[serverurl](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/endpointdlp/api/data-classification/data-rule/data-rules` ### Scope `DesktopCentralCloud.EndpointDLP.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` (Mandatory): `application/dataRules.v1+json` ## Sample Request ```curl curl --request GET \ --url https://appdomains/endpointdlp/api/data-classification/data-rule/data-rules \ --header 'Accept: application/dataRules.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` - `JSON Object` - **dataRules** `JSON Array`: List of predefined data rules ### Sample Response: HTTP 200 Successful retrieval of data rules ```json { "dataRules": [ { "noOfOccurrence": "2", "ruleName": "Albania: International Bank Account Number", "dataCategoryId": "3", "ruleId": "1", "countryId": "1", "dataClassId": "1", "subRuleTypeId": 1 }, { "noOfOccurrence": "3", "ruleName": "American Express", "dataCategoryId": "2", "ruleId": "139", "countryId": "85", "dataClassId": "5", "subRuleTypeId": 1 } ] } ``` ### HTTP Code 500 Response Body: `application/json` - `JSON Object` - **errorCode** `string`: Internal error code returned when fetching all data rules fails - **errorMessage** `string`: Failure message describing why data rules could not be retrieved ### Sample Response: HTTP 500 Internal server error ```json { "errorMessage": "Exception occurred while fetching DataRule :: ", "errorCode": "INTERNAL_ERROR" } ``` ## API Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **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.