Lets you update policy.
Parameter | Mandatory/Optional | Data Type | Description |
---|---|---|---|
policyName | Mandatory | string | Enter a policy name of up to 150 characters. |
description | Mandatory | string | Enter a description for the policy of up to 250 characters. |
policyType | Mandatory | string | Specify the policy type. Currently, the only available value is: IMAGESCAN |
policyMode | Mandatory | string | Specify the policy mode as active to enforce the policy or inactive to keep the policy deactivated. |
assetType | Mandatory | string | Specify the asset type. Currently, only "CICD" is supported. |
isDefault | Mandatory | string | Specify whether to make it a default policy. The valid values are: true or false. |
centralizedPolicyRules | At least one active rule is mandatory | - |
Provide rules as part of the policy evaluation. This rule reads: If the count of vulnerabilities with severity level 1 is greater than 1, deny/fail the CICD build. Where,
|
API Request
Request Body
Response