The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

WebService::Fastly::SettingsApi

Load the API package

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

Method | HTTP request | Description ------------- | ------------- | ------------- get_service_settings | GET /service/{service_id}/version/{version_id}/settings | Get service settings

get_service_settings

SettingsResponse get_service_settings(service_id => $service_id, version_id => $version_id)

Get service settings

Get the settings for a particular service and version.

Example

my $api_instance = WebService::Fastly::SettingsApi->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 $version_id = 56; # int | Integer identifying a service version.
eval {
my $result = $api_instance->get_service_settings(service_id => $service_id, version_id => $version_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SettingsApi->get_service_settings: $@\n";
}

Parameters

Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- service_id | string| Alphanumeric string identifying the service. | version_id | int| Integer identifying a service version. |

Return type

SettingsResponse

Authorization

token

HTTP request headers

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