# Retrieves a paginated list of all BitLocker policies Returns all BitLocker policies for the current customer with optional search and pagination support. ## Endpoints **GET** `/bitlocker/api/policy/allpolicies` ## Request URL `https://`[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/bitlocker/api/policy/allpolicies` ## Scope `DesktopCentralCloud.DataEncryption.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` **Mandatory**: `application/json` ### Query Parameters - **searchStr** `string` *Optional*: Search filter string for policy name - **startIndex** `integer` *Optional*: Pagination start index. Defaults to 0 if not provided - **limit** `integer` *Optional*: Number of results per page. Defaults to 5 if not provided ## Sample Request ```curl curl --request GET \ --url https://appdomains/bitlocker/api/policy/allpolicies \ --header 'Accept: application/json' \ --header 'Authorization: Zoho-oauthtoken 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: credentials missing, expired, or invalid - **errorMsg** `string`: Authentication failure reason ### HTTP Code 403 Response Body — `application/json` `JSON Object` - **errorCode** `long`: Error code indicating insufficient permissions - **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 reached threshold - **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.