Class Fog::DNS::DNSimple::Real
In: lib/fog/dns/dnsimple.rb
lib/fog/dns/requests/dnsimple/create_record.rb
lib/fog/dns/requests/dnsimple/get_record.rb
lib/fog/dns/requests/dnsimple/delete_record.rb
lib/fog/dns/requests/dnsimple/get_domain.rb
lib/fog/dns/requests/dnsimple/update_record.rb
lib/fog/dns/requests/dnsimple/create_domain.rb
lib/fog/dns/requests/dnsimple/list_records.rb
lib/fog/dns/requests/dnsimple/list_domains.rb
lib/fog/dns/requests/dnsimple/delete_domain.rb
Parent: Object

Methods

Public Class methods

Public Instance methods

Create a single domain in DNSimple in your account.

Parameters

  • name<~String> - domain name to host (ie example.com)

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘name’<~String>

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>

Delete the given domain from your account. You may use either the domain ID or the domain name.

Please note that for domains which are registered with DNSimple this will not delete the domain from the registry.

Parameters

  • name<~String> - domain name or numeric ID

Delete the record with the given ID for the given domain.

Parameters

  • domain<~String>
  • record_id<~String>

Get the details for a specific domain in your account. You may pass either the domain numeric ID or the domain name itself.

Parameters

  • id<~String> - domain name or numeric ID

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘domain’<~Hash>
        • ‘name’<~String>
        • ‘expires_at’<~String>
        • ‘created_at’<~String>
        • ‘registration_status’<~String>
        • ‘updated_at’<~String>
        • ‘registrant_id’<~Integer>
        • ‘id’<~Integer>
        • ‘user_id’<~Integer>
        • ‘name_server_status’<~String>

Gets record from given domain.

Parameters

  • domain<~String>
  • record_id<~String>

Returns

  • response<~Excon::Response>:
    • record<~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>

Get the details for a specific domain in your account. You may pass either the domain numeric ID or the domain name itself.

Parameters

  • id<~String> - domain name or numeric ID

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘domains’<~Array>
        • ‘name’<~String>
        • ‘expires_at’<~String>
        • ‘created_at’<~String>
        • ‘registration_status’<~String>
        • ‘updated_at’<~String>
        • ‘registrant_id’<~Integer>
        • ‘id’<~Integer>
        • ‘user_id’<~Integer>
        • ‘name_server_status’<~String>

Get the list of records for the specific domain.

Parameters

  • domain<~String>

Returns

  • response<~Excon::Response>:
    • records<Array~>
      • 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>

Update the given record for the given domain.

Parameters

  • domain<~String>
  • record_id<~String>
  • options<~Hash> - optional
    • type<~String>
    • content<~String>
    • priority<~Integer>
    • ttl<~Integer>

Returns

  • response<~Excon::Response>:
    • record<~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>

[Validate]