use WebService::Fastly::Object::ProductAiAcceleratorApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
disable_product_ai_accelerator | DELETE /enabled-products/v1/ai_accelerator | Disable product |
enable_ai_accelerator | PUT /enabled-products/v1/ai_accelerator | Enable product |
get_ai_accelerator | GET /enabled-products/v1/ai_accelerator | Get product enablement status |
disable_product_ai_accelerator()
Disable product
Disable the AI Accelerator product
use Data::Dumper;
use WebService::Fastly::ProductAiAcceleratorApi;
my $api_instance = WebService::Fastly::ProductAiAcceleratorApi->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'},
);
eval {
$api_instance->disable_product_ai_accelerator();
};
if ($@) {
warn "Exception when calling ProductAiAcceleratorApi->disable_product_ai_accelerator: $@\n";
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AiAcceleratorResponseBodyEnable enable_ai_accelerator()
Enable product
Enable the AI Accelerator product
use Data::Dumper;
use WebService::Fastly::ProductAiAcceleratorApi;
my $api_instance = WebService::Fastly::ProductAiAcceleratorApi->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'},
);
eval {
my $result = $api_instance->enable_ai_accelerator();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProductAiAcceleratorApi->enable_ai_accelerator: $@\n";
}
This endpoint does not need any parameter.
AiAcceleratorResponseBodyEnable
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AiAcceleratorResponseBodyEnable get_ai_accelerator()
Get product enablement status
Get the enablement status of the AI Accelerator product
use Data::Dumper;
use WebService::Fastly::ProductAiAcceleratorApi;
my $api_instance = WebService::Fastly::ProductAiAcceleratorApi->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'},
);
eval {
my $result = $api_instance->get_ai_accelerator();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProductAiAcceleratorApi->get_ai_accelerator: $@\n";
}
This endpoint does not need any parameter.
AiAcceleratorResponseBodyEnable
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]