class OceanKit::Resource::DomainRecord
- OceanKit::Resource::DomainRecord
- OceanKit::Resource::Base
- Reference
- Object
Overview
Domain record resources are used to set or retrieve information about the individual DNS records configured for a domain. This allows you to build and manage DNS zone files by adding and modifying individual records for a domain.
There is also an additional field called id that is auto-assigned for each record and used as a unique identifier for requests. Each record contains all of these attribute types. For record types that do not utilize all fields, a value of null will be set for that record.
Defined in:
ocean_kit/resources/domain_record.crInstance Method Summary
-
#all(domain_name)
To get a listing of all records configured for a domain, send a GET request to /v2/domains/$DOMAIN_NAME/records
- #create(domain, name, ip)
- #delete(name)
- #domain_records
- #find(name)
Constructor methods inherited from class OceanKit::Resource::Base
new(headers : HTTP::Headers | Nil)
new
Instance methods inherited from module OceanKit::Client::Connection
destroy(path, options = nil)
destroy,
get(path, options = nil)
get,
post(path, options)
post,
put(path, options)
put,
request(http_method, path, options)
request
Instance Method Detail
def all(domain_name)
#
To get a listing of all records configured for a domain, send a GET request to /v2/domains/$DOMAIN_NAME/records