Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ionoscloud-cdn

This API manages CDN distributions.

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

  • API version: 1.2.0
  • Package version: 1.0.0-beta.2
  • 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_cdn

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_cdn

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import ionoscloud_cdn
from ionoscloud_cdn.rest import ApiException
from pprint import pprint
import os

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


# Enter a context with an instance of the API client
with ionoscloud_cdn.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ionoscloud_cdn.DistributionsApi(api_client)
    distribution_id = '9ba15778-16c4-543c-8775-e52acf4853f5' # str | The ID (UUID) of the Distribution.

    try:
        # Delete Distribution
        api_instance.distributions_delete(distribution_id)
    except ApiException as e:
        print("Exception when calling DistributionsApi->distributions_delete: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
DistributionsApi distributions_delete DELETE /distributions/{distributionId} Delete Distribution
DistributionsApi distributions_find_by_id GET /distributions/{distributionId} Retrieve Distribution
DistributionsApi distributions_get GET /distributions Retrieve all Distributions
DistributionsApi distributions_post POST /distributions Create Distribution
DistributionsApi distributions_put PUT /distributions/{distributionId} Ensure Distribution

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth

  • Type: Bearer authentication (JWT)

Author

Download files

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

Source Distribution

ionoscloud_cdn-1.0.0b2.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

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

ionoscloud_cdn-1.0.0b2-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

Details for the file ionoscloud_cdn-1.0.0b2.tar.gz.

File metadata

  • Download URL: ionoscloud_cdn-1.0.0b2.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ionoscloud_cdn-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 eb187dfff0fb183a341b9039e5c942ffa7bd3f0c06ccf6c46263a97aa95edcbf
MD5 c423f069b399b88485b9f3d40b11f6f3
BLAKE2b-256 4e5d11f53ff22d0edbf3015dd047b13e0ee1628107f51ea35f312d8e8d73ad9a

See more details on using hashes here.

File details

Details for the file ionoscloud_cdn-1.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for ionoscloud_cdn-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 ce546d9cd3c8e4964dc6782e540154b67f8a821ad5f8829dca2c38f0c18d9ac1
MD5 04755781a821dc6b50f83bc99a6014c7
BLAKE2b-256 6465466e49f10c3d52624791e7f414bcd08b6df2ab0ab1bedffc660d487b3884

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0b2 This release

2 files

Supported by

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