Admission

Test admission control rules

post/assess/admission/rule

Request

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

props_unavailablestring[]

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.