Update Constraint Template
Update a ConstraintTemplate
Request
URI
PUT
https://{api_host}/telco/api/securityPolicy/constraintTemplates/{id}
COPY
Path Parameters
string
id
Required
The id of the Constraint Template
Request Body
ConstraintTemplateRequest
of type(s)
application/json
Optional
"ConstraintTemplateRequest Object"
string
name
Required
Constraint Template name. it must be unique
string
description
Optional
A human readable description for the constraint Template.
string
template
Required
The ConstraintTemplate in Yaml format.
string
supportedVersions
Optional
Yaml array of opa versions above constraint template is compatable with
object
labels
Optional
labels
Responses
200
The updated ConstraintTemplate object
Returns
ConstraintTemplateResponse
of type(s)
application/json
This response body class contains all of the following:
InlineConstraintTemplateResponse0 ,
InlineConstraintTemplateResponse1
"ConstraintTemplateResponse Object"
500
Returns
InternalServerError
of type(s)
application/json
Operation doesn't return any data structure
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/telco/api/securityPolicy/constraintTemplates/{id}