Update Enforcement Action of K8s Admission Controller
Lets you validate your action against the policies specified in the Admission Controller. You can update the ’enforcementAction’ parameter of the specified k8s admission controller to either allow your action to be passed, irrespective of the assigned policy, or you can validate the action against the assigned policy and based on that either allow or deny your action.
Input ParametersInput Parameters
Parameter | Mandatory/Optional | Data Type | Description |
---|---|---|---|
uuid | Mandatory |
string |
Specify the unique identification value of the k8s admission controller of which you want to get the details. For example: 3sees731-b779-4lp2-9991-1991fd62fb40 |
Sample: Update Enforcement Action of a K8s Admission ControllerSample: Update Enforcement Action of a K8s Admission Controller
API Request
curl -X "PUT"
"<qualys_base_url>/csapi/v1.3/k8sAdmissionController/{uuid}"
-H "accept: application/json"
-H "Authorization: Bearer <token>"
-H "Content-Type: application/json"
Request Body
{
"enforcementAction": "<AUDIT/BLOCK>"
}
Response
{
"uuid": "900fdf7-8zz8-7931-80f5-19be88se20b1"
}