LogsApi
LogsApi
Method
HTTP request
Description
clusters_logs_get
Example
from __future__ import print_function
import time
import ionoscloud_dbaas_mongo
from ionoscloud_dbaas_mongo.rest import ApiException
# Defining the host is optional and defaults to https://api.ionos.com/databases/mongodb
configuration = ionoscloud_dbaas_mongo.Configuration(
host = 'https://api.ionos.com/databases/mongodb',
)
# Example of configuring HTTP Basic Authorization
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
with ionoscloud_dbaas_mongo.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ionoscloud_dbaas_mongo.LogsApi(api_client)
cluster_id = 'cluster_id_example' # str | The unique ID of the cluster.
try:
# Get logs of your cluster
api_response = api_instance.clusters_logs_get(cluster_id)
print(api_response)
except ApiException as e:
print('Exception when calling LogsApi.clusters_logs_get: %s\n' % e)Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Last updated
