Dynect-API-Python-Library

Dynect REST API wrapper
Download

Dynect-API-Python-Library Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Cole Tuininga
  • Publisher web site:
  • https://github.com/dyninc/

Dynect-API-Python-Library Tags


Dynect-API-Python-Library Description

Dynect-API-Python-Library 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. Python 3.x is not currently specifically supported.Use is fairly simple:import sysfrom dynect.DynectDNS import DynectRestrest_iface = DynectRest()# Log inarguments = { 'customer_name': 'my_cust', 'user_name': 'my_user', 'password': 'my_pass',}response = rest_iface.execute('/Session/', 'POST', arguments)if response != 'success': sys.exit("Incorrect credentials")# Perform actionresponse = rest_iface.execute('/Zone/', 'GET')zone_resources = response# Log out, to be politerest_iface.execute('/Session/', 'DELETE')Documentation on the REST resources can be found athttps://manage.dynect.net/help/docs/api2/rest/resources/Product's homepage


Dynect-API-Python-Library Related Software