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]
boolean
deployOpa
Optional
deploy opa gatekeeper engine in the cluster if it is not installed already