Skip to main content

estuary_client.AdminApi

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

MethodHTTP requestDescription
admin_miners_getGET /admin/miners/Get all miners
admin_peering_peers_deleteDELETE /admin/peering/peersRemove peers on Peering Service
admin_peering_peers_getGET /admin/peering/peersList all Peering peers
admin_peering_peers_postPOST /admin/peering/peersAdd peers on Peering Service
admin_peering_start_postPOST /admin/peering/startStart Peering
admin_peering_status_getGET /admin/peering/statusCheck Peering Status
admin_peering_stop_postPOST /admin/peering/stopStop Peering
admin_system_config_getGET /admin/system/configGet systems(estuary/shuttle) config
admin_users_getGET /admin/usersGet all users

admin_miners_get

ApiMinerResp admin_miners_get()

Get all miners

This endpoint returns all miners. Note: value may be cached

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.AdminApi(estuary_client.ApiClient(configuration))

try:
# Get all miners
api_response = api_instance.admin_miners_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_miners_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ApiMinerResp

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_peering_peers_delete

str admin_peering_peers_delete(body)

Remove peers on Peering Service

This endpoint can be used to remove a Peer from the Peering Service

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.AdminApi(estuary_client.ApiClient(configuration))
body = ['body_example'] # list[str] | Peer ids

try:
# Remove peers on Peering Service
api_response = api_instance.admin_peering_peers_delete(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_peering_peers_delete: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodylist[str]Peer ids

Return type

str

Authorization

bearerAuth

HTTP request headers

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

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

admin_peering_peers_get

str admin_peering_peers_get()

List all Peering peers

This endpoint can be used to list all peers on Peering Service

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.AdminApi(estuary_client.ApiClient(configuration))

try:
# List all Peering peers
api_response = api_instance.admin_peering_peers_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_peering_peers_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]

admin_peering_peers_post

str admin_peering_peers_post(body)

Add peers on Peering Service

This endpoint can be used to add a Peer from the Peering Service

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.AdminApi(estuary_client.ApiClient(configuration))
body = [estuary_client.PeeringPeeringPeer()] # list[PeeringPeeringPeer] | Peering Peer array

try:
# Add peers on Peering Service
api_response = api_instance.admin_peering_peers_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_peering_peers_post: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodylist[PeeringPeeringPeer]Peering Peer array

Return type

str

Authorization

bearerAuth

HTTP request headers

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

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

admin_peering_start_post

str admin_peering_start_post()

Start Peering

This endpoint can be used to start the Peering Service

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.AdminApi(estuary_client.ApiClient(configuration))

try:
# Start Peering
api_response = api_instance.admin_peering_start_post()
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_peering_start_post: %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]

admin_peering_status_get

str admin_peering_status_get()

Check Peering Status

This endpoint can be used to check the Peering status

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.AdminApi(estuary_client.ApiClient(configuration))

try:
# Check Peering Status
api_response = api_instance.admin_peering_status_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_peering_status_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]

admin_peering_stop_post

str admin_peering_stop_post()

Stop Peering

This endpoint can be used to stop the Peering Service

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.AdminApi(estuary_client.ApiClient(configuration))

try:
# Stop Peering
api_response = api_instance.admin_peering_stop_post()
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_peering_stop_post: %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]

admin_system_config_get

str admin_system_config_get()

Get systems(estuary/shuttle) config

This endpoint is used to get system configs.

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.AdminApi(estuary_client.ApiClient(configuration))

try:
# Get systems(estuary/shuttle) config
api_response = api_instance.admin_system_config_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_system_config_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]

admin_users_get

str admin_users_get()

Get all users

This endpoint is used to get all users.

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.AdminApi(estuary_client.ApiClient(configuration))

try:
# Get all users
api_response = api_instance.admin_users_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_users_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]