# Resume a suspended quarantine compliance collection Resumes a previously suspended quarantine compliance collection, restarting policy enforcement and scheduled scans. ## Endpoint **POST** `/dcapi/compliance/quarantine/policy/{collectionId}/resume` ## Request ### Request URL https://*[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)*/dcapi/compliance/quarantine/policy/{collectionId}/resume ### Scope `DesktopCentralCloud.VulnerabilityMgmt.CREATE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Path Parameters - **collectionId** (`string`, Mandatory): The quarantine collection ID to resume. Fetch from [Get Quarantine Rule Details](https://www.manageengine.com/products/desktop-central/help/api/cloud/get-quarantine-rule-details.html). ### Sample Request #### Curl ```curl curl --request POST \ --url https://appdomains/dcapi/compliance/quarantine/policy/{collectionId}/resume \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` #### Java ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.io.IOException; import java.net.http.HttpTimeoutException; public class Main { public static void main(String[] args) { HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://appdomains/dcapi/compliance/quarantine/policy/{collectionId}/resume")) .header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") .method("POST", HttpRequest.BodyPublishers.noBody()) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } } ``` #### Python ```python import http.client conn = http.client.HTTPSConnection("appdomains") headers = { 'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52" } conn.request("POST", "/dcapi/compliance/quarantine/policy/{collectionId}/resume", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` #### Deluge ```javascript headersMap = Map(); headersMap.put("Accept", "application/json"); response = invokeUrl [ url: "https://appDomains/dcapi/compliance/quarantine/policy/{collectionId}/resume" type: POST headers: headersMap connection: connection_name ] info response; ``` #### PowerShell ```powershell $headers=@{} $headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") $response = Invoke-WebRequest -Uri 'https://appdomains/dcapi/compliance/quarantine/policy/{collectionId}/resume' -Method POST -Headers $headers ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` **JSON Object** - **status** (`string`): Operation result. Success for suspend, Resumed or Expired for resume. - **collectionName** (`string`): Name of the compliance collection. ### HTTP Code 401 Response body: `application/json` **JSON Object** - **errorCode** (`string`): Unauthorized error code. Collection is not a compliance or quarantine collection, or user lacks scope access. - **errorMessage** (`string`): Message indicating the collection type mismatch or insufficient scope. ### 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. ## Possible Response Codes - **200** — HTTP code - **401** — HTTP code - **429** — HTTP code ## Sample Responses ### HTTP 200 #### Quarantine collection resumed successfully ```json { "STATUS": "Resumed", "collectionName": "DMZ Quarantine Policy" } ``` #### Collection has expired and cannot be resumed ```json { "STATUS": "Expired", "collectionName": "DMZ Quarantine Policy" } ``` ### HTTP 401 #### The provided collection is not a quarantine collection or user lacks scope ```json { "errorMessage": "The given Collection is not a Quarantine Collection", "errorCode": "UAC_UNAUTHORIZED" } ``` #### User does not have scope access to the resource group ```json { "errorMessage": "No access, Provided resource group is not in scope", "errorCode": "UAC_UNAUTHORIZED" } ``` ### HTTP 429 #### API call threshold exceeded ```json { "errorMessage": "Rate limit exceeded. Retry after some time", "errorCode": "TOO_MANY_REQUESTS" } ``` ## Rate Limits ![](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.