require 'fastly'
api_instance = Fastly::ProductBrotliCompressionApi.newNote
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| disable_product_brotli_compression | DELETE /enabled-products/v1/brotli_compression/services/{service_id} | Disable product |
| enable_product_brotli_compression | PUT /enabled-products/v1/brotli_compression/services/{service_id} | Enable product |
| get_product_brotli_compression | GET /enabled-products/v1/brotli_compression/services/{service_id} | Get product enablement status |
| get_services_product_brotli_compression | GET /enabled-products/v1/brotli_compression/services | Get services with product enabled |
disable_product_brotli_compression(opts) # Disable productDisable the Brotli Compression product on a service.
api_instance = Fastly::ProductBrotliCompressionApi.new
opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}
begin
# Disable product
api_instance.disable_product_brotli_compression(opts)
rescue Fastly::ApiError => e
puts "Error when calling ProductBrotliCompressionApi->disable_product_brotli_compression: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
nil (empty response body)
[Back to top] [Back to API list] [Back to README]
enable_product_brotli_compression(opts): <BrotliCompressionResponseBodyEnable> # Enable productEnable the Brotli Compression product on a service.
api_instance = Fastly::ProductBrotliCompressionApi.new
opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}
begin
# Enable product
result = api_instance.enable_product_brotli_compression(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ProductBrotliCompressionApi->enable_product_brotli_compression: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
BrotliCompressionResponseBodyEnable
[Back to top] [Back to API list] [Back to README]
get_product_brotli_compression(opts): <BrotliCompressionResponseBodyEnable> # Get product enablement statusGet the enablement status of the Brotli Compression product on a service.
api_instance = Fastly::ProductBrotliCompressionApi.new
opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}
begin
# Get product enablement status
result = api_instance.get_product_brotli_compression(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ProductBrotliCompressionApi->get_product_brotli_compression: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
BrotliCompressionResponseBodyEnable
[Back to top] [Back to API list] [Back to README]
get_services_product_brotli_compression: <BrotliCompressionResponseBodyGetAllServices> # Get services with product enabledGet all the services which have the Brotli Compression product enabled.
api_instance = Fastly::ProductBrotliCompressionApi.new
begin
# Get services with product enabled
result = api_instance.get_services_product_brotli_compression
p result
rescue Fastly::ApiError => e
puts "Error when calling ProductBrotliCompressionApi->get_services_product_brotli_compression: #{e}"
endThis endpoint does not need any parameter.