Class: Ansible::Ruby::Modules::Azure_rm_networkinterface
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Azure_rm_networkinterface
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb
Overview
Create, update or delete a network interface. When creating a network interface you must provide the name of an existing virtual network, the name of an existing subnet within the virtual network. A default security group and public IP address will be created automatically, or you can provide the name of an existing security group and public IP address. See the examples below for more details.
Instance Method Summary collapse
-
#create_with_security_group ⇒ Boolean?
Specifies whether a default security group should be be created with the NIC.
-
#dns_servers ⇒ Array<String>, ...
Which DNS servers should the NIC lookup,List of IP’s.
-
#enable_accelerated_networking ⇒ Symbol?
Specifies whether the network interface should be created with the accelerated networking feature or not.
-
#enable_ip_forwarding ⇒ Symbol?
Whether to enable IP forwarding.
-
#ip_configurations ⇒ Array<Hash>, ...
List of ip configuration if contains mutilple configuration, should contain configuration object include field private_ip_address, private_ip_allocation_method, public_ip_address_name, public_ip, public_ip_allocation_method, name.
-
#location ⇒ Object?
Valid azure location.
-
#name ⇒ String
Name of the network interface.
-
#open_ports ⇒ Object?
When a default security group is created for a Linux host a rule will be added allowing inbound TCP connections to the default SSH port 22, and for a Windows host rules will be added allowing inbound access to RDP ports 3389 and 5986.
-
#os_type ⇒ :Windows, ...
Determines any rules to be added to a default security group.
-
#private_ip_address ⇒ Object?
(Deprecate) Valid IPv4 address that falls within the specified subnet.,This option will be deprecated in 2.9, use I(ip_configurations) instead.
-
#private_ip_allocation_method ⇒ :Dynamic, ...
(Deprecate) Specify whether or not the assigned IP address is permanent.
-
#public_ip ⇒ :yes, ...
(Deprecate) When creating a network interface, if no public IP address name is provided a default public IP address will be created.
-
#public_ip_address_name ⇒ Object?
(Deprecate) Name of an existing public IP address object to associate with the security group.,This option will be deprecated in 2.9, use I(ip_configurations) instead.
-
#public_ip_allocation_method ⇒ :Dynamic, ...
(Deprecate) If a public_ip_address_name is not provided, a default public IP address will be created.
-
#resource_group ⇒ String
Name of a resource group where the network interface exists or will be created.
-
#security_group ⇒ String, ...
An existing security group with which to associate the network interface.
-
#state ⇒ :absent, ...
Assert the state of the network interface.
-
#subnet_name ⇒ String
Name of an existing subnet within the specified virtual network.
-
#virtual_network ⇒ String
An existing virtual network with which the network interface 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
#create_with_security_group ⇒ Boolean?
65 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 65 attribute :create_with_security_group |
#dns_servers ⇒ Array<String>, ...
80 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 80 attribute :dns_servers |
#enable_accelerated_networking ⇒ Symbol?
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 61 attribute :enable_accelerated_networking |
#enable_ip_forwarding ⇒ Symbol?
76 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 76 attribute :enable_ip_forwarding |
#ip_configurations ⇒ Array<Hash>, ...
57 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 57 attribute :ip_configurations |
#location ⇒ Object?
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 24 attribute :location |
#name ⇒ String
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 16 attribute :name |
#open_ports ⇒ Object?
73 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 73 attribute :open_ports |
#os_type ⇒ :Windows, ...
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 35 attribute :os_type |
#private_ip_address ⇒ Object?
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 39 attribute :private_ip_address |
#private_ip_allocation_method ⇒ :Dynamic, ...
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 42 attribute :private_ip_allocation_method |
#public_ip ⇒ :yes, ...
46 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 46 attribute :public_ip |
#public_ip_address_name ⇒ Object?
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 50 attribute :public_ip_address_name |
#public_ip_allocation_method ⇒ :Dynamic, ...
53 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 53 attribute :public_ip_allocation_method |
#resource_group ⇒ String
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 12 attribute :resource_group |
#security_group ⇒ String, ...
69 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 69 attribute :security_group |
#state ⇒ :absent, ...
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 20 attribute :state |
#subnet_name ⇒ String
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 31 attribute :subnet_name |
#virtual_network ⇒ String
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_networkinterface.rb', line 27 attribute :virtual_network |