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

#dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil) ⇒ Object


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

def dns2_record_add(zone_id:, name:, data:, ttl:, type:, policy: nil, weight: nil, region: nil, regiongroup: nil, country: nil, continent: nil, global: nil, latitude: nil, longitude: nil, aux: nil, monitor_id: nil, orig_record_id: nil)
  action(:dns, :"record-add", zone_id: zone_id, name: name, data: data, ttl: ttl, type: type)
end

#dns2_record_list(zone_id:) ⇒ Object


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

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

#dns2_record_remove(zone_id:, record_id:) ⇒ Object


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

def dns2_record_remove(zone_id:, record_id:)
  action(:dns2, :"record-remove", zone_id: zone_id, record_id: record_id)
end

#dns2_zone_add(name:, ttl:) ⇒ Object


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

def dns2_zone_add(name:, ttl:)
  action(:dns2, :"zone-add", name: name, ttl: ttl)
end

#dns2_zone_listObject


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

def dns2_zone_list
  action(:dns2, :"zone-list")
end

#dns2_zone_remove(zone_id:) ⇒ Object


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

def dns2_zone_remove(zone_id:)
  action(:dns2, :"zone-remove", zone_id: zone_id)
end

#dns_dyn_add(name:, ip:) ⇒ Object


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

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

#dns_dyn_listObject


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

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

#dns_dyn_remove(dyn_id:) ⇒ Object


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

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

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


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

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