Skip to main content

estuary_client.AutoretrieveApi

All URIs are relative to //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

str admin_autoretrieve_init_post(addresses, pub_key)

Register autoretrieve server

This endpoint registers a new autoretrieve server

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.AutoretrieveApi(estuary_client.ApiClient(configuration))
addresses = 'addresses_example' # str |
pub_key = 'pub_key_example' # str |

try:
# Register autoretrieve server
api_response = api_instance.admin_autoretrieve_init_post(addresses, pub_key)
pprint(api_response)
except ApiException as e:
print("Exception when calling AutoretrieveApi->admin_autoretrieve_init_post: %s\n" % e)

Parameters

NameTypeDescriptionNotes
addressesstr
pub_keystr

Return type

str

Authorization

bearerAuth

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

admin_autoretrieve_list_get

str admin_autoretrieve_list_get()

List autoretrieve servers

This endpoint lists all registered autoretrieve servers

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.AutoretrieveApi(estuary_client.ApiClient(configuration))

try:
# List autoretrieve servers
api_response = api_instance.admin_autoretrieve_list_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AutoretrieveApi->admin_autoretrieve_list_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

str

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

str autoretrieve_heartbeat_post(token)

Marks autoretrieve server as up

This endpoint updates the lastConnection field for autoretrieve

Example

from __future__ import print_function
import time
import estuary_client
from estuary_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.AutoretrieveApi(estuary_client.ApiClient(configuration))
token = 'token_example' # str | Autoretrieve's auth token

try:
# Marks autoretrieve server as up
api_response = api_instance.autoretrieve_heartbeat_post(token)
pprint(api_response)
except ApiException as e:
print("Exception when calling AutoretrieveApi->autoretrieve_heartbeat_post: %s\n" % e)

Parameters

NameTypeDescriptionNotes
tokenstrAutoretrieve's auth token

Return type

str

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]