Skip to content

Latest commit

 

History

History
197 lines (136 loc) · 6.81 KB

ProductDdosProtectionApi.md

File metadata and controls

197 lines (136 loc) · 6.81 KB

Fastly\Api\ProductDdosProtectionApi

$apiInstance = new Fastly\Api\ProductDdosProtectionApi(
    // 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
disableProductDdosProtection() DELETE /enabled-products/v1/ddos_protection/services/{service_id} Disable product
enableProductDdosProtection() PUT /enabled-products/v1/ddos_protection/services/{service_id} Enable product
getProductDdosProtection() GET /enabled-products/v1/ddos_protection/services/{service_id} Get product enablement status
getProductDdosProtectionConfiguration() GET /enabled-products/v1/ddos_protection/services/{service_id}/configuration Get configuration
setProductDdosProtectionConfiguration() PATCH /enabled-products/v1/ddos_protection/services/{service_id}/configuration Update configuration

disableProductDdosProtection()

disableProductDdosProtection($options) // Disable product

Disable the DDoS Protection product on a service.

Example

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

try {
    $apiInstance->disableProductDdosProtection($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductDdosProtectionApi->disableProductDdosProtection: ', $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.

Return type

void (empty response body)

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

enableProductDdosProtection()

enableProductDdosProtection($options): \Fastly\Model\DdosProtectionResponseEnable // Enable product

Enable the DDoS Protection product on a service.

Example

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

try {
    $result = $apiInstance->enableProductDdosProtection($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductDdosProtectionApi->enableProductDdosProtection: ', $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.

Return type

\Fastly\Model\DdosProtectionResponseEnable

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

getProductDdosProtection()

getProductDdosProtection($options): \Fastly\Model\DdosProtectionResponseEnable // Get product enablement status

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

Example

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

try {
    $result = $apiInstance->getProductDdosProtection($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductDdosProtectionApi->getProductDdosProtection: ', $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.

Return type

\Fastly\Model\DdosProtectionResponseEnable

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

getProductDdosProtectionConfiguration()

getProductDdosProtectionConfiguration($options): \Fastly\Model\DdosProtectionResponseConfigure // Get configuration

Get configuration of the DDoS Protection product on a service.

Example

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

try {
    $result = $apiInstance->getProductDdosProtectionConfiguration($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductDdosProtectionApi->getProductDdosProtectionConfiguration: ', $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.

Return type

\Fastly\Model\DdosProtectionResponseConfigure

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

setProductDdosProtectionConfiguration()

setProductDdosProtectionConfiguration($options): \Fastly\Model\DdosProtectionResponseConfigure // Update configuration

Update configuration of the DDoS Protection product on a service.

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
$options['ddos_protection_request_update_configuration'] = {"mode":"log"}; // \Fastly\Model\DdosProtectionRequestUpdateConfiguration

try {
    $result = $apiInstance->setProductDdosProtectionConfiguration($options);
} catch (Exception $e) {
    echo 'Exception when calling ProductDdosProtectionApi->setProductDdosProtectionConfiguration: ', $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.
ddos_protection_request_update_configuration \Fastly\Model\DdosProtectionRequestUpdateConfiguration [optional]

Return type

\Fastly\Model\DdosProtectionResponseConfigure

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