Class: Ansible::Ruby::Modules::Cs_firewall
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Cs_firewall
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb
Overview
Creates and removes firewall rules.
Instance Method Summary collapse
-
#account ⇒ Object?
Account the firewall rule is related to.
-
#cidrs ⇒ String?
List of CIDRs (full notation) to be used for firewall rule.,Since version 2.5, it is a list of CIDR.
-
#domain ⇒ Object?
Domain the firewall rule is related to.
-
#end_port ⇒ Integer?
End port for this rule.
-
#icmp_code ⇒ Object?
Error code for this icmp message.,Considered if C(protocol=icmp).
-
#icmp_type ⇒ Object?
Type of the icmp message being sent.,Considered if C(protocol=icmp).
-
#ip_address ⇒ String?
Public IP address the ingress rule is assigned to.,Required if C(type=ingress).
-
#network ⇒ String?
Network the egress rule is related to.,Required if C(type=egress).
-
#poll_async ⇒ Boolean?
Poll async jobs until job has finished.
-
#project ⇒ Object?
Name of the project the firewall rule is related to.
-
#protocol ⇒ :tcp, ...
Protocol of the firewall rule.,C(all) is only available if C(type=egress).
-
#start_port ⇒ Integer?
Start port for this rule.,Considered if C(protocol=tcp) or C(protocol=udp).
-
#state ⇒ :present, ...
State of the firewall rule.
-
#tags ⇒ Object?
List of tags.
-
#type ⇒ :ingress, ...
Type of the firewall rule.
-
#zone ⇒ Object?
Name of the zone in which the virtual machine is in.,If not set, default zone is used.
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
#account ⇒ Object?
Returns Account the firewall rule is related to.
53 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 53 attribute :account |
#cidrs ⇒ String?
Returns List of CIDRs (full notation) to be used for firewall rule.,Since version 2.5, it is a list of CIDR.
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 32 attribute :cidrs |
#domain ⇒ Object?
Returns Domain the firewall rule is related to.
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 50 attribute :domain |
#end_port ⇒ Integer?
Returns End port for this rule. Considered if C(protocol=tcp) or C(protocol=udp).,If not specified, equal C(start_port).
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 40 attribute :end_port |
#icmp_code ⇒ Object?
Returns Error code for this icmp message.,Considered if C(protocol=icmp).
47 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 47 attribute :icmp_code |
#icmp_type ⇒ Object?
Returns Type of the icmp message being sent.,Considered if C(protocol=icmp).
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 44 attribute :icmp_type |
#ip_address ⇒ String?
Returns Public IP address the ingress rule is assigned to.,Required if C(type=ingress).
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 12 attribute :ip_address |
#network ⇒ String?
Returns Network the egress rule is related to.,Required if C(type=egress).
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 16 attribute :network |
#poll_async ⇒ Boolean?
Returns Poll async jobs until job has finished.
62 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 62 attribute :poll_async |
#project ⇒ Object?
Returns Name of the project the firewall rule is related to.
56 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 56 attribute :project |
#protocol ⇒ :tcp, ...
Returns Protocol of the firewall rule.,C(all) is only available if C(type=egress).
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 28 attribute :protocol |
#start_port ⇒ Integer?
Returns Start port for this rule.,Considered if C(protocol=tcp) or C(protocol=udp).
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 36 attribute :start_port |
#state ⇒ :present, ...
Returns State of the firewall rule.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 20 attribute :state |
#tags ⇒ Object?
Returns List of tags. Tags are a list of dictionaries having keys C(key) and C(value).,To delete all tags, set a empty list e.g. C(tags: []).
66 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 66 attribute :tags |
#type ⇒ :ingress, ...
Returns Type of the firewall rule.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 24 attribute :type |
#zone ⇒ Object?
Returns Name of the zone in which the virtual machine is in.,If not set, default zone is used.
59 |
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_firewall.rb', line 59 attribute :zone |