Class Fog::DNS::Slicehost::Real
In: lib/fog/dns/slicehost.rb
lib/fog/dns/requests/slicehost/create_record.rb
lib/fog/dns/requests/slicehost/get_records.rb
lib/fog/dns/requests/slicehost/delete_zone.rb
lib/fog/dns/requests/slicehost/get_record.rb
lib/fog/dns/requests/slicehost/get_zones.rb
lib/fog/dns/requests/slicehost/delete_record.rb
lib/fog/dns/requests/slicehost/get_zone.rb
lib/fog/dns/requests/slicehost/create_zone.rb
Parent: Object

Methods

Public Class methods

Public Instance methods

Create a new record in a DNS zone - or update an existing one

Parameters

  • record_type<~String> - type of DNS record to create (A, CNAME, etc)
  • zone_id<~Integer> - ID of the zone to update
  • name<~String> - host name this DNS record is for
  • data<~String> - data for the DNS record (ie for an A record, the IP address)
  • options<~Hash> - extra parameters that are not mandatory
    • ttl<~Integer> - time to live in seconds
    • active<~String> - whether this record is active or not (‘Y’ or ‘N’)
    • aux<~String> - extra data required by the record

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘name’<~String> - as above
      • ‘id’<~Integer> - Id of zone/domain - used in future API calls for this zone
      • ‘ttl’<~Integer> - as above
      • ‘data’<~String> - as above
      • ‘active’<~String> - as above
      • ‘aux’<~String> - as above

Create a new zone for Slicehost‘s DNS servers to serve/host

Parameters

  • origin<~String> - domain name to host (ie example.com)
  • options<~Hash> - optional paramaters
    • ttl<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
    • active<~String> - whether zone is active in Slicehost DNS server - ‘Y’ or ‘N‘

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘origin’<~String> - as above
      • ‘id’<~Integer> - Id of zone/domain - used in future API calls
      • ‘ttl’<~Integer> - as above
      • ‘active’<~String> - as above

Delete a record from the specified DNS zone

Parameters

  • record_id<~Integer> - Id of DNS record to delete

Returns

  • response<~Excon::Response>: - HTTP status code will be result

Delete a zone from Slicehost‘s DNS

Parameters

  • zone_id<~Integer> - Id of zone to delete

Returns

  • response<~Excon::Response>: - HTTP status code will be result

Get an individual DNS record from the specified zone

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘record_type’<~String> - type of DNS record to create (A, CNAME, etc)
      • ‘zone_id’<~Integer> - ID of the zone to update
      • ‘name’<~String> - host name this DNS record is for
      • ‘data’<~String> - data for the DNS record (ie for an A record, the IP address)
      • ‘ttl’<~Integer> - time to live in seconds
      • ‘active’<~String> - whether this record is active or not (‘Y’ or ‘N’)
      • ‘aux’<~String> - extra data required by the record

Get all the DNS records across all the DNS zones for this account

Returns

  • response<~Excon::Response>:
    • body<~Array>:
      • ‘addresses’<~Array> - Ip addresses for the slice
      • ‘backup-id’<~Integer> - Id of backup slice was booted from
      • ‘flavor_id’<~Integer> - Id of flavor slice was booted from
      • ‘id’<~Integer> - Id of the slice
      • ‘image-id’<~Integer> - Id of image slice was booted from
      • ‘name’<~String> - Name of the slice
      • ‘progress’<~Integer> - Progress of current action, in percentage
      • ‘status’<~String> - Current status of the slice

Get details of a DNS zone

Parameters

  • zone_id<~Integer> - Id of zone to lookup

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘origin’<~String> - domain name to host (ie example.com)
      • ‘id’<~Integer> - Id of the zone
      • ‘ttl’<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
      • ‘active’<~String> - whether zone is active in Slicehost DNS server - ‘Y’ or ‘N‘

Get list of all DNS zones hosted on Slicehost (for this account)

Returns

  • response<~Excon::Response>:
    • body<~Hash>:
      • ‘zones’<~Array>
        • ‘origin’<~String> - domain name to host (ie example.com)
        • ‘id’<~Integer> - Id of the zone
        • ‘ttl’<~Integer> - TimeToLive (ttl) for the domain, in seconds (> 60)
        • ‘active’<~String> - whether zone is active in Slicehost DNS server - ‘Y’ or ‘N‘

[Validate]