diff options
Diffstat (limited to 'ovh/soapi')
-rwxr-xr-x | ovh/soapi/domainCapabilities | 3 | ||||
-rwxr-xr-x | ovh/soapi/domainInfo | 3 | ||||
-rwxr-xr-x | ovh/soapi/zoneEntryList | 3 | ||||
-rwxr-xr-x | ovh/soapi/zoneExport | 3 | ||||
-rwxr-xr-x | ovh/soapi/zoneImport | 3 |
5 files changed, 10 insertions, 5 deletions
diff --git a/ovh/soapi/domainCapabilities b/ovh/soapi/domainCapabilities index dad8311d..a438e0b8 100755 --- a/ovh/soapi/domainCapabilities +++ b/ovh/soapi/domainCapabilities @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.domainCapabilities(session, 'krebsco.de') +result = soap.domainCapabilities(session, domain) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) diff --git a/ovh/soapi/domainInfo b/ovh/soapi/domainInfo index e32262e1..35459d06 100755 --- a/ovh/soapi/domainInfo +++ b/ovh/soapi/domainInfo @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.domainInfo(session, 'krebsco.de') +result = soap.domainInfo(session, domain) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) diff --git a/ovh/soapi/zoneEntryList b/ovh/soapi/zoneEntryList index af37c112..63d0f1c6 100755 --- a/ovh/soapi/zoneEntryList +++ b/ovh/soapi/zoneEntryList @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.zoneEntryList(session, 'krebsco.de') +result = soap.zoneEntryList(session, domain) print dumps(result, sort_keys=True, indent=2, default=default) soap.logout(session) diff --git a/ovh/soapi/zoneExport b/ovh/soapi/zoneExport index 7659d647..7747ded4 100755 --- a/ovh/soapi/zoneExport +++ b/ovh/soapi/zoneExport @@ -19,10 +19,11 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') session = soap.login(username, password, 'de', 0) -result = soap.zoneExport(session, 'krebsco.de') +result = soap.zoneExport(session, domain) print result soap.logout(session) diff --git a/ovh/soapi/zoneImport b/ovh/soapi/zoneImport index 141fb4a2..42d46caf 100755 --- a/ovh/soapi/zoneImport +++ b/ovh/soapi/zoneImport @@ -21,12 +21,13 @@ soap = WSDL.Proxy(wsdl) username = environ['KREBS_OVH_USER'] password = environ['KREBS_OVH_PASS'] +domain = environ.get('KREBS_OVH_DOMAIN','krebsco.de') zone = join(stdin.readlines(),'') session = soap.login(username, password, 'en', 0) -result = soap.zoneImport(session, 'krebsco.de', zone) +result = soap.zoneImport(session, domain, zone) print result soap.logout(session) |