Skip to content

Latest commit

 

History

History
168 lines (116 loc) · 5.2 KB

LegacyWafConfigurationSetsApi.md

File metadata and controls

168 lines (116 loc) · 5.2 KB

WebService::Fastly::LegacyWafConfigurationSetsApi

Load the API package

use WebService::Fastly::Object::LegacyWafConfigurationSetsApi;

Note

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

Method HTTP request Description
list_waf_config_sets GET /wafs/configuration_sets List configuration sets
list_wafs_config_set GET /wafs/configuration_sets/{configuration_set_id}/relationships/wafs List WAFs currently using a configuration set
use_waf_config_set PATCH /wafs/configuration_sets/{configuration_set_id}/relationships/wafs Apply a configuration set to a WAF

list_waf_config_sets

object list_waf_config_sets()

List configuration sets

List all Configuration sets.

Example

use Data::Dumper;
use WebService::Fastly::LegacyWafConfigurationSetsApi;
my $api_instance = WebService::Fastly::LegacyWafConfigurationSetsApi->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'},
);


eval {
    my $result = $api_instance->list_waf_config_sets();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LegacyWafConfigurationSetsApi->list_waf_config_sets: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

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

list_wafs_config_set

object list_wafs_config_set(configuration_set_id => $configuration_set_id)

List WAFs currently using a configuration set

List the WAF objects currently using the specified configuration set.

Example

use Data::Dumper;
use WebService::Fastly::LegacyWafConfigurationSetsApi;
my $api_instance = WebService::Fastly::LegacyWafConfigurationSetsApi->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 $configuration_set_id = "configuration_set_id_example"; # string | Alphanumeric string identifying a WAF configuration set.

eval {
    my $result = $api_instance->list_wafs_config_set(configuration_set_id => $configuration_set_id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LegacyWafConfigurationSetsApi->list_wafs_config_set: $@\n";
}

Parameters

Name Type Description Notes
configuration_set_id string Alphanumeric string identifying a WAF configuration set.

Return type

object

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

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

use_waf_config_set

object use_waf_config_set(configuration_set_id => $configuration_set_id, request_body => $request_body)

Apply a configuration set to a WAF

Update one or more WAF objects to use the specified configuration set.

Example

use Data::Dumper;
use WebService::Fastly::LegacyWafConfigurationSetsApi;
my $api_instance = WebService::Fastly::LegacyWafConfigurationSetsApi->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 $configuration_set_id = "configuration_set_id_example"; # string | Alphanumeric string identifying a WAF configuration set.
my $request_body = WebService::Fastly::Object::HASH[string,object]->new(); # HASH[string,object] | 

eval {
    my $result = $api_instance->use_waf_config_set(configuration_set_id => $configuration_set_id, request_body => $request_body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LegacyWafConfigurationSetsApi->use_waf_config_set: $@\n";
}

Parameters

Name Type Description Notes
configuration_set_id string Alphanumeric string identifying a WAF configuration set.
request_body HASH[string,object] [optional]

Return type

object

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

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