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 |
object list_waf_config_sets()
List configuration sets
List all Configuration sets.
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";
}
This endpoint does not need any parameter.
object
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
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.
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";
}
Name | Type | Description | Notes |
---|---|---|---|
configuration_set_id | string | Alphanumeric string identifying a WAF configuration set. |
object
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
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.
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";
}
Name | Type | Description | Notes |
---|---|---|---|
configuration_set_id | string | Alphanumeric string identifying a WAF configuration set. | |
request_body | HASH[string,object] | [optional] |
object
- 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]