Skip to content

Latest commit

 

History

History
217 lines (149 loc) · 5.8 KB

ObjectStorageAccessKeysApi.md

File metadata and controls

217 lines (149 loc) · 5.8 KB

WebService::Fastly::ObjectStorageAccessKeysApi

Load the API package

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

create_access_key

AccessKeyResponse create_access_key(access_key => $access_key)

Create an access key

Create an access key.

Example

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";
}

Parameters

Name Type Description Notes
access_key AccessKey [optional]

Return type

AccessKeyResponse

Authorization

token

HTTP request headers

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

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

delete_access_key

delete_access_key(access_key => $access_key)

Delete an access key

Delete an access key.

Example

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";
}

Parameters

Name Type Description Notes
access_key string

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]

get_access_key

AccessKey get_access_key(access_key => $access_key)

Get an access key

Get an access key by its identifier.

Example

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";
}

Parameters

Name Type Description Notes
access_key string

Return type

AccessKey

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]

list_access_keys

AccessKeyResponse list_access_keys()

List access keys

List access keys.

Example

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";
}

Parameters

This endpoint does not need any parameter.

Return type

AccessKeyResponse

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]