Activate or Deactivate a Policy

Activates or deactivates a policy by changing the policy mode to active or inactive.

PUT/csapi/v1.3/centralizedPolicy/{policyId}/mode

Input ParametersInput Parameters

Parameter Mandatory/Optional Data Type Description
policyId Mandatory string ($uuid) Enter a policy name of up to 150 characters.
Request body Mandatory - -

Sample: Deactivate a PolicySample: Deactivate a Policy

API Request

curl -X "PUT"
"<qualys_base-url>/csapi/v1.3/centralizedPolicy/7a64bbd7-67a8-4c39-981e-
6345c62bacb2/mode"
-H "accept: application/json"
-H "Authorization: Bearer <token>"
-H "Content-Type: application/json"

Request Body

{
    "policyMode": "INACTIVE"
}

Response

{
    "uuid": "7a64bbd7-67a8-4c39-981e-6345c62bacb2"
}

 

 

Was this topic helpful?

success Thank you! We're glad to hear that this topic was useful.
success We appreciate your feedback. We'll work to make this topic better for you in the future.