Skip to content

Latest commit

 

History

History
122 lines (76 loc) · 3.51 KB

LegacyWafOwaspApi.md

File metadata and controls

122 lines (76 loc) · 3.51 KB

LegacyWafOwaspApi

Note

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

Method HTTP request Description
create_owasp_settings POST /service/{service_id}/wafs/{firewall_id}/owasp Create an OWASP settings object
get_owasp_settings GET /service/{service_id}/wafs/{firewall_id}/owasp Get the OWASP settings object
update_owasp_settings PATCH /service/{service_id}/wafs/{firewall_id}/owasp Update the OWASP settings object

create_owasp_settings

Create an OWASP settings object for a particular service and firewall.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
firewall_id String Alphanumeric string identifying a Firewall. [required]
request_body Option<::std::collections::HashMap<String, serde_json::Value>>

Return type

serde_json::Value

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

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

get_owasp_settings

Get the OWASP settings object for a particular service and firewall.

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

Parameters

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

Return type

serde_json::Value

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.api+json

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

update_owasp_settings

Update the OWASP settings object for a particular service and firewall.

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

Parameters

Name Type Description Required Notes
service_id String Alphanumeric string identifying the service. [required]
firewall_id String Alphanumeric string identifying a Firewall. [required]
request_body Option<::std::collections::HashMap<String, serde_json::Value>>

Return type

serde_json::Value

Authorization

token

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

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