Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_waf_rule_exclusion | POST /waf/firewalls/{firewall_id}/versions/{firewall_version_number}/exclusions | Create a WAF rule exclusion |
delete_waf_rule_exclusion | DELETE /waf/firewalls/{firewall_id}/versions/{firewall_version_number}/exclusions/{exclusion_number} | Delete a WAF rule exclusion |
get_waf_rule_exclusion | GET /waf/firewalls/{firewall_id}/versions/{firewall_version_number}/exclusions/{exclusion_number} | Get a WAF rule exclusion |
list_waf_rule_exclusions | GET /waf/firewalls/{firewall_id}/versions/{firewall_version_number}/exclusions | List WAF rule exclusions |
update_waf_rule_exclusion | PATCH /waf/firewalls/{firewall_id}/versions/{firewall_version_number}/exclusions/{exclusion_number} | Update a WAF rule exclusion |
Create a WAF exclusion for a particular firewall version.
let cfg = &Configuration::default();
let params = CreateWafRuleExclusionParams {
// parameters
};
create_waf_rule_exclusion(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
firewall_version_number | i32 | Integer identifying a WAF firewall version. | [required] | |
waf_exclusion | Option<WafExclusion> |
crate::models::WafExclusionResponse
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Delete a WAF exclusion for a particular firewall version.
let cfg = &Configuration::default();
let params = DeleteWafRuleExclusionParams {
// parameters
};
delete_waf_rule_exclusion(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
firewall_version_number | i32 | Integer identifying a WAF firewall version. | [required] | |
exclusion_number | i32 | A numeric ID identifying a WAF exclusion. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Get a specific WAF exclusion object.
let cfg = &Configuration::default();
let params = GetWafRuleExclusionParams {
// parameters
};
get_waf_rule_exclusion(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
firewall_version_number | i32 | Integer identifying a WAF firewall version. | [required] | |
exclusion_number | i32 | A numeric ID identifying a WAF exclusion. | [required] |
crate::models::WafExclusionResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
List all exclusions for a particular firewall version.
let cfg = &Configuration::default();
let params = ListWafRuleExclusionsParams {
// parameters
};
list_waf_rule_exclusions(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
firewall_version_number | i32 | Integer identifying a WAF firewall version. | [required] | |
filter_exclusion_type | Option<String> | Filters the results based on this exclusion type. | ||
filter_name | Option<String> | Filters the results based on name. | ||
filter_waf_rules_modsec_rule_id | Option<i32> | Filters the results based on this ModSecurity rule ID. | ||
page_number | Option<i32> | Current page. | ||
page_size | Option<i32> | Number of records per page. | [default to 20] | |
include | Option<String> | Include relationships. Optional, comma-separated values. Permitted values: waf_rules and waf_rule_revisions . |
crate::models::WafExclusionsResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Update a WAF exclusion for a particular firewall version.
let cfg = &Configuration::default();
let params = UpdateWafRuleExclusionParams {
// parameters
};
update_waf_rule_exclusion(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
firewall_version_number | i32 | Integer identifying a WAF firewall version. | [required] | |
exclusion_number | i32 | A numeric ID identifying a WAF exclusion. | [required] | |
waf_exclusion | Option<WafExclusion> |
crate::models::WafExclusionResponse
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json