Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
bulk_delete_waf_active_rules | DELETE /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules | Delete multiple active rules from a WAF |
bulk_update_waf_active_rules | PATCH /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/bulk | Update multiple active rules |
create_waf_active_rule | POST /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules | Add a rule to a WAF as an active rule |
create_waf_active_rules_tag | POST /waf/firewalls/{firewall_id}/versions/{version_id}/tags/{waf_tag_name}/active-rules | Create active rules by tag |
delete_waf_active_rule | DELETE /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/{waf_rule_id} | Delete an active rule |
get_waf_active_rule | GET /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/{waf_rule_id} | Get an active WAF rule object |
list_waf_active_rules | GET /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules | List active rules on a WAF |
update_waf_active_rule | PATCH /waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/{waf_rule_id} | Update an active rule |
Delete many active rules on a particular firewall version using the active rule ID. Limited to 500 rules per request.
let cfg = &Configuration::default();
let params = BulkDeleteWafActiveRulesParams {
// parameters
};
bulk_delete_waf_active_rules(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
request_body | Option<::std::collections::HashMap<String, serde_json::Value>> |
(empty response body)
- Content-Type: application/vnd.api+json; ext=bulk
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Bulk update all active rules on a firewall version. This endpoint will not add new active rules, only update existing active rules.
let cfg = &Configuration::default();
let params = BulkUpdateWafActiveRulesParams {
// parameters
};
bulk_update_waf_active_rules(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
body | Option<crate::models::WafActiveRuleData> |
(empty response body)
- Content-Type: application/vnd.api+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Create an active rule for a particular firewall version.
let cfg = &Configuration::default();
let params = CreateWafActiveRuleParams {
// parameters
};
create_waf_active_rule(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
waf_active_rule | Option<WafActiveRule> |
crate::models::WafActiveRuleCreationResponse
- Content-Type: application/vnd.api+json, application/vnd.api+json; ext=bulk
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Create active rules by tag. This endpoint will create active rules using the latest revision available for each rule.
let cfg = &Configuration::default();
let params = CreateWafActiveRulesTagParams {
// parameters
};
create_waf_active_rules_tag(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
waf_tag_name | String | Name of the tag. | [required] | |
waf_active_rule | Option<WafActiveRule> |
(empty response body)
- Content-Type: application/vnd.api+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Delete an active rule for a particular firewall version.
let cfg = &Configuration::default();
let params = DeleteWafActiveRuleParams {
// parameters
};
delete_waf_active_rule(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
waf_rule_id | String | Alphanumeric string identifying a WAF rule. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Get a specific active rule object. Includes details of the rule revision associated with the active rule object by default.
let cfg = &Configuration::default();
let params = GetWafActiveRuleParams {
// parameters
};
get_waf_active_rule(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
waf_rule_id | String | Alphanumeric string identifying a WAF rule. | [required] | |
include | Option<String> | Include relationships. Optional, comma-separated values. Permitted values: waf_rule_revision and waf_firewall_version . |
crate::models::WafActiveRuleResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
List all active rules for a particular firewall version.
let cfg = &Configuration::default();
let params = ListWafActiveRulesParams {
// parameters
};
list_waf_active_rules(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
filter_status | Option<String> | Limit results to active rules with the specified status. | ||
filter_waf_rule_revision_message | Option<String> | Limit results to active rules with the specified message. | ||
filter_waf_rule_revision_modsec_rule_id | Option<String> | Limit results to active rules that represent the specified ModSecurity modsec_rule_id. | ||
filter_outdated | Option<String> | Limit results to active rules referencing an outdated rule revision. | ||
include | Option<String> | Include relationships. Optional, comma-separated values. Permitted values: waf_rule_revision and waf_firewall_version . |
||
page_number | Option<i32> | Current page. | ||
page_size | Option<i32> | Number of records per page. | [default to 20] |
crate::models::WafActiveRulesResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
Update an active rule's status for a particular firewall version.
let cfg = &Configuration::default();
let params = UpdateWafActiveRuleParams {
// parameters
};
update_waf_active_rule(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
firewall_id | String | Alphanumeric string identifying a WAF Firewall. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
waf_rule_id | String | Alphanumeric string identifying a WAF rule. | [required] | |
waf_active_rule | Option<WafActiveRule> |
crate::models::WafActiveRuleResponse
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json