Class: Ansible::Ruby::Modules::Cs_securitygroup_rule

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

Overview

Add and remove security group 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

#cidrString?

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

Returns:

  • (String, nil)

    CIDR (full notation) to be used for security group rule.



28
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_securitygroup_rule.rb', line 28

attribute :cidr

#end_portInteger?

Returns End port for this rule. Required if C(protocol=tcp) or C(protocol=udp), but C(start_port) will be used if not set.

Returns:

  • (Integer, nil)

    End port for this rule. Required if C(protocol=tcp) or C(protocol=udp), but C(start_port) will be used if not set.



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

attribute :end_port

#icmp_codeInteger?

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

Returns:

  • (Integer, nil)

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



48
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_securitygroup_rule.rb', line 48

attribute :icmp_code

#icmp_typeInteger?

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

Returns:

  • (Integer, nil)

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



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

attribute :icmp_type

#poll_asyncBoolean?

Returns Poll async jobs until job has finished.

Returns:

  • (Boolean, nil)

    Poll async jobs until job has finished.



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

attribute :poll_async

#projectObject?

Returns Name of the project the security group to be created in.

Returns:

  • (Object, nil)

    Name of the project the security group to be created in.



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

attribute :project

#protocol:tcp, ...

Returns Protocol of the security group rule.

Returns:

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

    Protocol of the security group rule.



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

attribute :protocol

#security_groupString

Returns Name of the security group the rule is related to. The security group must be existing.

Returns:

  • (String)

    Name of the security group the rule is related to. The security group must be existing.



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

attribute :security_group

#start_portInteger?

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

Returns:

  • (Integer, nil)

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



36
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_securitygroup_rule.rb', line 36

attribute :start_port

#state:present, ...

Returns State of the security group rule.

Returns:

  • (:present, :absent, nil)

    State of the security group rule.



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

attribute :state

#type:ingress, ...

Returns Ingress or egress security group rule.

Returns:

  • (:ingress, :egress, nil)

    Ingress or egress security group rule.



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

attribute :type

#user_security_groupString?

Returns Security group this rule is based of.

Returns:

  • (String, nil)

    Security group this rule is based of.



32
# File 'lib/ansible/ruby/modules/generated/cloud/cloudstack/cs_securitygroup_rule.rb', line 32

attribute :user_security_group