ionoscloud-dns
Cloud DNS service helps IONOS Cloud customers to automate DNS Zone and Record management.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.18.0
- Package version: 2.0.0
- Generator version: 7.13.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://docs.ionos.com/support/general-information/contact-information
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_dns
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_dns
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import ionoscloud_dns
from ionoscloud_dns.rest import ApiException
from pprint import pprint
import os
# Defining the host is optional and defaults to https://dns.de-fra.ionos.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_dns.Configuration(
host = "https://dns.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 API key authorization: tokenAuth
configuration.api_key['tokenAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['tokenAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with ionoscloud_dns.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ionoscloud_dns.DNSSECApi(api_client)
zone_id = 'zone_id_example' # str | The ID (UUID) of the DNS zone.
try:
# Delete a DNSSEC key
api_response = api_instance.zones_keys_delete(zone_id)
print("The response of DNSSECApi->zones_keys_delete:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DNSSECApi->zones_keys_delete: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://dns.de-fra.ionos.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DNSSECApi | zones_keys_delete | DELETE /zones/{zoneId}/keys | Delete a DNSSEC key |
| DNSSECApi | zones_keys_get | GET /zones/{zoneId}/keys | Retrieve a DNSSEC key |
| DNSSECApi | zones_keys_post | POST /zones/{zoneId}/keys | Create a DNSSEC key |
| QuotaApi | quota_get | GET /quota | Retrieve resources quota |
| RecordsApi | records_get | GET /records | Retrieve all records from primary zones |
| RecordsApi | secondaryzones_records_get | GET /secondaryzones/{secondaryZoneId}/records | Retrieve records for a secondary zone |
| RecordsApi | zones_records_delete | DELETE /zones/{zoneId}/records/{recordId} | Delete a record |
| RecordsApi | zones_records_find_by_id | GET /zones/{zoneId}/records/{recordId} | Retrieve a record |
| RecordsApi | zones_records_get | GET /zones/{zoneId}/records | Retrieve records |
| RecordsApi | zones_records_post | POST /zones/{zoneId}/records | Create a record |
| RecordsApi | zones_records_put | PUT /zones/{zoneId}/records/{recordId} | Update a record |
| ReverseRecordsApi | reverserecords_delete | DELETE /reverserecords/{reverserecordId} | Delete a reverse DNS record |
| ReverseRecordsApi | reverserecords_find_by_id | GET /reverserecords/{reverserecordId} | Retrieve a reverse DNS record |
| ReverseRecordsApi | reverserecords_get | GET /reverserecords | Retrieves existing reverse DNS records |
| ReverseRecordsApi | reverserecords_post | POST /reverserecords | Create a reverse DNS record |
| ReverseRecordsApi | reverserecords_put | PUT /reverserecords/{reverserecordId} | Update a reverse DNS record |
| SecondaryZonesApi | secondaryzones_axfr_get | GET /secondaryzones/{secondaryZoneId}/axfr | Get status of zone transfer |
| SecondaryZonesApi | secondaryzones_axfr_put | PUT /secondaryzones/{secondaryZoneId}/axfr | Start zone transfer |
| SecondaryZonesApi | secondaryzones_delete | DELETE /secondaryzones/{secondaryZoneId} | Delete a secondary zone |
| SecondaryZonesApi | secondaryzones_find_by_id | GET /secondaryzones/{secondaryZoneId} | Retrieve a secondary zone |
| SecondaryZonesApi | secondaryzones_get | GET /secondaryzones | Retrieve secondary zones |
| SecondaryZonesApi | secondaryzones_post | POST /secondaryzones | Create a secondary zone |
| SecondaryZonesApi | secondaryzones_put | PUT /secondaryzones/{secondaryZoneId} | Update a secondary zone |
| ZoneFilesApi | zones_zonefile_get | GET /zones/{zoneId}/zonefile | Retrieve a zone file |
| ZoneFilesApi | zones_zonefile_put | PUT /zones/{zoneId}/zonefile | Updates a zone with a file |
| ZonesApi | zones_delete | DELETE /zones/{zoneId} | Delete a zone |
| ZonesApi | zones_find_by_id | GET /zones/{zoneId} | Retrieve a zone |
| ZonesApi | zones_get | GET /zones | Retrieve zones |
| ZonesApi | zones_post | POST /zones | Create a zone |
| ZonesApi | zones_put | PUT /zones/{zoneId} | Update a zone |
Documentation For Models
- Algorithm
- CommonZone
- CommonZoneRead
- CommonZoneReadList
- DnssecKey
- DnssecKeyCreate
- DnssecKeyParameters
- DnssecKeyReadCreation
- DnssecKeyReadList
- DnssecKeyReadListMetadata
- DnssecKeyReadListProperties
- DnssecKeyReadListPropertiesKeyParameters
- DnssecKeyReadListPropertiesNsecParameters
- Error
- ErrorMessagesInner
- KeyData
- KeyParameters
- KskBits
- Links
- Metadata
- MetadataForSecondaryZoneRecords
- MetadataWithStateFqdnZoneId
- MetadataWithStateNameservers
- NsecMode
- NsecParameters
- ProvisioningState
- Quota
- QuotaDetail
- Record
- RecordCreate
- RecordEnsure
- RecordRead
- RecordReadList
- RecordType
- ReverseRecord
- ReverseRecordCreate
- ReverseRecordEnsure
- ReverseRecordRead
- ReverseRecordsReadList
- SecondaryZone
- SecondaryZoneCreate
- SecondaryZoneEnsure
- SecondaryZoneRead
- SecondaryZoneReadList
- SecondaryZoneRecordRead
- SecondaryZoneRecordReadList
- SecondaryZoneRecordReadListMetadata
- Zone
- ZoneCreate
- ZoneEnsure
- ZoneRead
- ZoneReadList
- ZoneTransferPrimaryIpStatus
- ZoneTransferPrimaryIpsStatus
- ZskBits
Documentation For Authorization
Authentication schemes defined for the API:
tokenAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author
Metadata
Release files for ionoscloud-dns 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ionoscloud_dns-2.0.0.tar.gz | 51.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ionoscloud_dns-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 181.2 kB
Release files / ionoscloud_dns-2.0.0.tar.gz
| Download URL | ionoscloud_dns-2.0.0.tar.gz |
|---|---|
| Size | 51.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
389ae8e37206300fa1ca16441064d9ac63e6e0f59cc60dc81f1f1161dcbd7599
|
|
BLAKE2b-256 checksum How to use checksums |
6919d446695b1121cc91981ec48a4cb84c4d039582fbb49a9a5267bc5cb5fff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / ionoscloud_dns-2.0.0-py3-none-any.whl
| Download URL | ionoscloud_dns-2.0.0-py3-none-any.whl |
|---|---|
| Size | 129.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc04e6903a518c5fbcde2f16a8f662dfb62482309d0572b5462357440b8b72b4
|
|
BLAKE2b-256 checksum How to use checksums |
b0a3e83b4f13b9f5f0221eb2fa0342cbd092002f47c1d38a904d5625786d5c1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|