Skip to main content

WWW::SwaggerClient::AutoretrieveApi

Load the API package

use WWW::SwaggerClient::Object::AutoretrieveApi;

All URIs are relative to https://api.estuary.tech

MethodHTTP requestDescription
admin_autoretrieve_init_postPOST /admin/autoretrieve/initRegister autoretrieve server
admin_autoretrieve_list_getGET /admin/autoretrieve/listList autoretrieve servers
autoretrieve_heartbeat_postPOST /autoretrieve/heartbeatMarks autoretrieve server as up

admin_autoretrieve_init_post

admin_autoretrieve_init_post(addresses => $addresses, pub_key => $pub_key)

Register autoretrieve server

This endpoint registers a new autoretrieve server

Example

use Data::Dumper;
use WWW::SwaggerClient::AutoretrieveApi;
my $api_instance = WWW::SwaggerClient::AutoretrieveApi->new(

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

my $addresses = WWW::SwaggerClient::Object::string->new(); # string | Autoretrieve's comma-separated list of addresses
my $pub_key = WWW::SwaggerClient::Object::string->new(); # string | Autoretrieve's public key

eval {
$api_instance->admin_autoretrieve_init_post(addresses => $addresses, pub_key => $pub_key);
};
if ($@) {
warn "Exception when calling AutoretrieveApi->admin_autoretrieve_init_post: $@\n";
}

Parameters

NameTypeDescriptionNotes
addressesstringAutoretrieve's comma-separated list of addresses
pub_keystringAutoretrieve's public key

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

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

admin_autoretrieve_list_get

admin_autoretrieve_list_get()

List autoretrieve servers

This endpoint lists all registered autoretrieve servers

Example

use Data::Dumper;
use WWW::SwaggerClient::AutoretrieveApi;
my $api_instance = WWW::SwaggerClient::AutoretrieveApi->new(

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


eval {
$api_instance->admin_autoretrieve_list_get();
};
if ($@) {
warn "Exception when calling AutoretrieveApi->admin_autoretrieve_list_get: $@\n";
}

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

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

autoretrieve_heartbeat_post

autoretrieve_heartbeat_post(token => $token)

Marks autoretrieve server as up

This endpoint updates the lastConnection field for autoretrieve

Example

use Data::Dumper;
use WWW::SwaggerClient::AutoretrieveApi;
my $api_instance = WWW::SwaggerClient::AutoretrieveApi->new(

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

my $token = 'token_example'; # string | Autoretrieve's auth token

eval {
$api_instance->autoretrieve_heartbeat_post(token => $token);
};
if ($@) {
warn "Exception when calling AutoretrieveApi->autoretrieve_heartbeat_post: $@\n";
}

Parameters

NameTypeDescriptionNotes
tokenstringAutoretrieve's auth token

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

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