Skip to content

Latest commit

 

History

History
235 lines (147 loc) · 6.79 KB

File metadata and controls

235 lines (147 loc) · 6.79 KB

DdosProtectionApi

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

ddos_protection_event_get

Get event by ID.

let cfg = &Configuration::default();
let params = DdosProtectionEventGetParams {
    // parameters
};
ddos_protection_event_get(cfg, params)

Parameters

Name Type Description Required Notes
event_id String Unique ID of the event. [required]

Return type

crate::models::DdosProtectionEvent

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to README]

ddos_protection_event_list

Get events.

let cfg = &Configuration::default();
let params = DdosProtectionEventListParams {
    // parameters
};
ddos_protection_event_list(cfg, params)

Parameters

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>

Return type

crate::models::InlineResponse2005

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to README]

ddos_protection_event_rule_list

Get all rules for an event.

let cfg = &Configuration::default();
let params = DdosProtectionEventRuleListParams {
    // parameters
};
ddos_protection_event_rule_list(cfg, params)

Parameters

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.

Return type

crate::models::InlineResponse2006

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to README]

ddos_protection_rule_get

Get a rule by ID.

let cfg = &Configuration::default();
let params = DdosProtectionRuleGetParams {
    // parameters
};
ddos_protection_rule_get(cfg, params)

Parameters

Name Type Description Required Notes
rule_id String Unique ID of the rule. [required]

Return type

crate::models::DdosProtectionRule

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to README]

ddos_protection_rule_patch

Update rule.

let cfg = &Configuration::default();
let params = DdosProtectionRulePatchParams {
    // parameters
};
ddos_protection_rule_patch(cfg, params)

Parameters

Name Type Description Required Notes
rule_id String Unique ID of the rule. [required]
ddos_protection_rule_patch Option<DdosProtectionRulePatch>

Return type

crate::models::DdosProtectionRule

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to README]

ddos_protection_traffic_stats_rule_get

Get traffic stats for a rule.

let cfg = &Configuration::default();
let params = DdosProtectionTrafficStatsRuleGetParams {
    // parameters
};
ddos_protection_traffic_stats_rule_get(cfg, params)

Parameters

Name Type Description Required Notes
event_id String Unique ID of the event. [required]
rule_id String Unique ID of the rule. [required]

Return type

crate::models::DdosProtectionTrafficStats

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to README]