Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_waf_firewall | POST /waf/firewalls | Create a firewall |
delete_waf_firewall | DELETE /waf/firewalls/{firewall_id} | Delete a firewall |
get_waf_firewall | GET /waf/firewalls/{firewall_id} | Get a firewall |
list_waf_firewalls | GET /waf/firewalls | List firewalls |
update_waf_firewall | PATCH /waf/firewalls/{firewall_id} | Update a firewall |
Create a firewall object for a particular service and service version using a defined prefetch_condition
and response
. If the prefetch_condition
or the response
is missing from the request body, Fastly will generate a default object on your service.
let cfg = &Configuration::default();
let params = CreateWafFirewallParams {
// parameters
};
create_waf_firewall(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
waf_firewall | Option<WafFirewall> |
crate::models::WafFirewallResponse
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Delete the firewall object for a particular service and service version.
let cfg = &Configuration::default();
let params = DeleteWafFirewallParams {
// parameters
};
delete_waf_firewall(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
waf_firewall | Option<WafFirewall> |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Get a specific firewall object.
let cfg = &Configuration::default();
let params = GetWafFirewallParams {
// parameters
};
get_waf_firewall(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
filter_service_version_number | Option<String> | Limit the results returned to a specific service version. | ||
include | Option<String> | Include related objects. Optional. | [default to waf_firewall_versions] |
crate::models::WafFirewallResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
List all firewall objects.
let cfg = &Configuration::default();
let params = ListWafFirewallsParams {
// parameters
};
list_waf_firewalls(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
page_number | Option<i32> | Current page. | ||
page_size | Option<i32> | Number of records per page. | [default to 20] | |
filter_service_id | Option<String> | Limit the results returned to a specific service. | ||
filter_service_version_number | Option<String> | Limit the results returned to a specific service version. | ||
include | Option<String> | Include related objects. Optional. | [default to waf_firewall_versions] |
crate::models::WafFirewallsResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Update a firewall object for a particular service and service version. Specifying a service_version_number
is required.
let cfg = &Configuration::default();
let params = UpdateWafFirewallParams {
// parameters
};
update_waf_firewall(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
waf_firewall | Option<WafFirewall> |
crate::models::WafFirewallResponse
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json