Skip to main content

IONOS Logging Service REST API

Project description

ionoscloud-logging

The Logging Service offers a centralized platform to collect and store logs from various systems and applications. It includes tools to search, filter, visualize, and create alerts based on your log data. This API provides programmatic control over logging pipelines, enabling you to create new pipelines or modify existing ones. It mirrors the functionality of the DCD visual tool, ensuring a consistent experience regardless of your chosen interface.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Package version: 2.0.0
  • Generator version: 7.13.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/ionos-cloud/sdk-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/ionos-cloud/sdk-python.git)

Then import the package:

import ionoscloud_logging

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ionoscloud_logging

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import ionoscloud_logging
from ionoscloud_logging.rest import ApiException
from pprint import pprint
import os

# Defining the host is optional and defaults to https://logging.de-fra.ionos.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_logging.Configuration(
    host = "https://logging.de-fra.ionos.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): tokenAuth
configuration = ionoscloud_logging.Configuration(
    token = os.environ["IONOS_TOKEN"]
)


# Enter a context with an instance of the API client
with ionoscloud_logging.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ionoscloud_logging.CentralApi(api_client)
    central_id = '40740a56-ee77-5bff-8abc-2dda26b3144f' # str | The ID (UUID) of the CentralLogging.

    try:
        # Retrieve CentralLogging
        api_response = api_instance.central_find_by_id(central_id)
        print("The response of CentralApi->central_find_by_id:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling CentralApi->central_find_by_id: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://logging.de-fra.ionos.com

Class Method HTTP request Description
CentralApi central_find_by_id GET /central/{centralId} Retrieve CentralLogging
CentralApi central_get GET /central Retrieve all CentralLogging
CentralApi central_put PUT /central/{centralId} Ensure CentralLogging
KeyApi pipelines_key_post POST /pipelines/{pipelineId}/key Create Key
PipelinesApi pipelines_delete DELETE /pipelines/{pipelineId} Delete Pipeline
PipelinesApi pipelines_find_by_id GET /pipelines/{pipelineId} Retrieve Pipeline
PipelinesApi pipelines_get GET /pipelines Retrieve all Pipelines
PipelinesApi pipelines_patch PATCH /pipelines/{pipelineId} Updates Pipeline
PipelinesApi pipelines_post POST /pipelines Create Pipeline

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth

  • Type: Bearer authentication (JWT)

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ionoscloud_logging-2.0.0.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ionoscloud_logging-2.0.0-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

Details for the file ionoscloud_logging-2.0.0.tar.gz.

File metadata

  • Download URL: ionoscloud_logging-2.0.0.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for ionoscloud_logging-2.0.0.tar.gz
Algorithm Hash digest
SHA256 67e665e4fb9d5732d55e67beb45ba323cd918e570fbdc4573d6ad68aeafb1b2e
MD5 645f531a2ccb80a8a1f714f04bd06a34
BLAKE2b-256 bff90ed77d2e54705ccecd564c94a6a364ebadf9886dc15b43eaf89e242c0552

See more details on using hashes here.

File details

Details for the file ionoscloud_logging-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ionoscloud_logging-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c522af5789ad414d84fe3170caea47212697f82466c5fd698e3cf6f1d36c897
MD5 13e4a5175170a28d5deb8d1b0eaa3e8f
BLAKE2b-256 af43bc8055cef787684bfe4cc941f9a80f8f47e9487f3198fe3d94c37c1d755b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page