# Retrieves a paginated list of all BitLocker policies Returns all BitLocker policies for the current customer with optional search and pagination support. ## Endpoint `GET /bitlocker/api/policy/allpolicies` ## Request URL `https://{server-hostname}:8383/bitlocker/api/policy/allpolicies` ## Scope `DataEncryption.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — **Mandatory** — `application/json` ## Sample Request ### Curl ```curl curl --request GET \ --url https://appdomain/bitlocker/api/policy/allpolicies \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` `JSON Object` - **allpolicy** `JSON Array` — List of BitLocker policies ### HTTP Code 400 Response Body — `application/json` `JSON Object` - **errorCode** `long` — Validation error code raised when query parameters fail security XML regex checks (searchStr exceeds uem_safestring max-len=255, startIndex/limit not integers or exceed max-len=10) - **errorMsg** `string` — Detailed message identifying which query parameter failed validation ### HTTP Code 401 Response Body — `application/json` `JSON Object` - **errorCode** `long` — Unauthorized error code returned when authentication credentials are missing, expired, or invalid (authentication=required) - **errorMsg** `string` — Authentication failure reason ### HTTP Code 403 Response Body — `application/json` `JSON Object` - **errorCode** `long` — Forbidden error code returned when the authenticated user does not have the required uem-roles (e.g., DataEncryption_Admin or DataEncryptionRecoveryKey_Admin) - **errorMsg** `string` — Message indicating insufficient privileges to access this resource ### HTTP Code 429 Response Body — `application/json` `JSON Object` - **errorCode** `long` — Rate limit error code returned when the API call threshold (configured via threshold/duration in security XML) is exceeded; client is locked out for lock-period minutes - **errorMsg** `string` — Rate limit exceeded message with retry guidance ### HTTP Code 500 Response Body — `application/json` `JSON Object` - **errorCode** `long` — Internal server error code (DCAPIErrorCodes.INTERNAL_ERROR) thrown from the controller catch block while fetching or forming the policy list response - **errorMsg** `string` — Server-side error message — typically 'Exception while forming response' ## Possible Response Codes - `200` HTTP code - `400` HTTP code - `401` HTTP code - `403` HTTP code - `429` HTTP code - `500` HTTP code ## Sample Responses ### HTTP 200 Successful retrieval of all BitLocker policies ```json { "allpolicy": [ { "policyID": "1218", "policyName": "Policy_3233", "status": true } ] } ``` ### HTTP 400 Invalid query parameters ```json { "errorCode": 40001, "errorMsg": "Invalid request parameters" } ``` ### HTTP 401 Authentication credentials missing or invalid ```json { "errorCode": 40101, "errorMsg": "Authentication failed" } ``` ### HTTP 403 User does not have DataEncryption_Admin role ```json { "errorCode": 40301, "errorMsg": "Insufficient privileges to access this resource" } ``` ### HTTP 429 Throttle limit exceeded; client locked out for lock-period minutes ```json { "errorCode": 42901, "errorMsg": "Too many requests. Please retry after the cooldown period" } ``` ### HTTP 500 Internal server error — thrown from catch block via DCAPIException ```json { "errorCode": 10000, "errorMsg": "Exception while forming response" } ``` ## Rate Limiting ![](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.