Sha256: caa3c32db07e16c00dfff641794b3256fdecc67145a1a620bef5853fd4ba9232

Contents?: true

Size: 1.28 KB

Versions: 29

Compression:

Stored size: 1.28 KB

Contents

module Fog
  module DNS
    class DNSMadeEasy
      class Real

        # Modifies a secondary entry with the specified name. Returns errors if name is not valid or conflicts with another domain.
        #
        # ==== Parameters
        # * secondary_name<~String> - secondary name
        # * ip_addresses<~Array> - List of secondary ip addresses
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * name<~String> Secondary name.
        #     * ip<~Array> List of strings, IP addresses for your master nameserver associated with this secondary entry. e.g. ["10.10.10.10", "10.10.10.11"]
        #     * gtdLocation<~String> Global Traffic Director location. Values: DEFAULT, US_EAST, US_WEST, EUROPE
        #   * status<~Integer> - 201 - secondary entry successfully created or modified, 400 - secondary entry name or IP addresses not valid, see errors in response content
        def update_secondary(secondary_name, ip_addresses)

          body = {
            "ip" => [*ip_addresses]
          }

          request(
            :expects  => 201,
            :method   => 'PUT',
            :path     => "/V1.2/secondary/#{secondary_name}",
            :body     => MultiJson.encode(body)
          )
        end

      end
    end
  end
end

Version data entries

29 entries across 29 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
michiels-fog-1.3.1 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog-1.3.1 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog-1.3.0 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog-1.2.0 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
ktheory-fog-1.1.2 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog-1.1.2 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog_tractical-1.1.4 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog_tractical-1.1.3 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog-1.1.1 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
fog-1.1.0 lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb