Skip to content

Latest commit

 

History

History
120 lines (74 loc) · 3.31 KB

EnabledProductsApi.md

File metadata and controls

120 lines (74 loc) · 3.31 KB

EnabledProductsApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
disable_product DELETE /enabled-products/{product_id}/services/{service_id} Disable a product
enable_product PUT /enabled-products/{product_id}/services/{service_id} Enable a product
get_enabled_product GET /enabled-products/{product_id}/services/{service_id} Get enabled product

disable_product

Disable a product on a service. Supported product IDs: brotli_compression,domain_inspector,fanout,image_optimizer,origin_inspector, and websockets.

let cfg = &Configuration::default();
let params = DisableProductParams {
    // parameters
};
disable_product(cfg, params)

Parameters

Name Type Description Required Notes
product_id String [required]
service_id String Alphanumeric string identifying the service. [required]

Return type

(empty response body)

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

enable_product

Enable a product on a service. Supported product IDs: brotli_compression,domain_inspector,fanout,image_optimizer,origin_inspector, and websockets.

let cfg = &Configuration::default();
let params = EnableProductParams {
    // parameters
};
enable_product(cfg, params)

Parameters

Name Type Description Required Notes
product_id String [required]
service_id String Alphanumeric string identifying the service. [required]

Return type

crate::models::EnabledProductResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

get_enabled_product

Get enabled product on a service. Supported product IDs: brotli_compression,domain_inspector,fanout,image_optimizer,origin_inspector, and websockets.

let cfg = &Configuration::default();
let params = GetEnabledProductParams {
    // parameters
};
get_enabled_product(cfg, params)

Parameters

Name Type Description Required Notes
product_id String [required]
service_id String Alphanumeric string identifying the service. [required]

Return type

crate::models::EnabledProductResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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