class

ScalewayDDNS::Request

Inherits Reference < Object

Constants

ADDRESS_RECORD_TYPES = ["A", "AAAA"] of ::String

Address record types handled by the updater.

DEFAULT_TTL = 60

Time to live used when the API does not report one.

RECORD_PAGE_SIZE = 100

Number of records asked per page, the maximum allowed by the Scaleway API.

SCW_API_HOST = "api.scaleway.com"

Constructors

new(scw_secret_key : String)
Source

Instance methods

address_record_list(domain : String, types : Array(String) = ADDRESS_RECORD_TYPES) : Array(AddressRecord)

Get a list of A and AAAA records from the Scaleway API for a given domain.

Source
update_address_record(domain : String, ip : String, record : AddressRecord, record_type : String) : JSON::Any

Update an address record (A or AAAA) in the Scaleway API for a given domain.

Source