Show Policy Details

Shows details of a policy.

GET/csapi/v1.3/centralizedPolicy/{policyId}

Input ParametersInput Parameters

Parameter Mandatory/Optional Data Type Description
policyId Mandatory string Specify the UUID of the policy of which you want to fetch details.

Sample: Fetch Details of a PolicySample: Fetch Details of a Policy

API Request

curl -X "GET"
"<qualys_base_url>/csapi/v1.3/centralizedPolicy/7a64bbd7-67a8-4c39-981e-6345c62bacb2"
-H "accept: application/json"
-H "Authorization: Bearer <token>"

Response

{
    "uuid": "7a64bbd7-67a8-4c39-981e-6345c62bacb2",
    "policyName": "Policy123",
    "policyType": "IMAGESCAN",
    "policyMode": "ACTIVE",
    "description": "Policy123",
    "createdBy": "user1",
    "created": "1683537516989",
    "updatedBy": "user1",
    "updated": "1683537516989",
    "centralizedPolicyRules": [
        {
            "name": "Rule123",
            "type": "IMAGESCAN_VULN_SEVERITYCOUNT",
            "action": "DENY",
            "isEnabled": true,
            "stopProcessing": false,
            "sortOrder": 0,
            "metaData": "{\"operator\":\"GREATER_THAN\",\"severityLevel\":1,\"threshold\":1}"
        }
    ],
    "version": 1,
    "assetType": "CICD",
    "isDefault": false,
    "tagIds": [
        {
            "uuid": "cf203e51-490f-47d4-b271-bdc4822f6181",
            "id": 7624640,
            "name": "Tag-101",
            "backgroundColor": "#B6D7A8",
            "foregroundColor": "#000000",
            "icon": null,
            "criticalityScore": 0,
            "tagType": null
        },
        {
            "uuid": "383318ae-3e32-420a-a3dc-4deaab5ee283",
            "id": 7624639,
            "name": "Tag-10",
            "backgroundColor": "#F9CB9C",
            "foregroundColor": "#000000",
            "icon": null,
            "criticalityScore": 0,
            "tagType": null
        }
    ]
}

 

 

Was this topic helpful?

success Thank you! We're glad to hear that this topic was useful.
success We appreciate your feedback. We'll work to make this topic better for you in the future.