Module: OvhSoapi::Domains::Methods
- Included in:
- OvhSoapi::Domains, OvhSoapi::Domains
- Defined in:
- lib/ovh_soapi/domains.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
Instance Method Summary collapse
-
#domain_check ⇒ Object
Check domain availability.
-
#domain_dns_install(hosting, minimized) ⇒ Object
install zona DNS.
-
#domain_dns_list ⇒ Object
Retrieve the list of nameservers for a domain.
-
#domain_dns_reset(hosting, minimized) ⇒ Object
reset zona DNS.
-
#domain_dns_update(dns_ip) ⇒ Object
Set DNS for a domain.
-
#domain_info ⇒ Object
Get all informations about a domain name.
-
#ort_domain_add(subdomain, target, type, overwrite) ⇒ Object
Add an domain ORT.
-
#set_domain(domain) ⇒ Object
Set object domain.
-
#zone_entry_add(subdomain, fieldtype, target, overwrite) ⇒ Object
Add a dns zone entry.
-
#zone_entry_del(subdomain, fieldtype, target) ⇒ Object
Delete a dns zone entry.
-
#zone_entry_list ⇒ Object
Retrieve dns zone entries list.
-
#zone_entry_modify(subdomain, fieldtype, target, newTarget) ⇒ Object
Modify a dns zone entry.
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
4 5 6 |
# File 'lib/ovh_soapi/domains.rb', line 4 def domain @domain end |
Instance Method Details
#domain_check ⇒ Object
Check domain availability.
34 35 36 |
# File 'lib/ovh_soapi/domains.rb', line 34 def domain_check RpcDriver.soapi.domainCheck(Session.session, self.domain) end |
#domain_dns_install(hosting, minimized) ⇒ Object
install zona DNS
68 69 70 |
# File 'lib/ovh_soapi/domains.rb', line 68 def domain_dns_install(hosting,minimized) RpcDriver.soapi.dnsInstall(Session.session, self.domain,hosting,minimized) end |
#domain_dns_list ⇒ Object
Retrieve the list of nameservers for a domain.
39 40 41 |
# File 'lib/ovh_soapi/domains.rb', line 39 def domain_dns_list RpcDriver.soapi.domainDnsList(Session.session, self.domain) end |
#domain_dns_reset(hosting, minimized) ⇒ Object
reset zona DNS
63 64 65 |
# File 'lib/ovh_soapi/domains.rb', line 63 def domain_dns_reset(hosting,minimized) RpcDriver.soapi.dnsReset(Session.session, self.domain,hosting,minimized) end |
#domain_dns_update(dns_ip) ⇒ Object
Set DNS for a domain.
44 45 46 47 48 49 50 |
# File 'lib/ovh_soapi/domains.rb', line 44 def domain_dns_update(dns_ip) RpcDriver.soapi.domainDnsUpdate(Session.session, self.domain, dns_ip[:dns1], dns_ip[:ip1], dns_ip[:dns2], dns_ip[:ip2], dns_ip[:dns3], dns_ip[:ip3], dns_ip[:dns3], dns_ip[:ip3], dns_ip[:dns5], dns_ip[:ip5] ) end |
#domain_info ⇒ Object
Get all informations about a domain name
58 59 60 |
# File 'lib/ovh_soapi/domains.rb', line 58 def domain_info RpcDriver.soapi.domainInfo(Session.session, self.domain) end |
#ort_domain_add(subdomain, target, type, overwrite) ⇒ Object
Add an domain ORT
53 54 55 |
# File 'lib/ovh_soapi/domains.rb', line 53 def ort_domain_add(subdomain,target,type,overwrite) RpcDriver.soapi.ortDomainAdd(Session.session, self.domain,subdomain,target,type,overwrite) end |
#set_domain(domain) ⇒ Object
Set object domain.
7 8 9 |
# File 'lib/ovh_soapi/domains.rb', line 7 def set_domain(domain) self.domain = domain end |
#zone_entry_add(subdomain, fieldtype, target, overwrite) ⇒ Object
Add a dns zone entry.
13 14 15 |
# File 'lib/ovh_soapi/domains.rb', line 13 def zone_entry_add(subdomain, fieldtype, target, overwrite) RpcDriver.soapi.zoneEntryAdd(Session.session, self.domain, subdomain, fieldtype, target, overwrite) end |
#zone_entry_del(subdomain, fieldtype, target) ⇒ Object
Delete a dns zone entry.
18 19 20 |
# File 'lib/ovh_soapi/domains.rb', line 18 def zone_entry_del(subdomain, fieldtype, target) RpcDriver.soapi.zoneEntryDel(Session.session, self.domain, subdomain, fieldtype, target) end |
#zone_entry_list ⇒ Object
Retrieve dns zone entries list.
23 24 25 |
# File 'lib/ovh_soapi/domains.rb', line 23 def zone_entry_list RpcDriver.soapi.zoneEntryList(Session.session, self.domain) end |
#zone_entry_modify(subdomain, fieldtype, target, newTarget) ⇒ Object
Modify a dns zone entry.
28 29 30 |
# File 'lib/ovh_soapi/domains.rb', line 28 def zone_entry_modify(subdomain, fieldtype, target, newTarget) RpcDriver.soapi.zoneEntryModify(Session.session, self.domain, subdomain, fieldtype, target, newTarget) end |