Skip to content

Latest commit

 

History

History
196 lines (122 loc) · 5.72 KB

EnabledProductsApi.md

File metadata and controls

196 lines (122 loc) · 5.72 KB

EnabledProductsApi

Note

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

Method HTTP request Description
disable_product DELETE /enabled-products/v1/{product_id}/services/{service_id} Disable a product
enable_product PUT /enabled-products/v1/{product_id}/services/{service_id} Enable a product
get_enabled_product GET /enabled-products/v1/{product_id}/services/{service_id} Get enabled product
get_product_configuration GET /enabled-products/v1/{product_id}/services/{service_id}/configuration Get configuration for a product
set_product_configuration PATCH /enabled-products/v1/{product_id}/services/{service_id}/configuration Update configuration for a product

disable_product

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

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, websockets, bot_management, and ngwaf.

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]
set_workspace_id Option<SetWorkspaceId>

Return type

crate::models::EnabledProductResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • 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, websockets, bot_management, and ngwaf.

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]

get_product_configuration

Get configuration for an enabled product on a service. Supported product IDs: ngwaf.

let cfg = &Configuration::default();
let params = GetProductConfigurationParams {
    // parameters
};
get_product_configuration(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::ConfiguredProductResponse

Authorization

token

HTTP request headers

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

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

set_product_configuration

Update configuration for an enabled product on a service. Supported product IDs: ngwaf.

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

Parameters

Name Type Description Required Notes
product_id String [required]
service_id String Alphanumeric string identifying the service. [required]
set_configuration Option<SetConfiguration>

Return type

crate::models::ConfiguredProductResponse

Authorization

token

HTTP request headers

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

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