capabilities.work

Upload Custom VCL

A 3-step recipe with Fastly. We can help you get access.

Recipe · 3 steps

Upload Custom VCL

with Fastly

Clone a version, upload a main custom VCL file, and activate the clone.

  1. Clone the supplied version into a new editable draft version.
  2. Upload the custom VCL file to the cloned version.
  3. Activate the cloned version so the custom VCL goes live.
What you'll need to have ready
  • apiToken: The Fastly API token used to authenticate requests.
  • serviceId: The alphanumeric identifier of the service.
  • versionId: The version number to clone.
  • vclName: A name for the custom VCL file.
  • vclContent: The full VCL source to upload.
  • main: Whether this VCL file is the main entry point.
For your developer

Arazzo workflow fastly:upload-custom-vcl, 3 operations: cloneServiceVersion → createCustomVcl → activateServiceVersion. Specs on APIs.io.