List Policies

Retrieves a list of policies from your account.

GET/csapi/v1.3/centralizedPolicy

Input ParametersInput Parameters

Parameter Mandatory/Optional Data Type Description
filter Optional string Filter the policies by providing a QQL search query.
pageNumber Optional integer Specify the page to be returned. 
pageSize Optional integer Specify the number of records to display per page.
sort Optional string Sort the records in the response using a QQL token.

Sample: List All Policies from Your AccountSample: List All Policies from Your Account

API Request

curl -X "GET"
"<qualys_base_url>/csapi/v1.3/centralizedPolicy?pageNumber=1&pageSize=50&sort=created%3Adesc"
-H "accept: application/json"
-H "Authorization: Bearer <token>"

Response

{
    "data": [
        {
            "uuid": "098777a1-4b76-4df5-9868-50ca570c548a",
            "policyName": "Test-011",
            "description": "test",
            "policyMode": "ACTIVE",
            "createdBy": "quays_ab6",
            "created": "1683261602526",
            "updatedBy": "quays_ab6",
            "updated": "1683261629891",
            "assetType": "CICD",
            "isDefault": false,
            "tagIds": null
        }
    ],
    "count": 1,
    "groups": {}
}