Fetch the Count of Correlation Rules API

Use this API to get the count of correlation rules.

POST/fim/v3/autocorrelation/rules/count

Input ParametersInput Parameters

Parameter

Mandatory/Optional

Data Type

Description

filter 

Optional

String

Filter the rule by providing a query using Qualys syntax. Refer to the “How to Search” topic in the Online Help for assistance with creating your query.

For example - scheduleType: DAILY

groupBy 

Optional

String

Group results based on certain parameters (provide comma-separated list).

For example - ruleName

interval 

Optional

 String

GroupBy interval for date fields. Valid values are y(year),q(quarter), M(month), w(week), d(day), h(hour),m(minute), s(second).

For example - 1d An interval lower than a second is not supported.

Note: Value for each interval period should be 1. For example, you can specify an interval of 1y, 1M, 1w, and so on, but not 2y, 3M, etc.

limit

Optional

String

Limit the number of rows fetched by the groupBy function.

sort 

Optional

String

Sort the results using a Qualys token.

For example - [{\"ruleName\":\"asc\"}]

SampleSample

API Request

curl -X POST
<qualys_base_url>/fim/v3/autocorrelation/rules/count 
-H 'authorization: Bearer <token>' 
-H 'content-type: application/json' 
-d @request.json

Contents of request.json

{
  "groupBy": [
    "approvalType"
  ],
  "limit": 2,
  "filter": "reviewers:quays_fa"
}

Response

{
  "MANUAL": 105,
  "AUTOMATED": 10
}