Sha256: 07da80acdb175091db1043f9629c05fe13d4dee457dffcc2e2b60af8cc6bc743
Contents?: true
Size: 1.14 KB
Versions: 39
Compression:
Stored size: 1.14 KB
Contents
module Fog module DNS class Bluebox class Real require 'fog/bluebox/parsers/dns/get_record' # Get an individual DNS record from the specified zone # # ==== Returns # * response<~Excon::Response>: # * hash<~Hash>: # * 'id'<~String> - The id of this record # * 'type'<~String> - type of DNS record to create (A, CNAME, etc) # * 'domain-id'<~Integer> - ID of the zone # * 'name'<~String> - empty? # * 'domain'<~String> - The domain name # * 'type'<~String> - The type of DNS record (e.g. A, MX, NS, etc.) # * 'content'<~String> - data for the DNS record (ie for an A record, the IP address) def get_record(zone_id, record_id) request( :expects => 200, :method => 'GET', :parser => Fog::Parsers::DNS::Bluebox::GetRecord.new, :path => "/api/domains/#{zone_id}/records/#{record_id}.xml" ) end end class Mock def get_record(record_id) Fog::Mock.not_implemented end end end end end
Version data entries
39 entries across 37 versions & 5 rubygems