Skip to content

Files

Latest commit

author
github-actions
Feb 27, 2025
95d94d9 · Feb 27, 2025

History

History
169 lines (116 loc) · 5.16 KB

ProductBotManagementApi.md

File metadata and controls

169 lines (116 loc) · 5.16 KB

WebService::Fastly::ProductBotManagementApi

Load the API package

use WebService::Fastly::Object::ProductBotManagementApi;

Note

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

disable_product_bot_management

disable_product_bot_management(service_id => $service_id)

Disable product

Disable the Bot Management product on a service.

Example

use Data::Dumper;
use WebService::Fastly::ProductBotManagementApi;
my $api_instance = WebService::Fastly::ProductBotManagementApi->new(

    # Configure API key authorization: token
    api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'Fastly-Key' => 'Bearer'},
);

my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.

eval {
    $api_instance->disable_product_bot_management(service_id => $service_id);
};
if ($@) {
    warn "Exception when calling ProductBotManagementApi->disable_product_bot_management: $@\n";
}

Parameters

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

void (empty response body)

Authorization

token

HTTP request headers

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

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

enable_product_bot_management

BotManagementResponseBodyEnable enable_product_bot_management(service_id => $service_id)

Enable product

Enable the Bot Management product on a service.

Example

use Data::Dumper;
use WebService::Fastly::ProductBotManagementApi;
my $api_instance = WebService::Fastly::ProductBotManagementApi->new(

    # Configure API key authorization: token
    api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'Fastly-Key' => 'Bearer'},
);

my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.

eval {
    my $result = $api_instance->enable_product_bot_management(service_id => $service_id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductBotManagementApi->enable_product_bot_management: $@\n";
}

Parameters

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

BotManagementResponseBodyEnable

Authorization

token

HTTP request headers

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

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

get_product_bot_management

BotManagementResponseBodyEnable get_product_bot_management(service_id => $service_id)

Get product enablement status

Get the enablement status of the Bot Management product on a service.

Example

use Data::Dumper;
use WebService::Fastly::ProductBotManagementApi;
my $api_instance = WebService::Fastly::ProductBotManagementApi->new(

    # Configure API key authorization: token
    api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
    # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    #api_key_prefix => {'Fastly-Key' => 'Bearer'},
);

my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.

eval {
    my $result = $api_instance->get_product_bot_management(service_id => $service_id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductBotManagementApi->get_product_bot_management: $@\n";
}

Parameters

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

BotManagementResponseBodyEnable

Authorization

token

HTTP request headers

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

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