Class: Ansible::Ruby::Modules::Azure_rm_subnet

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

Overview

Create, update or delete a subnet within a given virtual network. Allows setting and updating the address prefix CIDR, which must be valid within the context of the virtual network. Use the azure_rm_networkinterface module to associate interfaces with the subnet and assign specific IP addresses.

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

#address_prefix_cidrString

Returns CIDR defining the IPv4 address space of the subnet. Must be valid within the context of the virtual network.

Returns:

  • (String)

    CIDR defining the IPv4 address space of the subnet. Must be valid within the context of the virtual network.



20
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 20

attribute :address_prefix_cidr

#nameString

Returns Name of the subnet.

Returns:

  • (String)

    Name of the subnet.



16
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 16

attribute :name

#resource_groupString

Returns Name of resource group.

Returns:

  • (String)

    Name of resource group.



12
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 12

attribute :resource_group

#route_tableString?

Returns The reference of the RouteTable resource.,It can accept both a str or a dict.,The str can be the name or resource id of the route table.,The dict can contains C(name) and C(resource_group) of the route_table.

Returns:

  • (String, nil)

    The reference of the RouteTable resource.,It can accept both a str or a dict.,The str can be the name or resource id of the route table.,The dict can contains C(name) and C(resource_group) of the route_table.



36
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 36

attribute :route_table

#security_groupHash?

Returns Existing security group with which to associate the subnet.,It can be the security group name which is in the same resource group.,It can be the resource Id.,It can be a dict which contains C(name) and C(resource_group) of the security group.

Returns:

  • (Hash, nil)

    Existing security group with which to associate the subnet.,It can be the security group name which is in the same resource group.,It can be the resource Id.,It can be a dict which contains C(name) and C(resource_group) of the security group.



24
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 24

attribute :security_group

#state:absent, ...

Returns Assert the state of the subnet. Use ‘present’ to create or update a subnet and ‘absent’ to delete a subnet.

Returns:

  • (:absent, :present, nil)

    Assert the state of the subnet. Use ‘present’ to create or update a subnet and ‘absent’ to delete a subnet.



28
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 28

attribute :state

#virtual_network_nameString

Returns Name of an existing virtual network with which the subnet is or will be associated.

Returns:

  • (String)

    Name of an existing virtual network with which the subnet is or will be associated.



32
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 32

attribute :virtual_network_name