ConstraintRequest

ConstraintRequest
ConstraintRequest
JSON Example
{
    "name": "string",
    "constraintTemplateId": "string",
    "enforcementAction": "string",
    "matchSpec": {
        "data": "string",
        "type": "string"
    },
    "parameters": {
        "data": "string",
        "type": "string"
    },
    "deployOpa": false
}
string
name
Required

The human readable name of the ConstraintVimEnforcement. It should be unique. Defaults to random generated string appended to constraintTemplate Name included

string
constraintTemplateId
Required

The subject ConstraintTemplate identifier.

string
enforcementAction
Optional

The supported enforcementActions are [deny, dryrun, warn]

matchSpec
Optional

Match selects which objects are in scope

parameters
Optional

parameters which will be passed to the constraint template cr

boolean
deployOpa
Optional

deploy opa gatekeeper engine in the cluster if it is not installed already