1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
module Fog
module DNS
class PowerDNS
class Real
# Delete the zone from the server
# Reference the zone to delete with server id and zone id
# ==== Parameters
# * server<~String> - server id
# * zone<~String> - zone id
#
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * status<~Integer> - 204 when successful
#
def delete_zone(server, zone)
request(
:expects => 204,
:method => 'DELETE',
:path => "/servers/#{server}/zones/#{zone}"
)
end
end
end
end
end
|