Enable Rules

Specify the ID of an existing rule you want to enable and the rule gets enabled.

/rest/v1/rules/enable

Input ParametersInput Parameters

Parameter

Mandatory/Optional Data Type

Description

ruleIds

Mandatory Array[String]

Specify the ID of an rule to be enabled and the rule gets enabled. You can provide multiple Ids separated by comma.

Example:

{

  "ids": [

    "string"

  ]

}

Sample - Enable rulesSample - Enable rules

API request

    
      curl -X POST-u <username>:<password>  
      '<qualys_base_url>/cloudview-api/rest/v1/rules/enable
      

Request POST Data

    
      {
    "ids": [
        "1a841990-5dff-11ea-a923-6b29e6c4cbec",
        "efbf4080-52dd-11ea-a008-cbe911ab6a51"
    ]
}
      

Response

    
No Content
      
Response Code: 200