Module: Lunanode::APIActions::DNS

Included in:
Lunanode::APIActions
Defined in:
lib/lunanode/api_actions/dns.rb,
lib/lunanode/api_actions/default/dns.rb

Instance Method Summary collapse

Instance Method Details

#dns_dyn_add(name:, ip:) ⇒ Object


42
43
44
# File 'lib/lunanode/api_actions/default/dns.rb', line 42

def dns_dyn_add(name:, ip:)
  action(:dns, :"dyn-add", name: name, ip: ip)
end

#dns_dyn_listObject


38
39
40
# File 'lib/lunanode/api_actions/default/dns.rb', line 38

def dns_dyn_list
  action(:dns, :"dyn-list")
end

#dns_dyn_remove(dyn_id:) ⇒ Object


50
51
52
# File 'lib/lunanode/api_actions/default/dns.rb', line 50

def dns_dyn_remove(dyn_id:)
  action(:dns, :"dyn-remove", dyn_id: dyn_id)
end

#dns_dyn_update(dyn_id:, name:, ip:) ⇒ Object


46
47
48
# File 'lib/lunanode/api_actions/default/dns.rb', line 46

def dns_dyn_update(dyn_id:, name:, ip:)
  action(:dns, :"dyn-update", dyn_id: dyn_id, name: name, ip: ip)
end

#dns_listObject


6
7
8
# File 'lib/lunanode/api_actions/default/dns.rb', line 6

def dns_list
  action(:dns, :list)
end

#dns_record_add(zone_id:, name:, data:, ttl:, type:) ⇒ Object


30
31
32
# File 'lib/lunanode/api_actions/default/dns.rb', line 30

def dns_record_add(zone_id:, name:, data:, ttl:, type:)
  action(:dns, :"record-add", zone_id: zone_id, name: name, data: data, ttl: ttl, type: type)
end

#dns_record_list(zone_id:) ⇒ Object


26
27
28
# File 'lib/lunanode/api_actions/default/dns.rb', line 26

def dns_record_list(zone_id:)
  action(:dns, :"record-list", zone_id: zone_id)
end

#dns_record_remove(record_id:) ⇒ Object


34
35
36
# File 'lib/lunanode/api_actions/default/dns.rb', line 34

def dns_record_remove(record_id:)
  action(:dns, :"record-remove", record_id: record_id)
end

#dns_set(ip:, hostname:) ⇒ Object


10
11
12
# File 'lib/lunanode/api_actions/default/dns.rb', line 10

def dns_set(ip:, hostname:)
  action(:dns, :set, ip: ip, hostname: hostname)
end

#dns_zone_add(origin:, ttl: nil) ⇒ Object


18
19
20
# File 'lib/lunanode/api_actions/default/dns.rb', line 18

def dns_zone_add(origin:, ttl: nil)
  action(:dns, :"zone-add", origin: origin, ttl: ttl)
end

#dns_zone_listObject


14
15
16
# File 'lib/lunanode/api_actions/default/dns.rb', line 14

def dns_zone_list
  action(:dns, :"zone-list")
end

#dns_zone_remove(zone_id:) ⇒ Object


22
23
24
# File 'lib/lunanode/api_actions/default/dns.rb', line 22

def dns_zone_remove(zone_id:)
  action(:dns, :"zone-remove", zone_id: zone_id)
end