Skip to content

Latest commit

 

History

History
125 lines (86 loc) · 3.66 KB

ProductFanoutApi.md

File metadata and controls

125 lines (86 loc) · 3.66 KB

Fastly\Api\ProductFanoutApi

$apiInstance = new Fastly\Api\ProductFanoutApi(
    // 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
disableProductFanout() DELETE /enabled-products/v1/fanout/services/{service_id} Disable product
enableProductFanout() PUT /enabled-products/v1/fanout/services/{service_id} Enable product
getProductFanout() GET /enabled-products/v1/fanout/services/{service_id} Get product enablement status

disableProductFanout()

disableProductFanout($options) // Disable product

Disable the Fanout product on a service.

Example

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

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

enableProductFanout()

enableProductFanout($options): \Fastly\Model\FanoutResponseBodyEnable // Enable product

Enable the Fanout product on a service.

Example

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

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

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

getProductFanout()

getProductFanout($options): \Fastly\Model\FanoutResponseBodyEnable // Get product enablement status

Get the enablement status of the Fanout product on a service.

Example

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

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

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