VCL snippet

VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL.

Data model

contentstringThe VCL code that specifies exactly what the snippet does.
dynamicstringSets the snippet version.
namestringThe name for the snippet.
prioritystringNumeric string value. Priority determines execution order. Lower numbers execute first.
typestringThe location in generated VCL where the snippet should be placed.
created_atstringDate and time in ISO 8601 format.
deleted_atstringDate and time in ISO 8601 format.
idstringAlphanumeric string identifying a VCL Snippet.
service_idstringAlphanumeric string identifying the service.
updated_atstringDate and time in ISO 8601 format.
versionintegerInteger identifying a service version.

Endpoints

Get a dynamic snippet

GET/service/service_id/snippet/snippet_id

Update a dynamic snippet

PUT/service/service_id/snippet/snippet_id

List snippets

GET/service/service_id/version/version_id/snippet

Create a snippet

POST/service/service_id/version/version_id/snippet

Get a versioned snippet

GET/service/service_id/version/version_id/snippet/snippet_name

Update a versioned snippet

PUT/service/service_id/version/version_id/snippet/snippet_name

Delete a snippet

DELETE/service/service_id/version/version_id/snippet/snippet_name