Returns all available device policies

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Returns all available device control policies.

Request URL

https://{serverurl}/dcapi/device/alldevicepolicies

Scope

DesktopCentralCloud.DeviceControl.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

Content-TypestringMandatory
application/jsonapplication/jsonCopied!

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url https://appdomains/dcapi/device/alldevicepolicies \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52' \
  --header 'Content-Type: application/json'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
alldevicepolicyJSON Array

List of all device policies

Show Sub-Attributes
JSON Object
Show Sub-Attributes
policyIDstring

Unique policy identifier

policyNamestring

Name of the device policy

statusboolean

Whether the policy is active

platformIDinteger

Target platform
1=Windows,
2=Mac

wirelessAdapterStatusinteger

Wireless adapter status
1=Allow,
3=Block,
4=No Change

- HTTP code 500

Response Body - application/json
JSON Object
Hide Sub-Attributes
errorCodestring

Error code identifying the type of error

errorMsgstring

Human-readable error message

Possible Response Codes

200HTTP code
500HTTP code

Sample Response: HTTP 200

All device policies response

Copied!
  {
    "alldevicepolicy": [
      {
        "policyID": "501",
        "policyName": "Block USB Storage",
        "wirelessAdapterStatus": 4,
        "platformID": 1,
        "status": true
      }
    ]
  }
                
Show full

Sample Response: HTTP 500

Internal server error

Copied!
  {
    "errorCode": "INTERNAL_ERROR",
    "errorMsg": "Internal Server Error!"
  }
                
Show full

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.