$apiInstance = new Fastly\Api\EnabledProductsApi(
// 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
);
Method | Fastly API endpoint | Description |
---|---|---|
disableProduct() | DELETE /enabled-products/{product_id}/services/{service_id} | Disable a product |
enableProduct() | PUT /enabled-products/{product_id}/services/{service_id} | Enable a product |
getEnabledProduct() | GET /enabled-products/{product_id}/services/{service_id} | Get enabled product |
disableProduct($options) // Disable a product
Disable a product on a service. Supported product IDs: brotli_compression
,domain_inspector
,fanout
,image_optimizer
,origin_inspector
, and websockets
.
$options['product_id'] = origin_inspector; // string
$options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
try {
$apiInstance->disableProduct($options);
} catch (Exception $e) {
echo 'Exception when calling EnabledProductsApi->disableProduct: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
product_id | string | ||
service_id | string | Alphanumeric string identifying the service. |
void (empty response body)
[Back to top] [Back to API list] [Back to README]
enableProduct($options): \Fastly\Model\EnabledProductResponse // Enable a product
Enable a product on a service. Supported product IDs: brotli_compression
,domain_inspector
,fanout
,image_optimizer
,origin_inspector
, and websockets
.
$options['product_id'] = origin_inspector; // string
$options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
try {
$result = $apiInstance->enableProduct($options);
} catch (Exception $e) {
echo 'Exception when calling EnabledProductsApi->enableProduct: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
product_id | string | ||
service_id | string | Alphanumeric string identifying the service. |
\Fastly\Model\EnabledProductResponse
[Back to top] [Back to API list] [Back to README]
getEnabledProduct($options): \Fastly\Model\EnabledProductResponse // Get enabled product
Get enabled product on a service. Supported product IDs: brotli_compression
,domain_inspector
,fanout
,image_optimizer
,origin_inspector
, and websockets
.
$options['product_id'] = origin_inspector; // string
$options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
try {
$result = $apiInstance->getEnabledProduct($options);
} catch (Exception $e) {
echo 'Exception when calling EnabledProductsApi->getEnabledProduct: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
product_id | string | ||
service_id | string | Alphanumeric string identifying the service. |