class ScalewayDDNS::Request

Defined in:

scaleway_ddns/request.cr

Constant Summary

SCW_API_HOST = "api.scaleway.com"

Constructors

Instance Method Summary

Constructor Detail

def self.new(scw_secret_key : String) #

Instance Method Detail

def address_record_list(domain : String) : Array(Hash(Symbol, String | Int32)) #

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


def update_address_record(domain : String, ip : String, record : Hash(Symbol, String | Int32), record_type : String) #

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