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
- Distribution
- DistributionCreate
- DistributionMetadata
- DistributionProperties
- DistributionUpdate
- Distributions
- Error
- ErrorMessagesInner
- IpAddresses
- Links
- Metadata
- Pagination
- ResourceState
- RoutingRule
- Upstream
- UpstreamGeoRestrictions
Documentation For Authorization
Authentication schemes defined for the API:
tokenAuth
- Type: Bearer authentication (JWT)
Author
Metadata
Release files for ionoscloud-cdn 1.0.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ionoscloud_cdn-1.0.0b2.tar.gz | 32.5 kB | Without provenance | Details for ionoscloud_cdn-1.0.0b2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ionoscloud_cdn-1.0.0b2-py3-none-any.whl | Python 3 | none | any | Details for ionoscloud_cdn-1.0.0b2-py3-none-any.whl |
Total release size: 86.5 kB
Release files / ionoscloud_cdn-1.0.0b2.tar.gz
| Download URL | ionoscloud_cdn-1.0.0b2.tar.gz |
|---|---|
| Size | 32.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb187dfff0fb183a341b9039e5c942ffa7bd3f0c06ccf6c46263a97aa95edcbf
|
|
BLAKE2b-256 checksum How to use checksums |
4e5d11f53ff22d0edbf3015dd047b13e0ee1628107f51ea35f312d8e8d73ad9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / ionoscloud_cdn-1.0.0b2-py3-none-any.whl
| Download URL | ionoscloud_cdn-1.0.0b2-py3-none-any.whl |
|---|---|
| Size | 54.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce546d9cd3c8e4964dc6782e540154b67f8a821ad5f8829dca2c38f0c18d9ac1
|
|
BLAKE2b-256 checksum How to use checksums |
6465466e49f10c3d52624791e7f414bcd08b6df2ab0ab1bedffc660d487b3884
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for ionoscloud-cdn 1.0.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.