Condition

Conditions are used to control whether logic defined in configured VCL objects is applied for a particular client request. A condition contains a VCL conditional expression that evaluates to either true or false and is used to determine whether the condition is met. The type of the condition determines where it is executed and the VCL variables that can be evaluated as part of the conditional logic.

Data model

commentstringA freeform descriptive note.
namestringName of the condition. Required.
priorityintegerPriority determines execution order. Lower numbers execute first.
statementstringA conditional expression in VCL used to determine if the condition is met.
typestringType of the condition.
created_atstringDate and time in ISO 8601 format.
deleted_atstringDate and time in ISO 8601 format.
service_idstringAlphanumeric string identifying the service.
updated_atstringDate and time in ISO 8601 format.
versionintegerInteger identifying a service version.

Endpoints

List conditions

GET/service/service_id/version/version_id/condition

Create a condition

POST/service/service_id/version/version_id/condition

Describe a condition

GET/service/service_id/version/version_id/condition/condition_name

Update a condition

PUT/service/service_id/version/version_id/condition/condition_name

Delete a condition

DELETE/service/service_id/version/version_id/condition/condition_name