Admission
Test admission control rules
post/assess/admission/rule
Request
- Base URL/v1 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared. Required headers: X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Auth-Tokenstring required
Request body
Example request
{
"config": {
"id": 1,
"category": "Kubernetes",
"comment": "comment",
"criteria": [
{
"name": "namespace",
"op": "=",
"value": "kube-system"
}
],
"disable": true,
"cfg_type": "ground",
"rule_type": "exception"
}
}Response
Success
Example response
{
"results": [
{
"index": 1,
"name": "iperfserver",
"kind": "Deployment",
"message": "Assessment Creation of Kubernetes Deployment resource (iperfserver) is denied because of deny rule id 1000 with criteria: (allow privilege escalation = true) [Notice: the requested image(s) are not scanned: quay.io/nvlab/iperf]"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.