Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 2.91 KB

DiffApi.md

File metadata and controls

72 lines (51 loc) · 2.91 KB

WebService::Fastly::DiffApi

Load the API package

use WebService::Fastly::Object::DiffApi;

Note

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

Method HTTP request Description
diff_service_versions GET /service/{service_id}/diff/from/{from_version_id}/to/{to_version_id} Diff two service versions

diff_service_versions

DiffResponse diff_service_versions(service_id => $service_id, from_version_id => $from_version_id, to_version_id => $to_version_id, format => $format)

Diff two service versions

Get diff between two versions.

Example

use Data::Dumper;
use WebService::Fastly::DiffApi;
my $api_instance = WebService::Fastly::DiffApi->new(

    # Configure API key authorization: token
    api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'Fastly-Key' => 'Bearer'},
);

my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
my $from_version_id = 1; # int | 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).
my $to_version_id = 2; # int | The version number of the service from which changes in the generated VCL are being compared. Uses same numbering scheme as `from`.
my $format = 'text'; # string | Optional method to format the diff field.

eval {
    my $result = $api_instance->diff_service_versions(service_id => $service_id, from_version_id => $from_version_id, to_version_id => $to_version_id, format => $format);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DiffApi->diff_service_versions: $@\n";
}

Parameters

Name Type Description Notes
service_id string Alphanumeric string identifying the service.
from_version_id int 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 int 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] [default to 'text']

Return type

DiffResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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