Admission
Add admission control rule
post/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
{
"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.