Skip to main content

Wrapper around the IONOS DNS, Domains & SSL API.

Project description

banner

Wrapper around the IONOS DNS, Domains & SSL API

Installation

Install using pip

pip install pyonos

Clone the repository

git clone https://github.com/aaronlyy/pyonos

Quickstart

IONOS exposes 3 different API's.

  • Dns
  • Domains
  • Ssl

Every API has its corresponding & same name class that can be imported from pyonos. Every class needs to be authenticated using a prefix and a secret.

from pyonos import Dns, Domains, Ssl

Similarly, every API endpoint has its own corresponding method. Methods always return a tuple containing two items:

  • HTTP Status Code
  • JSON Response (if not available: None)

pyonos.Dns

IONOS DNS Documentation

.get_zones() : Get all available zones.

from pyonos import Dns
from pprint import pprint

dns = Dns("prefix", "secret")
result = dns.get_zones()

pprint(result)

pyonos.Domains (WORK IN PROGRESS)

pyonos.Ssl (WORK IN PROGRESS)

Currently supported methods/endpoints

Method names are a combination of the http method used and their category.

  • Dns (Official API Docs)
    • Zones
      • get_zones: Returns list of customer zones.
      • get_zone: Returns a customer zone.
      • patch_zone: Replaces all records of the same name and type with the ones provided.
      • put_zone: Replaces all records in the zone with the ones provided.
    • Records
      • post_records: Creates records for a customer zone.
      • get_record: Returns the record from the customer zone with the mentioned id.
      • delete_record: Delete a record from the customer zone.
      • put_record: Update a record from the customer zone.

About

Made with ♥ by aaronlyy

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

pyonos-0.1.0.tar.gz (16.4 kB view hashes)

Uploaded Source

Built Distribution

pyonos-0.1.0-py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page