Enforce Policy On New Clusters

Enforce Policy On New Clusters

Enforces Constraint on the new clusters

Request
URI
POST
https://{api_host}/telco/api/securityPolicy/constraint/{constraintId}/enforcements
COPY
Path Parameters
string
constraintId
Required

The id of the Constraint


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


401
Returns Unauthorized of type(s) application/json
Operation doesn't return any data structure

403
Returns Forbidden of type(s) application/json
Operation doesn't return any data structure

409
Returns Conflict of type(s) application/json
Operation doesn't return any data structure

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/{constraintId}/enforcements