Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Dynect REST API wrapper

Project description

This is a simple Python wrapper for interacting with the Dynect Managed DNS

As it makes use of a JSON interface, one must either have the simplejson
module installed, or have Python 2.6/2.7 which have a JSON library that comes
with the language.

Use is fairly simple:

import sys
from dynect.DynectDNS import DynectRest

rest_iface = DynectRest()

# Log in
arguments = {
'customer_name': 'my_cust',
'user_name': 'my_user',
'password': 'my_pass',
response = rest_iface.execute('/Session/', 'POST', arguments)

if response['status'] != 'success':
sys.exit("Incorrect credentials")

# Perform action
response = rest_iface.execute('/Zone/', 'GET')
zone_resources = response['data']

# Log out, to be polite
rest_iface.execute('/Session/', 'DELETE')

Documentation on the REST resources can be found at

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
DynectDNS-0.3.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page