Skip to main content

IONOS Cloud - API Gateway

Project description

ionoscloud-api-gateway

API Gateway is an application that acts as a "front door" for backend services and APIs, handling client requests and routing them to the appropriate backend.

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

  • API version: 0.0.1
  • Package version: 1.0.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_api_gateway

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_api_gateway

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import ionoscloud_api_gateway
from ionoscloud_api_gateway.rest import ApiException
from pprint import pprint
import os

# Defining the host is optional and defaults to https://apigateway.de-txl.ionos.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_api_gateway.Configuration(
    host = "https://apigateway.de-txl.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_api_gateway.Configuration(
    token = os.environ["IONOS_TOKEN"]
)


# Enter a context with an instance of the API client
with ionoscloud_api_gateway.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ionoscloud_api_gateway.APIGatewaysApi(api_client)
    apigateway_id = '0620c174-dd3c-5eb4-87c8-e2b516553a00' # str | The ID (UUID) of the Gateway.

    try:
        # Delete Gateway
        api_instance.apigateways_delete(apigateway_id)
    except ApiException as e:
        print("Exception when calling APIGatewaysApi->apigateways_delete: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://apigateway.de-txl.ionos.com

Class Method HTTP request Description
APIGatewaysApi apigateways_delete DELETE /gateways/{apigatewayId} Delete Gateway
APIGatewaysApi apigateways_find_by_id GET /gateways/{apigatewayId} Retrieve Gateway
APIGatewaysApi apigateways_get GET /gateways Retrieve all Apigateways
APIGatewaysApi apigateways_post POST /gateways Create Gateway
APIGatewaysApi apigateways_put PUT /gateways/{apigatewayId} Ensure Gateway
RoutesApi apigateways_routes_delete DELETE /gateways/{apigatewayId}/routes/{routeId} Delete Route
RoutesApi apigateways_routes_find_by_id GET /gateways/{apigatewayId}/routes/{routeId} Retrieve Route
RoutesApi apigateways_routes_get GET /gateways/{apigatewayId}/routes Retrieve all Routes
RoutesApi apigateways_routes_post POST /gateways/{apigatewayId}/routes Create Route
RoutesApi apigateways_routes_put PUT /gateways/{apigatewayId}/routes/{routeId} Ensure Route

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_api_gateway-1.0.1.tar.gz (35.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_api_gateway-1.0.1-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

Details for the file ionoscloud_api_gateway-1.0.1.tar.gz.

File metadata

  • Download URL: ionoscloud_api_gateway-1.0.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ionoscloud_api_gateway-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dfd6cc405e132a61295f3e75379a04dcb5398575f40613852ee9b0033c01e067
MD5 3aca4b22318683cb650445116a0989f2
BLAKE2b-256 1cc6ad4cc7f1a8373cccbeedfc63e19d89fe62fb2344f8c8456dbbcb21a3d37f

See more details on using hashes here.

File details

Details for the file ionoscloud_api_gateway-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ionoscloud_api_gateway-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2ba375078d973846e15682ec7600c7d2e9fb07f27514cb94f1f8ae87e47e52f
MD5 6df1ff93842f81fd4f17665b9a359e60
BLAKE2b-256 17180c100d2644ab24805a86c9f402e3fd49717dba43ead1ba2851f882c66078

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