Skip to content

Latest commit

 

History

History
190 lines (116 loc) · 5.48 KB

ProductDdosProtectionApi.md

File metadata and controls

190 lines (116 loc) · 5.48 KB

ProductDdosProtectionApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
disable_product_ddos_protection DELETE /enabled-products/v1/ddos_protection/services/{service_id} Disable product
enable_product_ddos_protection PUT /enabled-products/v1/ddos_protection/services/{service_id} Enable product
get_product_ddos_protection GET /enabled-products/v1/ddos_protection/services/{service_id} Get product enablement status
get_product_ddos_protection_configuration GET /enabled-products/v1/ddos_protection/services/{service_id}/configuration Get configuration
set_product_ddos_protection_configuration PATCH /enabled-products/v1/ddos_protection/services/{service_id}/configuration Update configuration

disable_product_ddos_protection

Disable the DDoS Protection product on a service.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]

Return type

(empty response body)

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

enable_product_ddos_protection

Enable the DDoS Protection product on a service.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]

Return type

crate::models::DdosProtectionResponseEnable

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

get_product_ddos_protection

Get the enablement status of the DDoS Protection product on a service.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]

Return type

crate::models::DdosProtectionResponseEnable

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

get_product_ddos_protection_configuration

Get configuration of the DDoS Protection product on a service.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]

Return type

crate::models::DdosProtectionResponseConfigure

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

set_product_ddos_protection_configuration

Update configuration of the DDoS Protection product on a service.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
ddos_protection_request_update_configuration Option<DdosProtectionRequestUpdateConfiguration>

Return type

crate::models::DdosProtectionResponseConfigure

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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