$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
);
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($options) // Disable product
Disable the DDoS Protection product on a service.
$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;
}
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. |
void (empty response body)
[Back to top] [Back to API list] [Back to README]
enableProductDdosProtection($options): \Fastly\Model\DdosProtectionResponseEnable // Enable product
Enable the DDoS Protection product on a service.
$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;
}
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. |
\Fastly\Model\DdosProtectionResponseEnable
[Back to top] [Back to API list] [Back to README]
getProductDdosProtection($options): \Fastly\Model\DdosProtectionResponseEnable // Get product enablement status
Get the enablement status of the DDoS Protection product on a service.
$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;
}
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. |
\Fastly\Model\DdosProtectionResponseEnable
[Back to top] [Back to API list] [Back to README]
getProductDdosProtectionConfiguration($options): \Fastly\Model\DdosProtectionResponseConfigure // Get configuration
Get configuration of the DDoS Protection product on a service.
$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;
}
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. |
\Fastly\Model\DdosProtectionResponseConfigure
[Back to top] [Back to API list] [Back to README]
setProductDdosProtectionConfiguration($options): \Fastly\Model\DdosProtectionResponseConfigure // Update configuration
Update configuration of the DDoS Protection product on a service.
$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;
}
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] |