use WebService::Fastly::Object::ObjectStorageAccessKeysApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_access_key | POST /resources/object-storage/access-keys | Create an access key |
delete_access_key | DELETE /resources/object-storage/access-keys/{access_key} | Delete an access key |
get_access_key | GET /resources/object-storage/access-keys/{access_key} | Get an access key |
list_access_keys | GET /resources/object-storage/access-keys | List access keys |
AccessKeyResponse create_access_key(access_key => $access_key)
Create an access key
Create an access key.
use Data::Dumper;
use WebService::Fastly::ObjectStorageAccessKeysApi;
my $api_instance = WebService::Fastly::ObjectStorageAccessKeysApi->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 $access_key = WebService::Fastly::Object::AccessKey->new(); # AccessKey |
eval {
my $result = $api_instance->create_access_key(access_key => $access_key);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ObjectStorageAccessKeysApi->create_access_key: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
access_key | AccessKey | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_access_key(access_key => $access_key)
Delete an access key
Delete an access key.
use Data::Dumper;
use WebService::Fastly::ObjectStorageAccessKeysApi;
my $api_instance = WebService::Fastly::ObjectStorageAccessKeysApi->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 $access_key = "access_key_example"; # string |
eval {
$api_instance->delete_access_key(access_key => $access_key);
};
if ($@) {
warn "Exception when calling ObjectStorageAccessKeysApi->delete_access_key: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
access_key | string |
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]
AccessKey get_access_key(access_key => $access_key)
Get an access key
Get an access key by its identifier.
use Data::Dumper;
use WebService::Fastly::ObjectStorageAccessKeysApi;
my $api_instance = WebService::Fastly::ObjectStorageAccessKeysApi->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 $access_key = "access_key_example"; # string |
eval {
my $result = $api_instance->get_access_key(access_key => $access_key);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ObjectStorageAccessKeysApi->get_access_key: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
access_key | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessKeyResponse list_access_keys()
List access keys
List access keys.
use Data::Dumper;
use WebService::Fastly::ObjectStorageAccessKeysApi;
my $api_instance = WebService::Fastly::ObjectStorageAccessKeysApi->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->list_access_keys();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ObjectStorageAccessKeysApi->list_access_keys: $@\n";
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]