Admission
Get a list of admission rules
get/admission/rules
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.
Query parameters
scope'fed' | 'local'
When set to fed, returned fed admission rules. When set to local, returned local admission rules. If there is no query string 'scope', all admission rules will be returned.
Headers
X-Auth-Tokenstring required
Response
Success
Example response
{
"rules": [
{
"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.