Admission

Add admission control rule

post/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

Example response

{
  "rule": {
    "id": 2,
    "category": "Kubernetes",
    "comment": "Do not delete this exception rule",
    "criteria": [
      {
        "name": "namespace",
        "op": "=",
        "value": "kube-system"
      }
    ],
    "cfg_type": "ground",
    "rule_type": "exception"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.