You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/source/docs/providers/vsphere/r/virtual_machine.html.markdown
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,21 +49,37 @@ The following arguments are supported:
49
49
*`boot_delay` - (Optional) Time in seconds to wait for machine network to be ready.
50
50
*`custom_configuration_parameters` - (Optional) Map of values that is set as virtual machine custom configurations.
51
51
52
-
<aid="network-interfaces"></a>
53
-
## Network Interfaces
54
-
55
-
Network interfaces support the following attributes:
52
+
The `network_interface` block supports:
56
53
57
54
*`label` - (Required) Label to assign to this network interface
58
-
*`ip_address` - (Optional) Static IP to assign to this network interface. Interface will use DHCP if this is left blank. Currently only IPv4 IP addresses are supported.
59
-
*`subnet_mask` - (Optional) Subnet mask to use when statically assigning an IP.
55
+
*`ipv4_address` - (Optional) Static IP to assign to this network interface. Interface will use DHCP if this is left blank. Currently only IPv4 IP addresses are supported.
56
+
*`ipv4_prefix_length` - (Optional) prefix length to use when statically assigning an IP.
57
+
58
+
The following arguments are maintained for backwards compatibility and may be
59
+
removed in a future version:
60
+
61
+
*`ip_address` - __Deprecated, please use `ipv4_address` instead_.
62
+
*`subnet_mask` - __Deprecated, please use `ipv4_prefix_length` instead_.
60
63
61
-
<aid="disks"></a>
62
-
## Disks
63
64
64
-
Disks support the following attributes:
65
+
The `disk` block supports:
65
66
66
67
*`template` - (Required if size not provided) Template for this disk.
67
68
*`datastore` - (Optional) Datastore for this disk
68
69
*`size` - (Required if template not provided) Size of this disk (in GB).
69
70
*`iops` - (Optional) Number of virtual iops to allocate for this disk.
71
+
72
+
## Attributes Reference
73
+
74
+
The following attributes are exported:
75
+
76
+
*`id` - The instance ID.
77
+
*`name` - See Argument Reference above.
78
+
*`vcpu` - See Argument Reference above.
79
+
*`memory` - See Argument Reference above.
80
+
*`datacenter` - See Argument Reference above.
81
+
*`network_interface/label` - See Argument Reference above.
82
+
*`network_interface/ipv4_address` - See Argument Reference above.
83
+
*`network_interface/ipv4_prefix_length` - See Argument Reference above.
0 commit comments