use WebService::Fastly::Object::ProductObjectStorageApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
disable_product_object_storage | DELETE /enabled-products/v1/object_storage | Disable product |
enable_object_storage | PUT /enabled-products/v1/object_storage | Enable product |
get_object_storage | GET /enabled-products/v1/object_storage | Get product enablement status |
disable_product_object_storage()
Disable product
Disable the Object Storage product
use Data::Dumper;
use WebService::Fastly::ProductObjectStorageApi;
my $api_instance = WebService::Fastly::ProductObjectStorageApi->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_object_storage();
};
if ($@) {
warn "Exception when calling ProductObjectStorageApi->disable_product_object_storage: $@\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]
ObjectStorageResponseBodyEnable enable_object_storage()
Enable product
Enable the Object Storage product
use Data::Dumper;
use WebService::Fastly::ProductObjectStorageApi;
my $api_instance = WebService::Fastly::ProductObjectStorageApi->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_object_storage();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProductObjectStorageApi->enable_object_storage: $@\n";
}
This endpoint does not need any parameter.
ObjectStorageResponseBodyEnable
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ObjectStorageResponseBodyEnable get_object_storage()
Get product enablement status
Get the enablement status of the Object Storage product
use Data::Dumper;
use WebService::Fastly::ProductObjectStorageApi;
my $api_instance = WebService::Fastly::ProductObjectStorageApi->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_object_storage();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProductObjectStorageApi->get_object_storage: $@\n";
}
This endpoint does not need any parameter.
ObjectStorageResponseBodyEnable
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]