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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/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, fix_inclusion, #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.



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

attribute :account

#cidrsString?

Returns List of CIDRs (full notation) to be used for firewall rule.,Since version 2.5, it is a list of CIDR.

Returns:

  • (String, nil)

    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

#domainObject?

Returns Domain the firewall rule is related to.

Returns:

  • (Object, nil)

    Domain the firewall rule is related to.



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

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).



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

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).



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

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).



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

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).



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

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).



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

attribute :network

#poll_asyncBoolean?

Returns Poll async jobs until job has finished.

Returns:

  • (Boolean, nil)

    Poll async jobs until job has finished.



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

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.



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).

Returns:

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

    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_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).



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.

Returns:

  • (:present, :absent, nil)

    State of the firewall rule.



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

attribute :state

#tagsObject?

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: []).

Returns:

  • (Object, nil)

    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.

Returns:

  • (:ingress, :egress, nil)

    Type of the firewall rule.



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

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.



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

attribute :zone