#!/usr/bin/python3
import pprint
import xmlrpc.client
import sys
pp = pprint.PrettyPrinter(indent=4)
api = xmlrpc.client.ServerProxy('https://rpc.gandi.net/xmlrpc/')
apikey = ''
# http://doc.rpc.gandi.net/domain/reference.html#domain.zone.version.set
print("*****************************************************")
print("Set the new version as active")
records = api.domain.zone.version.set(apikey, 2059031, 2)
pp.pprint(records)
input("Press Enter to continue...")
print("*****************************************************")
sys.exit(0)
Comments are closed, but trackbacks and pingbacks are open.