Skip to content

Latest commit

 

History

History
85 lines (56 loc) · 2.6 KB

AuditLogsApi.md

File metadata and controls

85 lines (56 loc) · 2.6 KB

fireblocks.AuditLogsApi

All URIs are relative to https://api.fireblocks.io/v1

Method HTTP request Description
get_audit_logs GET /management/audit_logs Get audit logs

get_audit_logs

GetAuditLogsResponse get_audit_logs(time_period=time_period, cursor=cursor)

Get audit logs

Get all audits

Example

from fireblocks.models.get_audit_logs_response import GetAuditLogsResponse
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:
    time_period = 'time_period_example' # str | The last time period to fetch audit logs (optional)
    cursor = 'cursor_example' # str | The next id to start fetch audit logs from (optional)

    try:
        # Get audit logs
        api_response = fireblocks.audit_logs.get_audit_logs(time_period=time_period, cursor=cursor).result()
        print("The response of AuditLogsApi->get_audit_logs:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AuditLogsApi->get_audit_logs: %s\n" % e)

Parameters

Name Type Description Notes
time_period str The last time period to fetch audit logs [optional]
cursor str The next id to start fetch audit logs from [optional]

Return type

GetAuditLogsResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Audit logs from requested time period * X-Request-ID -
0 Error Response * X-Request-ID -

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