Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.84 KB

VclDiffApi.md

File metadata and controls

58 lines (42 loc) · 1.84 KB

Fastly.VclDiffApi

const apiInstance = new Fastly.VclDiffApi();

Methods

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
vclDiffServiceVersions GET /service/{service_id}/vcl/diff/from/{from_version_id}/to/{to_version_id} Get a comparison of the VCL changes between two service versions

vclDiffServiceVersions

vclDiffServiceVersions({ service_id, from_version_id, to_version_id, [format] })

Get a comparison of the VCL changes between two service versions.

Example

const options = {
  service_id: "service_id_example", // required
  from_version_id: 1, // required
  to_version_id: 2, // required
  format: "text",
};

apiInstance.vclDiffServiceVersions(options)
  .then((data) => {
    console.log(data, "API called successfully.");
  })
  .catch((error) => {
    console.error(error);
  });

Options

Name Type Description Notes
service_id String Alphanumeric string identifying the service.
from_version_id Number The version number of the service to which changes in the generated VCL are being compared. Can either be a positive number from 1 to your maximum version or a negative number from -1 down (-1 is latest version etc).
to_version_id Number The version number of the service from which changes in the generated VCL are being compared. Uses same numbering scheme as from.
format String Optional method to format the diff field. [optional] [one of: "text", "html", "html_simple"]

Return type

VclDiff

[Back to top] [Back to API list] [Back to README]