Class: Ansible::Ruby::Modules::Azure_rm_subnet
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Azure_rm_subnet
- 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
-
#address_prefix_cidr ⇒ String
CIDR defining the IPv4 address space of the subnet.
-
#name ⇒ String
Name of the subnet.
-
#resource_group ⇒ String
Name of resource group.
-
#route_table ⇒ String?
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.
-
#security_group ⇒ Hash?
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.
-
#state ⇒ :absent, ...
Assert the state of the subnet.
-
#virtual_network_name ⇒ String
Name of an existing virtual network with which the subnet is or will be associated.
Methods inherited from Base
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_cidr ⇒ String
Returns 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 |
#name ⇒ String
Returns Name of the subnet.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 16 attribute :name |
#resource_group ⇒ String
Returns Name of resource group.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 12 attribute :resource_group |
#route_table ⇒ String?
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.
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 36 attribute :route_table |
#security_group ⇒ Hash?
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.
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.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_subnet.rb', line 28 attribute :state |
#virtual_network_name ⇒ String
Returns 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 |