Class: Ansible::Ruby::Modules::Os_security_group_rule

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

Overview

Add or Remove rule from an existing security group

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

#availability_zoneObject?

Returns Ignored. Present for backwards compatibility.

Returns:

  • (Object, nil)

    Ignored. Present for backwards compatibility



52
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 52

attribute :availability_zone

#direction:egress, ...

Returns The direction in which the security group rule is applied. Not all providers support egress.

Returns:

  • (:egress, :ingress, nil)

    The direction in which the security group rule is applied. Not all providers support egress.



40
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 40

attribute :direction

#ethertype:IPv4, ...

Returns Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Not all providers support IPv6.

Returns:

  • (:IPv4, :IPv6, nil)

    Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. Not all providers support IPv6.



36
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 36

attribute :ethertype

#port_range_maxInteger?

Returns Ending port.

Returns:

  • (Integer, nil)

    Ending port



24
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 24

attribute :port_range_max

#port_range_minInteger?

Returns Starting port.

Returns:

  • (Integer, nil)

    Starting port



20
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 20

attribute :port_range_min

#projectString?

Returns Unique name or ID of the project.

Returns:

  • (String, nil)

    Unique name or ID of the project.



48
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 48

attribute :project

#protocol:tcp, ...

Returns IP protocols TCP UDP ICMP 112 (VRRP).

Returns:

  • (:tcp, :udp, :icmp, 112, :None, nil)

    IP protocols TCP UDP ICMP 112 (VRRP)



16
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 16

attribute :protocol

#remote_groupString?

Returns Name or ID of the Security group to link (exclusive with remote_ip_prefix).

Returns:

  • (String, nil)

    Name or ID of the Security group to link (exclusive with remote_ip_prefix)



32
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 32

attribute :remote_group

#remote_ip_prefixString?

Returns Source IP address(es) in CIDR notation (exclusive with remote_group).

Returns:

  • (String, nil)

    Source IP address(es) in CIDR notation (exclusive with remote_group)



28
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 28

attribute :remote_ip_prefix

#security_groupString

Returns Name or ID of the security group.

Returns:

  • (String)

    Name or ID of the security group



12
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 12

attribute :security_group

#state:present, ...

Returns Should the resource be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the resource be present or absent.



44
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_security_group_rule.rb', line 44

attribute :state