All URIs are relative to https://api.fireblocks.io/v1
Method | HTTP request | Description |
---|---|---|
get_workspace_status | GET /management/workspace_status | Returns current workspace status |
GetWorkspaceStatusResponse get_workspace_status()
Returns current workspace status
Returns current workspace status
from fireblocks.models.get_workspace_status_response import GetWorkspaceStatusResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
try:
# Returns current workspace status
api_response = fireblocks.workspace_status_beta.get_workspace_status().result()
print("The response of WorkspaceStatusBetaApi->get_workspace_status:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WorkspaceStatusBetaApi->get_workspace_status: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Current workspace status | - |
404 | Workspace not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]