# Returns all available device policies Returns all available device control policies. ## Endpoints GET `/dcapi/device/alldevicepolicies` ## Request URL `https://{server-hostname}:8383/dcapi/device/alldevicepolicies` ## Scope `DeviceControl.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** (`string`, Mandatory): `application/json` ## Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/device/alldevicepolicies \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' ``` ## Response Parameters ### HTTP Code 200 #### Response Body: `application/json` - `JSON object` - **alldevicepolicy** (`JSON array`): List of all device policies - `JSON object` - **policyID** (`string`): Unique policy identifier - **policyName** (`string`): Name of the device policy - **status** (`boolean`): Whether the policy is active - **platformID** (`integer`): Target platform - `1=Windows` - `2=Mac` - **wirelessAdapterStatus** (`integer`): Wireless adapter status - `1=Allow` - `3=Block` - `4=No Change` ### Sample Response: HTTP 200 All device policies response ```json { "alldevicepolicy": [ { "policyID": "501", "policyName": "Block USB Storage", "wirelessAdapterStatus": 4, "platformID": 1, "status": true } ] } ``` ### HTTP Code 500 #### Response Body: `application/json` - `JSON object` - **errorCode** (`string`): Error code identifying the type of error - **errorMsg** (`string`): Human-readable error message ### Sample Response: HTTP 500 Internal server error ```json { "errorCode": "INTERNAL_ERROR", "errorMsg": "Internal Server Error!" } ``` ## Possible Response Codes - **200**: HTTP code - **500**: HTTP code ![ ](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.