Class: Ansible::Ruby::Modules::Cs_firewall

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb

Overview

Creates and removes 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, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

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

Instance Method Details

#accountObject?

Returns Account the firewall rule is related to.

Returns:

  • (Object, nil)

    Account the firewall rule is related to.



52
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 52

attribute :account

#cidrString?

Returns CIDR (full notation) to be used for firewall rule.

Returns:

  • (String, nil)

    CIDR (full notation) to be used for firewall rule.



31
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 31

attribute :cidr

#domainObject?

Returns Domain the firewall rule is related to.

Returns:

  • (Object, nil)

    Domain the firewall rule is related to.



49
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 49

attribute :domain

#end_portInteger?

Returns End port for this rule. Considered if C(protocol=tcp) or C(protocol=udp). If not specified, equal C(start_port).

Returns:

  • (Integer, nil)

    End port for this rule. Considered if C(protocol=tcp) or C(protocol=udp). If not specified, equal C(start_port).



39
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 39

attribute :end_port

#icmp_codeObject?

Returns Error code for this icmp message. Considered if C(protocol=icmp).

Returns:

  • (Object, nil)

    Error code for this icmp message. Considered if C(protocol=icmp).



46
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 46

attribute :icmp_code

#icmp_typeObject?

Returns Type of the icmp message being sent. Considered if C(protocol=icmp).

Returns:

  • (Object, nil)

    Type of the icmp message being sent. Considered if C(protocol=icmp).



43
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 43

attribute :icmp_type

#ip_addressString?

Returns Public IP address the ingress rule is assigned to.,Required if C(type=ingress).

Returns:

  • (String, nil)

    Public IP address the ingress rule is assigned to.,Required if C(type=ingress).



11
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 11

attribute :ip_address

#networkString?

Returns Network the egress rule is related to.,Required if C(type=egress).

Returns:

  • (String, nil)

    Network the egress rule is related to.,Required if C(type=egress).



15
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 15

attribute :network

#poll_asyncBoolean?

Returns Poll async jobs until job has finished.

Returns:

  • (Boolean, nil)

    Poll async jobs until job has finished.



61
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 61

attribute :poll_async

#projectObject?

Returns Name of the project the firewall rule is related to.

Returns:

  • (Object, nil)

    Name of the project the firewall rule is related to.



55
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 55

attribute :project

#protocol:tcp, ...

Returns Protocol of the firewall rule.,C(all) is only available if C(type=egress).

Returns:

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

    Protocol of the firewall rule.,C(all) is only available if C(type=egress)



27
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 27

attribute :protocol

#start_portInteger?

Returns Start port for this rule. Considered if C(protocol=tcp) or C(protocol=udp).

Returns:

  • (Integer, nil)

    Start port for this rule. Considered if C(protocol=tcp) or C(protocol=udp).



35
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 35

attribute :start_port

#state:present, ...

Returns State of the firewall rule.

Returns:

  • (:present, :absent, nil)

    State of the firewall rule.



19
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 19

attribute :state

#type:ingress, ...

Returns Type of the firewall rule.

Returns:

  • (:ingress, :egress, nil)

    Type of the firewall rule.



23
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 23

attribute :type

#zoneObject?

Returns Name of the zone in which the virtual machine is in.,If not set, default zone is used.

Returns:

  • (Object, nil)

    Name of the zone in which the virtual machine is in.,If not set, default zone is used.



58
# File 'lib/ansible/ruby/modules/generated/extras/cloud/cloudstack/cs_firewall.rb', line 58

attribute :zone