Method: Fog::DNS::Rage4::Real#create_domain_vanity
- Defined in:
- lib/fog/rage4/requests/dns/create_domain_vanity.rb
#create_domain_vanity(name, nsname, options = {}) ⇒ Object
Create a domain with a vanity name server.
Parameters
-
name<~String> - domain name
-
nsname<~String> - vanity ns domain name
-
nsprefix<~String> - prefix for the domain name, defaults to ‘ns’
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
* 'status'<~Boolean> * 'id'<~Integer> * 'error'<~String>
-
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/fog/rage4/requests/dns/create_domain_vanity.rb', line 17 def create_domain_vanity(name, nsname, = {}) email = [:email] || @rage4_email nsprefix = [:nsprefix] || 'ns' request( :expects => 200, :method => 'GET', :path => "/rapi/createregulardomainext/?name=#{name}&email=#{email}" + "&nsname=#{nsname}&nsprefix=#{nsprefix}" ) end |