Note
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| ddos_protection_event_get | GET /ddos-protection/v1/events/{event_id} | Get event by ID |
| ddos_protection_event_list | GET /ddos-protection/v1/events | Get events |
| ddos_protection_event_rule_list | GET /ddos-protection/v1/events/{event_id}/rules | Get all rules for an event |
| ddos_protection_rule_get | GET /ddos-protection/v1/rules/{rule_id} | Get a rule by ID |
| ddos_protection_rule_patch | PATCH /ddos-protection/v1/rules/{rule_id} | Update rule |
| ddos_protection_traffic_stats_rule_get | GET /ddos-protection/v1/events/{event_id}/rules/{rule_id}/traffic-stats | Get traffic stats for a rule |
Get event by ID.
let cfg = &Configuration::default();
let params = DdosProtectionEventGetParams {
// parameters
};
ddos_protection_event_get(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| event_id | String | Unique ID of the event. | [required] |
crate::models::DdosProtectionEvent
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Get events.
let cfg = &Configuration::default();
let params = DdosProtectionEventListParams {
// parameters
};
ddos_protection_event_list(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| cursor | Option<String> | Cursor value from the next_cursor field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |
||
| limit | Option<i32> | Limit how many results are returned. | [default to 20] | |
| service_id | Option<String> | Filter results based on a service_id. | ||
| from | Option<String> | Represents the start of a date-time range expressed in RFC 3339 format. | ||
| to | Option<String> | Represents the end of a date-time range expressed in RFC 3339 format. | ||
| name | Option<String> |
crate::models::InlineResponse2005
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Get all rules for an event.
let cfg = &Configuration::default();
let params = DdosProtectionEventRuleListParams {
// parameters
};
ddos_protection_event_rule_list(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| event_id | String | Unique ID of the event. | [required] | |
| cursor | Option<String> | Cursor value from the next_cursor field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |
||
| limit | Option<i32> | Limit how many results are returned. | [default to 20] | |
| include | Option<String> | Include relationships. Optional. Comma-separated values. |
crate::models::InlineResponse2006
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Get a rule by ID.
let cfg = &Configuration::default();
let params = DdosProtectionRuleGetParams {
// parameters
};
ddos_protection_rule_get(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| rule_id | String | Unique ID of the rule. | [required] |
crate::models::DdosProtectionRule
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Update rule.
let cfg = &Configuration::default();
let params = DdosProtectionRulePatchParams {
// parameters
};
ddos_protection_rule_patch(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| rule_id | String | Unique ID of the rule. | [required] | |
| ddos_protection_rule_patch | Option<DdosProtectionRulePatch> |
crate::models::DdosProtectionRule
- Content-Type: application/json
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to README]
Get traffic stats for a rule.
let cfg = &Configuration::default();
let params = DdosProtectionTrafficStatsRuleGetParams {
// parameters
};
ddos_protection_traffic_stats_rule_get(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| event_id | String | Unique ID of the event. | [required] | |
| rule_id | String | Unique ID of the rule. | [required] |
crate::models::DdosProtectionTrafficStats
- Content-Type: Not defined
- Accept: application/json, application/problem+json