Retrieve Deployment 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

Retrieves the list of configured deployment policies.

Request URL

https://{serverurl}/dcapi/patch/reports/deploymentPolicies

Scope

DesktopCentralCloud.PatchMgmt.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Query Parameters

pageLimitintegerOptional

Number of records per page (default 25)

pageintegerOptional

Page number to retrieve (1-based)

searchColumnstringOptional

Column name to search within

searchValuestringOptional

Value to search for in the specified column

isWebViewstringOptional

Whether request is from web view

skipColumnsstringOptional

Comma-separated column names to exclude from response

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request GET \
  --url https://appdomains/dcapi/patch/reports/deploymentPolicies \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

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

Array of report-specific data records

totalstring

Total number of records

pagestring

Current page number

pageLimitstring

Records per page

- HTTP code 500

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

Error code: INTERNAL_ERROR for server-side failures

error_descriptionstring

Localized error description: dc.rest.api_internal_error

Possible Response Codes

200HTTP code
500HTTP code

Sample Response: HTTP 200

Deployment policies report

Copied!
  {
    "total": 6,
    "pageLimit": 25,
    "data": [
      {
        "rebootPolicy": "Skip Reboot",
        "policyId": 201,
        "policyName": "Default Deployment Policy",
        "createdBy": "admin",
        "deploymentWindow": "Maintenance Window",
        "retryCount": 3,
        "associatedConfigs": 5
      }
    ],
    "page": 1
  }
                
Show full

Sample Response: HTTP 500

Server-side error

Copied!
  {
    "error_description": "dc.rest.api_internal_error",
    "error_code": "INTERNAL_ERROR"
  }
                
Show full

Duration: 1 minute | Threshold: 50 | 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.