Show Details of the Default Centralized Policy
Shows details of your default policy.
Input ParametersInput Parameters
Parameter | Mandatory/Optional | Data Type | Description |
---|---|---|---|
policyType | Mandatory | string | Specify the policy type. Valid values: CICD, or K8S_Admission_Controller |
Sample: Fetch Details of the Default Centralized PolicySample: Fetch Details of the Default Centralized Policy
API Request
curl -X "GET"
"<qualys_base_url>/csapi/v1.3/centralizedPolicy/defaultPolicy/K8S_ADMISSION_CONTROLLER"
-H "accept: application/json"
-H "Authorization: Bearer <Token>"
Response
{
"uuid": "string",
"policyName": "string",
"policyType": "CICD / K8S_ADMISSION_CONTROLLER",
"description": "string",
"policyMode": "ACTIVE",
"createdBy": "string",
"created": "string",
"updatedBy": "string",
"updated": "string",
"centralizedPolicyRules": [
{
"name": "string",
"type": "IMAGESCAN_VULN_SEVERITYCOUNT",
"action": "ALLOW",
"isEnabled": true,
"stopProcessing": true,
"sortOrder": 0,
"metaData": {
"operator": "GREATER_THAN",
"threshold": 4,
"severityLevel": 2
}
}
],
"version": 1,
"isDefault": true,
"tagIds": [
{
"uuid": "string",
"id": 0,
"name": "string",
"backgroundColor": "string",
"foregroundColor": "string",
"icon": "string",
"criticalityScore": 0
}
],
"K8sFilters": [
{
"cluster": {
"clusterUid": "string",
"clusterName": "string"
},
"namespace": {
"namespaceUuid": "string",
"namespaceValue": "string",
"clusterUid": "string"
}
}
]