Skip to content

Latest commit

 

History

History
128 lines (90 loc) · 4.13 KB

EnabledProductsApi.md

File metadata and controls

128 lines (90 loc) · 4.13 KB

Fastly\Api\EnabledProductsApi

$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
);

Methods

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()

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.

Example

    $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;
}

Options

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.

Return type

void (empty response body)

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

enableProduct()

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.

Example

    $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;
}

Options

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.

Return type

\Fastly\Model\EnabledProductResponse

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

getEnabledProduct()

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.

Example

    $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;
}

Options

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.

Return type

\Fastly\Model\EnabledProductResponse

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