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 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)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
product_id | String | [required] | ||
service_id | String | Alphanumeric string identifying the service. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
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)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
product_id | String | [required] | ||
service_id | String | Alphanumeric string identifying the service. | [required] | |
set_workspace_id | Option<SetWorkspaceId> |
crate::models::EnabledProductResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
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)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
product_id | String | [required] | ||
service_id | String | Alphanumeric string identifying the service. | [required] |
crate::models::EnabledProductResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
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)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
product_id | String | [required] | ||
service_id | String | Alphanumeric string identifying the service. | [required] |
crate::models::ConfiguredProductResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
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)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
product_id | String | [required] | ||
service_id | String | Alphanumeric string identifying the service. | [required] | |
set_configuration | Option<SetConfiguration> |
crate::models::ConfiguredProductResponse
- Content-Type: application/json
- Accept: application/json