Sha256: c3459034118694565c97623ff3468e6fdc40365fd988e4473b052d33997e12d5
Contents?: true
Size: 1.24 KB
Versions: 7
Compression:
Stored size: 1.24 KB
Contents
module Fog module DNSimple class DNS class Real # Create a new host in the specified zone # # ==== Parameters # * domain<~String> # * name<~String> # * type<~String> # * content<~String> # * options<~Hash> - optional # * priority<~Integer> # * ttl<~Integer> # ==== Returns # * response<~Excon::Response>: # * body<~Hash> # * name<~String> # * ttl<~Integer> # * created_at<~String> # * special_type<~String> # * updated_at<~String> # * domain_id<~Integer> # * id<~Integer> # * content<~String> # * record_type<~String> # * prio<~Integer> def create_record(domain, name, type, content, options = {}) body = { "record" => { "name" => name, "record_type" => type, "content" => content } } body["record"].merge!(options) request( :body => body.to_json, :expects => 201, :method => 'POST', :path => "/domains/#{domain}/records" ) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems