summaryrefslogtreecommitdiffstats
path: root/ovh/soapi/zoneEntryDel
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-22 15:21:13 +0200
committertv <tv@xso>2011-08-22 15:21:13 +0200
commiteabf3eb5f15a57d560e74b94e0c0921377af0ea9 (patch)
tree05c07f05728ea7fe9a48ee5525beccfa73639367 /ovh/soapi/zoneEntryDel
parent1d241356396c4e7ec0fa957021108cf9144b1c89 (diff)
ovh soapi zoneEntry{Add,Del}: initial commit
Diffstat (limited to 'ovh/soapi/zoneEntryDel')
-rwxr-xr-xovh/soapi/zoneEntryDel25
1 files changed, 25 insertions, 0 deletions
diff --git a/ovh/soapi/zoneEntryDel b/ovh/soapi/zoneEntryDel
new file mode 100755
index 00000000..d6f19932
--- /dev/null
+++ b/ovh/soapi/zoneEntryDel
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+
+from os import environ
+from SOAPpy import WSDL
+
+soap = WSDL.Proxy('https://www.ovh.com/soapi/soapi-re-1.24.wsdl')
+
+username = environ['KREBS_OVH_USER']
+password = environ['KREBS_OVH_PASS']
+domain = argv[2]
+subdomain = argv[3]
+fieldtype = argv[4]
+target = argv[5]
+
+#login
+session = soap.login(username, password, 'de', 0)
+print "login successfull"
+
+#zoneEntryDel
+soap.zoneEntryDel(session, domain, subdomain, fieldtype, target)
+print "zoneEntryDel successfull"
+
+#logout
+soap.logout(session)
+print "logout successfull"