diff options
author | tv <tv@xso> | 2011-08-22 15:21:13 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-08-22 15:21:13 +0200 |
commit | a002b665583bad738e47bef6f93f87d6ab74bfda (patch) | |
tree | 387b90fa8e431c1881b1f03011e0b61eb64f59bc /ovh | |
parent | c0788cf40e57f8ef0f12821239373914e243f879 (diff) |
ovh soapi zoneEntry{Add,Del}: initial commit
Diffstat (limited to 'ovh')
-rwxr-xr-x | ovh/soapi/zoneEntryAdd | 25 | ||||
-rwxr-xr-x | ovh/soapi/zoneEntryDel | 25 |
2 files changed, 50 insertions, 0 deletions
diff --git a/ovh/soapi/zoneEntryAdd b/ovh/soapi/zoneEntryAdd new file mode 100755 index 00000000..68a0b8e3 --- /dev/null +++ b/ovh/soapi/zoneEntryAdd @@ -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" + +#zoneEntryAdd +soap.zoneEntryAdd(session, domain, subdomain, fieldtype, target) +print "zoneEntryAdd successfull" + +#logout +soap.logout(session) +print "logout successfull" 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" |