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

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



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

attribute :address_prefix_cidr

#nameString

Returns Name of the subnet.

Returns:

  • (String)

    Name of the subnet.



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

attribute :name

#resource_groupString

Returns Name of resource group.

Returns:

  • (String)

    Name of resource group.



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

attribute :resource_group

#security_group_nameObject?

Returns Name of an existing security group with which to associate the subnet.

Returns:

  • (Object, nil)

    Name of an existing security group with which to associate the subnet.



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

attribute :security_group_name

#state:absent, :present

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

Returns:

  • (:absent, :present)

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



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

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.



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

attribute :virtual_network_name