Create Constraint With Enforcements
Create Constraint with sane defaults on the given clusters
Request
URI
POST
https://{api_host}/telco/api/securityPolicy/constraint/enforcements
COPY
Query Parameters
boolean
allow_multiple_policies_per_vim
Optional
Constraints:
default: false
This flag allows creation of multiple policies per vim (CNF ID)
Request Body
ConstraintEnforcementsRequest
of type(s)
application/json
Optional
This request body class requires all of the following:
InlineConstraintEnforcementsRequest0
,
InlineConstraintEnforcementsRequest1
"ConstraintEnforcementsRequest Object"
Responses
201
The ConstraintVimEnforcementResponse
Returns
ConstraintVimEnforcementsResponse
of type(s)
application/json
This response body class contains all of the following:
InlineConstraintVimEnforcementsResponse1
"ConstraintVimEnforcementsResponse Object"
Response Headers
undefined
Location
undefined
500
Returns
InternalServerError
of type(s)
application/json
Operation doesn't return any data structure
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/telco/api/securityPolicy/constraint/enforcements