Skip to content

Latest commit

 

History

History
135 lines (96 loc) · 4.51 KB

LegacyWafOwaspApi.md

File metadata and controls

135 lines (96 loc) · 4.51 KB

Fastly\Api\LegacyWafOwaspApi

$apiInstance = new Fastly\Api\LegacyWafOwaspApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

Methods

Note

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

Method HTTP request Description
createOwaspSettings() POST /service/{service_id}/wafs/{firewall_id}/owasp Create an OWASP settings object
getOwaspSettings() GET /service/{service_id}/wafs/{firewall_id}/owasp Get the OWASP settings object
updateOwaspSettings() PATCH /service/{service_id}/wafs/{firewall_id}/owasp Update the OWASP settings object

createOwaspSettings()

createOwaspSettings($options): object // Create an OWASP settings object

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

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
$options['firewall_id'] = 'firewall_id_example'; // string | Alphanumeric string identifying a Firewall.
$options['request_body'] = {"data":{"type":"owasp"}}; // array<string,object>

try {
    $result = $apiInstance->createOwaspSettings($options);
} catch (Exception $e) {
    echo 'Exception when calling LegacyWafOwaspApi->createOwaspSettings: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
service_id string Alphanumeric string identifying the service.
firewall_id string Alphanumeric string identifying a Firewall.
request_body array<string,object> [optional]

Return type

object

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

getOwaspSettings()

getOwaspSettings($options): object // Get the OWASP settings object

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

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
$options['firewall_id'] = 'firewall_id_example'; // string | Alphanumeric string identifying a Firewall.

try {
    $result = $apiInstance->getOwaspSettings($options);
} catch (Exception $e) {
    echo 'Exception when calling LegacyWafOwaspApi->getOwaspSettings: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
service_id string Alphanumeric string identifying the service.
firewall_id string Alphanumeric string identifying a Firewall.

Return type

object

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

updateOwaspSettings()

updateOwaspSettings($options): object // Update the OWASP settings object

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

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
$options['firewall_id'] = 'firewall_id_example'; // string | Alphanumeric string identifying a Firewall.
$options['request_body'] = {"data":{"id":"0W4guUGZzb2W9Euo4m0oR","type":"owasp","attributes":{"inbound_anomaly_score_threshold":42}}}; // array<string,object>

try {
    $result = $apiInstance->updateOwaspSettings($options);
} catch (Exception $e) {
    echo 'Exception when calling LegacyWafOwaspApi->updateOwaspSettings: ', $e->getMessage(), PHP_EOL;
}

Options

Note: the input parameter is an associative array with the keys listed below.

Name Type Description Notes
service_id string Alphanumeric string identifying the service.
firewall_id string Alphanumeric string identifying a Firewall.
request_body array<string,object> [optional]

Return type

object

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