Retrieves a list of policies from your account.
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. |
API Request
curl -X "GET"
"<qualys_base_url>/csapi/v1.3/centralizedPolicy?pagenumber=1&pageSize=20"
-H "accept: application/json"
-H "Authorization: Bearer <Token>"
Response
{
"data": [
{
"uuid": "d4229359-90f0-41aa-89c1-7c0b8e9b21c3",
"policyName": "rd",
"description": "Research oriented policy",
"policyMode": "ACTIVE",
"createdBy": "jack_reader",
"created": "1712202970196",
"updatedBy": "jack_reader",
"updated": "1712202970196",
"policyType": "CICD",
"isDefault": false
},
{
"uuid": "73b43bbc-a210-4885-bca8-79f6136b6189",
"policyName": "NAMEPSACE",
"description": "Namespace level policy",
"policyMode": "ACTIVE",
"createdBy": "jack_reader",
"created": "1712042938140",
"updatedBy": "jack_reader",
"updated": "1712135573628",
"policyType": "K8S_ADMISSION_CONTROLLER",
"isDefault": false
}
],
"count": 1,
"groups": {}
}