Class: Ansible::Ruby::Modules::Vultr_firewall_rule

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb,
lib/ansible/ruby/modules/generated/cloud/vultr/vultr_firewall_rule.rb

Overview

Create and remove firewall rules.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#cidrString?

Returns Network in CIDR format,The CIDR format must match with the C(ip_version) value.,Required if C(state=present).,Defaulted to 0.0.0.0/0 or ::/0 depending on C(ip_version).

Returns:

  • (String, nil)

    Network in CIDR format,The CIDR format must match with the C(ip_version) value.,Required if C(state=present).,Defaulted to 0.0.0.0/0 or ::/0 depending on C(ip_version).



24
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 24

attribute :cidr

#end_portInteger?

Returns End port for the firewall rule.,Only considered if C(protocol) is tcp or udp and I(state=present).

Returns:

  • (Integer, nil)

    End port for the firewall rule.,Only considered if C(protocol) is tcp or udp and I(state=present).



32
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 32

attribute :end_port

#groupString

Returns Name of the firewall group.

Returns:

  • (String)

    Name of the firewall group.



12
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 12

attribute :group

#ip_version:v4, ...

Returns IP address version.

Returns:

  • (:v4, :v6, nil)

    IP address version



16
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 16

attribute :ip_version

#protocol:icmp, ...

Returns Protocol of the firewall rule.

Returns:

  • (:icmp, :tcp, :udp, :gre, nil)

    Protocol of the firewall rule.



20
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 20

attribute :protocol

#start_portInteger?

Returns Start port for the firewall rule.,Required if C(protocol) is tcp or udp and I(state=present).

Returns:

  • (Integer, nil)

    Start port for the firewall rule.,Required if C(protocol) is tcp or udp and I(state=present).



28
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 28

attribute :start_port

#state:present, ...

Returns State of the firewall rule.

Returns:

  • (:present, :absent, nil)

    State of the firewall rule.



36
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 36

attribute :state