Method: Fog::DNS::Rage4::Real#create_reverse_domain_4

Defined in:
lib/fog/rage4/requests/dns/create_reverse_domain_4.rb

#create_reverse_domain_4(name, subnet, options = {}) ⇒ Object

Create a reverse domain for an ipv4 address .

Parameters

  • name<~String> - expects an ipv5 address

  • subnet<~Integer> - subnet ie: 9 for /9, range is /8 to /30

Returns

  • response<~Excon::Response>:

    • body<~Hash>:

      * 'status'<~Boolean>
      * 'id'<~Integer>
      * 'error'<~String>
      


16
17
18
19
20
21
22
23
24
# File 'lib/fog/rage4/requests/dns/create_reverse_domain_4.rb', line 16

def create_reverse_domain_4(name, subnet, options = {})
  email = options[:email] || @rage4_email
  request(
          :expects  => 200,
          :method   => 'GET',
          :path     => "/rapi/createreversedomain4/?name=#{name}&email=#{email}" +
            "&subnet=#{subnet}"
  )
end