Admission
Update admission state
patch/admission/state
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
{
"state": {
"enable": true,
"mode": "Protect",
"default_action": "allow",
"adm_client_mode": "service",
"adm_client_mode_options": {
"service": "service",
"url": "service:xyz-svc-admission-webhook.xyz.svc"
},
"ctrl_states": {
"validate": "validate",
"states": true
}
},
"admission_options": {
"deny_options": {
"k8s_options": {
"rule_options": {
"rule": "criterion_name",
"options": {
"name": "group",
"match_src": "yaml",
"sub_options": {
"rule": "criterion_name"
}
}
}
}
},
"exception_options": {
"k8s_options": {
"rule_options": {
"rule": "criterion_name",
"options": {
"name": "group",
"match_src": "yaml",
"sub_options": {
"rule": "criterion_name"
}
}
}
}
},
"psp_collection": [
{
"name": "namespace",
"op": "=",
"value": "kube-system"
}
]
}
}Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.