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-beta.1
  • 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.0b1.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.0b1-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ionoscloud_logging-2.0.0b1.tar.gz
Algorithm Hash digest
SHA256 b4d6ab386b9b8f8308d9baccb050b76a1e7925af01ef3e590fd44e40a110a2ca
MD5 eb2d778e932b8de39d50ca8611411948
BLAKE2b-256 6623c2221100eb3187ab190b517ed8bcbcd0d088d3d84d6da4347827c54bc8d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ionoscloud_logging-2.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 050b51da96356ec9c4f13dedd8450f82c6d9216e49d49d49f8627718dd1c7eb4
MD5 26b6489318330c5211d51c8727dd3da9
BLAKE2b-256 336e771ac8fb39fdc99f6c5a6267b036731ecbd758d6e73b24da3f408c0d955b

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