PUT/v1/policy/{uuid}/condition

Creates a new policy condition for an existing policy

Requires permission POLICY_MANAGEMENT or POLICY_MANAGEMENT_UPDATE

1 parameter · 4 body fields
uuidstringrequired
The UUID of the policy
operatorstringrequired
Operator used to compare the subject to the value
Allowed:ISIS_NOTMATCHESNO_MATCHNUMERIC_GREATER_THANNUMERIC_LESS_THANNUMERIC_EQUALNUMERIC_NOT_EQUALNUMERIC_GREATER_THAN_OR_EQUALNUMERIC_LESSER_THAN_OR_EQUALCONTAINS_ALLCONTAINS_ANY
subjectstringrequired
Subject the condition evaluates
Allowed:AGECOORDINATESCPEEXPRESSIONLICENSELICENSE_GROUPPACKAGE_URLSEVERITYSWID_TAGIDVERSIONCOMPONENT_HASHIS_INTERNAL
valuestringrequired
Value the subject is compared to
violationTypestringoptional
Violation type produced when the condition matches. Required for `EXPRESSION` subjects
Allowed:LICENSESECURITYOPERATIONAL

3 status codes
201The created policy condition
operatorstringrequired
Operator used to compare the subject to the value
Allowed:ISIS_NOTMATCHESNO_MATCHNUMERIC_GREATER_THANNUMERIC_LESS_THANNUMERIC_EQUALNUMERIC_NOT_EQUALNUMERIC_GREATER_THAN_OR_EQUALNUMERIC_LESSER_THAN_OR_EQUALCONTAINS_ALLCONTAINS_ANY
subjectstringrequired
Subject the condition evaluates
Allowed:AGECOORDINATESCPEEXPRESSIONLICENSELICENSE_GROUPPACKAGE_URLSEVERITYSWID_TAGIDVERSIONCOMPONENT_HASHIS_INTERNAL
uuidstringrequired
UUID of the policy condition
valuestringrequired
Value the subject is compared to
violationTypestringoptional
Violation type produced when the condition matches
Allowed:LICENSESECURITYOPERATIONAL
401Unauthorized
404The UUID of the policy could not be found

Error handling

A 401 is returned: Unauthorized. A 404 is returned: The UUID of the policy could not be found.