InlineConstraint1

InlineConstraint1
InlineConstraint1
JSON Example
{
    "constraint_expression": {
        "resource_type": "string"
    },
    "message": "string",
    "target": {
        "attribute": "string",
        "path_prefix": "string",
        "target_resource_type": "string"
    }
}
constraint_expression
Required

All the types of the expression extend from this abstract class. This is present for extensibility.

string
message
Optional

User friendly message to be shown to users upon violation.

target
Required

Resource attribute on which constraint should be applied. Example - sourceGroups attribute of Edge CommunicationEntry to be restricted, is given as: { "target_resource_type":"CommunicationEntry", "attribute":"sourceGroups", "path_prefix":"/infra/domains/vmc-domain/edge-communication-maps/default/communication-entries" }

Used By