Class: Ansible::Ruby::Modules::Vultr_firewall_rule
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vultr_firewall_rule
- 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
-
#cidr ⇒ String?
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).
-
#end_port ⇒ Integer?
End port for the firewall rule.,Only considered if C(protocol) is tcp or udp and I(state=present).
-
#group ⇒ String
Name of the firewall group.
-
#ip_version ⇒ :v4, ...
IP address version.
-
#protocol ⇒ :icmp, ...
Protocol of the firewall rule.
-
#start_port ⇒ Integer?
Start port for the firewall rule.,Required if C(protocol) is tcp or udp and I(state=present).
-
#state ⇒ :present, ...
State of the firewall rule.
Methods inherited from Base
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
#cidr ⇒ String?
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).
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 24 attribute :cidr |
#end_port ⇒ Integer?
Returns 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 |
#group ⇒ String
Returns 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.
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.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 20 attribute :protocol |
#start_port ⇒ Integer?
Returns 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.
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/vultr/vr_firewall_rule.rb', line 36 attribute :state |