require 'fastly'
api_instance = Fastly::ProductBotManagementApi.newNote
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| disable_product_bot_management | DELETE /enabled-products/v1/bot_management/services/{service_id} | Disable product |
| enable_product_bot_management | PUT /enabled-products/v1/bot_management/services/{service_id} | Enable product |
| get_product_bot_management | GET /enabled-products/v1/bot_management/services/{service_id} | Get product enablement status |
| get_services_product_bot_management | GET /enabled-products/v1/bot_management/services | Get services with product enabled |
disable_product_bot_management(opts) # Disable productDisable the Bot Management product on a service.
api_instance = Fastly::ProductBotManagementApi.new
opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}
begin
# Disable product
api_instance.disable_product_bot_management(opts)
rescue Fastly::ApiError => e
puts "Error when calling ProductBotManagementApi->disable_product_bot_management: #{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_bot_management(opts): <BotManagementResponseBodyEnable> # Enable productEnable the Bot Management product on a service.
api_instance = Fastly::ProductBotManagementApi.new
opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}
begin
# Enable product
result = api_instance.enable_product_bot_management(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ProductBotManagementApi->enable_product_bot_management: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
BotManagementResponseBodyEnable
[Back to top] [Back to API list] [Back to README]
get_product_bot_management(opts): <BotManagementResponseBodyEnable> # Get product enablement statusGet the enablement status of the Bot Management product on a service.
api_instance = Fastly::ProductBotManagementApi.new
opts = {
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
}
begin
# Get product enablement status
result = api_instance.get_product_bot_management(opts)
p result
rescue Fastly::ApiError => e
puts "Error when calling ProductBotManagementApi->get_product_bot_management: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. |
BotManagementResponseBodyEnable
[Back to top] [Back to API list] [Back to README]
get_services_product_bot_management: <BotManagementResponseBodyGetAllServices> # Get services with product enabledGet all the services which have the Bot Management product enabled.
api_instance = Fastly::ProductBotManagementApi.new
begin
# Get services with product enabled
result = api_instance.get_services_product_bot_management
p result
rescue Fastly::ApiError => e
puts "Error when calling ProductBotManagementApi->get_services_product_bot_management: #{e}"
endThis endpoint does not need any parameter.