Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
get_waf_rule_revision | GET /waf/rules/{waf_rule_id}/revisions/{waf_rule_revision_number} | Get a revision of a rule |
list_waf_rule_revisions | GET /waf/rules/{waf_rule_id}/revisions | List revisions for a rule |
Get a specific rule revision.
let cfg = &Configuration::default();
let params = GetWafRuleRevisionParams {
// parameters
};
get_waf_rule_revision(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
waf_rule_id | String | Alphanumeric string identifying a WAF rule. | [required] | |
waf_rule_revision_number | i32 | Revision number. | [required] | |
include | Option<String> | Include relationships. Optional, comma-separated values. Permitted values: waf_rule , vcl , and source . The vcl and source relationships show the WAF VCL and corresponding ModSecurity source. These fields are blank unless the relationship is included. |
crate::models::WafRuleRevisionResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to README]
List all revisions for a specific rule. The rule_id
provided can be the ModSecurity Rule ID or the Fastly generated rule ID.
let cfg = &Configuration::default();
let params = ListWafRuleRevisionsParams {
// parameters
};
list_waf_rule_revisions(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
waf_rule_id | String | Alphanumeric string identifying a WAF rule. | [required] | |
page_number | Option<i32> | Current page. | ||
page_size | Option<i32> | Number of records per page. | [default to 20] | |
include | Option<String> | Include relationships. Optional. | [default to waf_rule] |
crate::models::WafRuleRevisionsResponse
- Content-Type: Not defined
- Accept: application/vnd.api+json