Skip to main content

Dynect REST API wrapper

Project description

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

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
https://manage.dynect.net/help/docs/api2/rest/resources/

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

DynectDNS-0.3.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file DynectDNS-0.3.tar.gz.

File metadata

  • Download URL: DynectDNS-0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for DynectDNS-0.3.tar.gz
Algorithm Hash digest
SHA256 ae2e752eaf502bec70eadc465ceca11b8143950ea3adbdc8e14c49deee9afca5
MD5 3cf5b6278eb766fe15c539d9e8d90114
BLAKE2b-256 69d59b90785501a190a3abbfb8d0e17ce7990cd0e791ae14c09c92425de02f2d

See more details on using hashes here.

Supported by

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