pulumi-vsphere 4.11.0a1719961236__py3-none-any.whl → 4.11.0a1720619049__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-vsphere might be problematic. Click here for more details.

Files changed (40) hide show
  1. pulumi_vsphere/_inputs.py +12 -6
  2. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -4
  3. pulumi_vsphere/datacenter.py +7 -28
  4. pulumi_vsphere/datastore_cluster.py +0 -14
  5. pulumi_vsphere/distributed_port_group.py +56 -7
  6. pulumi_vsphere/distributed_virtual_switch.py +7 -28
  7. pulumi_vsphere/entity_permissions.py +56 -35
  8. pulumi_vsphere/folder.py +0 -21
  9. pulumi_vsphere/get_compute_cluster_host_group.py +18 -16
  10. pulumi_vsphere/get_content_library.py +10 -6
  11. pulumi_vsphere/get_content_library_item.py +12 -8
  12. pulumi_vsphere/get_datastore.py +9 -9
  13. pulumi_vsphere/get_datastore_stats.py +34 -32
  14. pulumi_vsphere/get_dynamic.py +14 -12
  15. pulumi_vsphere/get_guest_os_customization.py +8 -43
  16. pulumi_vsphere/get_host_base_images.py +6 -6
  17. pulumi_vsphere/get_host_pci_device.py +4 -2
  18. pulumi_vsphere/get_host_thumbprint.py +12 -12
  19. pulumi_vsphere/get_host_vgpu_profile.py +4 -2
  20. pulumi_vsphere/get_license.py +2 -1
  21. pulumi_vsphere/get_network.py +14 -14
  22. pulumi_vsphere/get_resource_pool.py +12 -8
  23. pulumi_vsphere/get_role.py +4 -4
  24. pulumi_vsphere/get_virtual_machine.py +58 -33
  25. pulumi_vsphere/guest_os_customization.py +4 -4
  26. pulumi_vsphere/nas_datastore.py +7 -7
  27. pulumi_vsphere/outputs.py +48 -40
  28. pulumi_vsphere/pulumi-plugin.json +1 -1
  29. pulumi_vsphere/resource_pool.py +2 -2
  30. pulumi_vsphere/supervisor.py +104 -0
  31. pulumi_vsphere/virtual_disk.py +7 -7
  32. pulumi_vsphere/virtual_machine.py +2 -2
  33. pulumi_vsphere/virtual_machine_class.py +2 -0
  34. pulumi_vsphere/virtual_machine_snapshot.py +2 -2
  35. pulumi_vsphere/vm_storage_policy.py +2 -2
  36. pulumi_vsphere/vnic.py +61 -65
  37. {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720619049.dist-info}/METADATA +1 -1
  38. {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720619049.dist-info}/RECORD +40 -40
  39. {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720619049.dist-info}/WHEEL +1 -1
  40. {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720619049.dist-info}/top_level.txt +0 -0
@@ -48,17 +48,11 @@ class GetGuestOsCustomizationResult:
48
48
  @property
49
49
  @pulumi.getter(name="changeVersion")
50
50
  def change_version(self) -> str:
51
- """
52
- The number of last changed version to the customization specification.
53
- """
54
51
  return pulumi.get(self, "change_version")
55
52
 
56
53
  @property
57
54
  @pulumi.getter
58
55
  def description(self) -> str:
59
- """
60
- The description for the customization specification.
61
- """
62
56
  return pulumi.get(self, "description")
63
57
 
64
58
  @property
@@ -72,9 +66,6 @@ class GetGuestOsCustomizationResult:
72
66
  @property
73
67
  @pulumi.getter(name="lastUpdateTime")
74
68
  def last_update_time(self) -> str:
75
- """
76
- The time of last modification to the customization specification.
77
- """
78
69
  return pulumi.get(self, "last_update_time")
79
70
 
80
71
  @property
@@ -85,17 +76,11 @@ class GetGuestOsCustomizationResult:
85
76
  @property
86
77
  @pulumi.getter
87
78
  def specs(self) -> Sequence['outputs.GetGuestOsCustomizationSpecResult']:
88
- """
89
- Container object for the guest operating system properties to be customized. See virtual machine customizations
90
- """
91
79
  return pulumi.get(self, "specs")
92
80
 
93
81
  @property
94
82
  @pulumi.getter
95
83
  def type(self) -> str:
96
- """
97
- The type of customization specification: One among: Windows, Linux.
98
- """
99
84
  return pulumi.get(self, "type")
100
85
 
101
86
 
@@ -117,22 +102,12 @@ class AwaitableGetGuestOsCustomizationResult(GetGuestOsCustomizationResult):
117
102
  def get_guest_os_customization(name: Optional[str] = None,
118
103
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGuestOsCustomizationResult:
119
104
  """
120
- The `GuestOsCustomization` data source can be used to discover the details about a customization specification for a guest operating system.
121
-
122
- Suggested change
123
- > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance.
124
-
125
- ## Example Usage
126
-
127
- ```python
128
- import pulumi
129
- import pulumi_vsphere as vsphere
130
-
131
- gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
132
- ```
105
+ The `GuestOsCustomization` data source can be used to discover the
106
+ details about a customization specification for a guest operating system.
133
107
 
134
108
 
135
- :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
109
+ :param str name: The name of the customization specification is the unique
110
+ identifier per vCenter Server instance. ## Attribute Reference
136
111
  """
137
112
  __args__ = dict()
138
113
  __args__['name'] = name
@@ -153,21 +128,11 @@ def get_guest_os_customization(name: Optional[str] = None,
153
128
  def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
154
129
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
155
130
  """
156
- The `GuestOsCustomization` data source can be used to discover the details about a customization specification for a guest operating system.
157
-
158
- Suggested change
159
- > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance.
160
-
161
- ## Example Usage
162
-
163
- ```python
164
- import pulumi
165
- import pulumi_vsphere as vsphere
166
-
167
- gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
168
- ```
131
+ The `GuestOsCustomization` data source can be used to discover the
132
+ details about a customization specification for a guest operating system.
169
133
 
170
134
 
171
- :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
135
+ :param str name: The name of the customization specification is the unique
136
+ identifier per vCenter Server instance. ## Attribute Reference
172
137
  """
173
138
  ...
@@ -58,8 +58,8 @@ class AwaitableGetHostBaseImagesResult(GetHostBaseImagesResult):
58
58
 
59
59
  def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostBaseImagesResult:
60
60
  """
61
- The `get_host_base_images` data source can be used to get the list of ESXi base images available
62
- for cluster software management.
61
+ The `get_host_base_images` data source can be used to get the list of ESXi
62
+ base images available for cluster software management.
63
63
 
64
64
  ## Example Usage
65
65
 
@@ -67,7 +67,7 @@ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
67
67
  import pulumi
68
68
  import pulumi_vsphere as vsphere
69
69
 
70
- baseimages = vsphere.get_host_base_images()
70
+ base_images = vsphere.get_host_base_images()
71
71
  ```
72
72
  """
73
73
  __args__ = dict()
@@ -82,8 +82,8 @@ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
82
82
  @_utilities.lift_output_func(get_host_base_images)
83
83
  def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostBaseImagesResult]:
84
84
  """
85
- The `get_host_base_images` data source can be used to get the list of ESXi base images available
86
- for cluster software management.
85
+ The `get_host_base_images` data source can be used to get the list of ESXi
86
+ base images available for cluster software management.
87
87
 
88
88
  ## Example Usage
89
89
 
@@ -91,7 +91,7 @@ def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) ->
91
91
  import pulumi
92
92
  import pulumi_vsphere as vsphere
93
93
 
94
- baseimages = vsphere.get_host_base_images()
94
+ base_images = vsphere.get_host_base_images()
95
95
  ```
96
96
  """
97
97
  ...
@@ -137,7 +137,8 @@ def get_host_pci_device(class_id: Optional[str] = None,
137
137
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
138
138
 
139
139
  > **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
140
- :param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
140
+ :param str host_id: The [managed object reference ID][docs-about-morefs] of
141
+ a host.
141
142
  :param str name_regex: A regular expression that will be used to match the
142
143
  host PCI device name.
143
144
  :param str vendor_id: The hexadecimal PCI device vendor ID.
@@ -205,7 +206,8 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
205
206
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
206
207
 
207
208
  > **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
208
- :param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
209
+ :param str host_id: The [managed object reference ID][docs-about-morefs] of
210
+ a host.
209
211
  :param str name_regex: A regular expression that will be used to match the
210
212
  host PCI device name.
211
213
  :param str vendor_id: The hexadecimal PCI device vendor ID.
@@ -76,10 +76,10 @@ def get_host_thumbprint(address: Optional[str] = None,
76
76
  port: Optional[str] = None,
77
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostThumbprintResult:
78
78
  """
79
- The `vsphere_thumbprint` data source can be used to discover the host
80
- thumbprint of an ESXi host. This can be used when adding the `Host`
81
- resource. If the ESXi host is using a certificate chain, the first one returned
82
- will be used to generate the thumbprint.
79
+ The `vsphere_thumbprint` data source can be used to discover the host thumbprint
80
+ of an ESXi host. This can be used when adding the `Host` resource. If
81
+ the ESXi host is using a certificate chain, the first one returned will be used
82
+ to generate the thumbprint.
83
83
 
84
84
  ## Example Usage
85
85
 
@@ -91,8 +91,8 @@ def get_host_thumbprint(address: Optional[str] = None,
91
91
  ```
92
92
 
93
93
 
94
- :param str address: The address of the ESXi host to retrieve the
95
- thumbprint from.
94
+ :param str address: The address of the ESXi host to retrieve the thumbprint
95
+ from.
96
96
  :param bool insecure: Disables SSL certificate verification.
97
97
  Default: `false`
98
98
  :param str port: The port to use connecting to the ESXi host. Default: 443
@@ -117,10 +117,10 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
117
117
  port: Optional[pulumi.Input[Optional[str]]] = None,
118
118
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostThumbprintResult]:
119
119
  """
120
- The `vsphere_thumbprint` data source can be used to discover the host
121
- thumbprint of an ESXi host. This can be used when adding the `Host`
122
- resource. If the ESXi host is using a certificate chain, the first one returned
123
- will be used to generate the thumbprint.
120
+ The `vsphere_thumbprint` data source can be used to discover the host thumbprint
121
+ of an ESXi host. This can be used when adding the `Host` resource. If
122
+ the ESXi host is using a certificate chain, the first one returned will be used
123
+ to generate the thumbprint.
124
124
 
125
125
  ## Example Usage
126
126
 
@@ -132,8 +132,8 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
132
132
  ```
133
133
 
134
134
 
135
- :param str address: The address of the ESXi host to retrieve the
136
- thumbprint from.
135
+ :param str address: The address of the ESXi host to retrieve the thumbprint
136
+ from.
137
137
  :param bool insecure: Disables SSL certificate verification.
138
138
  Default: `false`
139
139
  :param str port: The port to use connecting to the ESXi host. Default: 443
@@ -118,7 +118,8 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
118
118
  ```
119
119
 
120
120
 
121
- :param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
121
+ :param str host_id: The [managed object reference ID][docs-about-morefs] of
122
+ a host.
122
123
  :param str name_regex: A regular expression that will be used to match the
123
124
  host vGPU profile name.
124
125
 
@@ -173,7 +174,8 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
173
174
  ```
174
175
 
175
176
 
176
- :param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
177
+ :param str host_id: The [managed object reference ID][docs-about-morefs] of
178
+ a host.
177
179
  :param str name_regex: A regular expression that will be used to match the
178
180
  host vGPU profile name.
179
181
 
@@ -61,7 +61,8 @@ class GetLicenseResult:
61
61
  @pulumi.getter
62
62
  def labels(self) -> Mapping[str, str]:
63
63
  """
64
- A map of key/value pairs attached as labels (tags) to the license key.
64
+ A map of key/value pairs attached as labels (tags) to the license
65
+ key.
65
66
  """
66
67
  return pulumi.get(self, "labels")
67
68
 
@@ -91,11 +91,11 @@ def get_network(datacenter_id: Optional[str] = None,
91
91
  name: Optional[str] = None,
92
92
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
93
93
  """
94
- The `get_network` data source can be used to discover the ID of a network
95
- in vSphere. This can be any network that can be used as the backing for a
96
- network interface for `VirtualMachine` or any other vSphere resource
97
- that requires a network. This includes standard (host-based) port groups,
98
- distributed port groups, or opaque networks such as those managed by NSX.
94
+ The `get_network` data source can be used to discover the ID of a network in
95
+ vSphere. This can be any network that can be used as the backing for a network
96
+ interface for `VirtualMachine` or any other vSphere resource that
97
+ requires a network. This includes standard (host-based) port groups, distributed
98
+ port groups, or opaque networks such as those managed by NSX.
99
99
 
100
100
  ## Example Usage
101
101
 
@@ -115,8 +115,8 @@ def get_network(datacenter_id: Optional[str] = None,
115
115
  use the `id` attribute from an empty `Datacenter` data source.
116
116
  :param str distributed_virtual_switch_uuid: For distributed port group type
117
117
  network objects, the ID of the distributed virtual switch for which the port
118
- group belongs. It is useful to differentiate port groups with same name
119
- using the distributed virtual switch ID.
118
+ group belongs. It is useful to differentiate port groups with same name using
119
+ the distributed virtual switch ID.
120
120
  :param str name: The name of the network. This can be a name or path.
121
121
  """
122
122
  __args__ = dict()
@@ -140,11 +140,11 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
140
140
  name: Optional[pulumi.Input[str]] = None,
141
141
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkResult]:
142
142
  """
143
- The `get_network` data source can be used to discover the ID of a network
144
- in vSphere. This can be any network that can be used as the backing for a
145
- network interface for `VirtualMachine` or any other vSphere resource
146
- that requires a network. This includes standard (host-based) port groups,
147
- distributed port groups, or opaque networks such as those managed by NSX.
143
+ The `get_network` data source can be used to discover the ID of a network in
144
+ vSphere. This can be any network that can be used as the backing for a network
145
+ interface for `VirtualMachine` or any other vSphere resource that
146
+ requires a network. This includes standard (host-based) port groups, distributed
147
+ port groups, or opaque networks such as those managed by NSX.
148
148
 
149
149
  ## Example Usage
150
150
 
@@ -164,8 +164,8 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
164
164
  use the `id` attribute from an empty `Datacenter` data source.
165
165
  :param str distributed_virtual_switch_uuid: For distributed port group type
166
166
  network objects, the ID of the distributed virtual switch for which the port
167
- group belongs. It is useful to differentiate port groups with same name
168
- using the distributed virtual switch ID.
167
+ group belongs. It is useful to differentiate port groups with same name using
168
+ the distributed virtual switch ID.
169
169
  :param str name: The name of the network. This can be a name or path.
170
170
  """
171
171
  ...
@@ -89,8 +89,8 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
89
89
  data source.
90
90
 
91
91
  All compute resources in vSphere have a resource pool, even if one has not been
92
- explicitly created. This resource pool is referred to as the
93
- _root resource pool_ and can be looked up by specifying the path.
92
+ explicitly created. This resource pool is referred to as the _root resource
93
+ pool_ and can be looked up by specifying the path.
94
94
 
95
95
  ```python
96
96
  import pulumi
@@ -100,9 +100,11 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
100
100
  datacenter_id=datacenter["id"])
101
101
  ```
102
102
 
103
- For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
103
+ For more information on the root resource pool, see
104
+ [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
105
+ documentation.
104
106
 
105
- [vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
107
+ [vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
106
108
 
107
109
 
108
110
  :param str datacenter_id: The managed object reference ID
@@ -157,8 +159,8 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
157
159
  data source.
158
160
 
159
161
  All compute resources in vSphere have a resource pool, even if one has not been
160
- explicitly created. This resource pool is referred to as the
161
- _root resource pool_ and can be looked up by specifying the path.
162
+ explicitly created. This resource pool is referred to as the _root resource
163
+ pool_ and can be looked up by specifying the path.
162
164
 
163
165
  ```python
164
166
  import pulumi
@@ -168,9 +170,11 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
168
170
  datacenter_id=datacenter["id"])
169
171
  ```
170
172
 
171
- For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
173
+ For more information on the root resource pool, see
174
+ [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
175
+ documentation.
172
176
 
173
- [vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
177
+ [vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
174
178
 
175
179
 
176
180
  :param str datacenter_id: The managed object reference ID
@@ -95,8 +95,8 @@ def get_role(description: Optional[str] = None,
95
95
  role_privileges: Optional[Sequence[str]] = None,
96
96
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRoleResult:
97
97
  """
98
- The `Role` data source can be used to discover the `id` and privileges associated
99
- with a role given its name or display label.
98
+ The `Role` data source can be used to discover the `id` and privileges
99
+ associated with a role given its name or display label.
100
100
 
101
101
  ## Example Usage
102
102
 
@@ -135,8 +135,8 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
135
135
  role_privileges: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
136
136
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleResult]:
137
137
  """
138
- The `Role` data source can be used to discover the `id` and privileges associated
139
- with a role given its name or display label.
138
+ The `Role` data source can be used to discover the `id` and privileges
139
+ associated with a role given its name or display label.
140
140
 
141
141
  ## Example Usage
142
142
 
@@ -23,7 +23,7 @@ class GetVirtualMachineResult:
23
23
  """
24
24
  A collection of values returned by getVirtualMachine.
25
25
  """
26
- def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
26
+ def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, instance_uuid=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
27
27
  if alternate_guest_name and not isinstance(alternate_guest_name, str):
28
28
  raise TypeError("Expected argument 'alternate_guest_name' to be a str")
29
29
  pulumi.set(__self__, "alternate_guest_name", alternate_guest_name)
@@ -114,6 +114,9 @@ class GetVirtualMachineResult:
114
114
  if ide_controller_scan_count and not isinstance(ide_controller_scan_count, int):
115
115
  raise TypeError("Expected argument 'ide_controller_scan_count' to be a int")
116
116
  pulumi.set(__self__, "ide_controller_scan_count", ide_controller_scan_count)
117
+ if instance_uuid and not isinstance(instance_uuid, str):
118
+ raise TypeError("Expected argument 'instance_uuid' to be a str")
119
+ pulumi.set(__self__, "instance_uuid", instance_uuid)
117
120
  if latency_sensitivity and not isinstance(latency_sensitivity, str):
118
121
  raise TypeError("Expected argument 'latency_sensitivity' to be a str")
119
122
  pulumi.set(__self__, "latency_sensitivity", latency_sensitivity)
@@ -225,7 +228,8 @@ class GetVirtualMachineResult:
225
228
  def alternate_guest_name(self) -> Optional[str]:
226
229
  """
227
230
  The alternate guest name of the virtual machine when
228
- `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
231
+ `guest_id` is a non-specific operating system, like `otherGuest` or
232
+ `otherGuest64`.
229
233
  """
230
234
  return pulumi.get(self, "alternate_guest_name")
231
235
 
@@ -301,11 +305,11 @@ class GetVirtualMachineResult:
301
305
  @pulumi.getter(name="defaultIpAddress")
302
306
  def default_ip_address(self) -> str:
303
307
  """
304
- Whenever possible, this is the first IPv4 address that is reachable through
305
- the default gateway configured on the machine, then the first reachable IPv6
306
- address, and then the first general discovered address if neither exist. If
307
- VMware Tools is not running on the virtual machine, or if the VM is powered
308
- off, this value will be blank.
308
+ Whenever possible, this is the first IPv4 address that
309
+ is reachable through the default gateway configured on the machine, then the
310
+ first reachable IPv6 address, and then the first general discovered address if
311
+ neither exist. If VMware Tools is not running on the virtual machine, or if
312
+ the VM is powered off, this value will be blank.
309
313
  """
310
314
  return pulumi.get(self, "default_ip_address")
311
315
 
@@ -317,10 +321,10 @@ class GetVirtualMachineResult:
317
321
  template. These are sorted by bus and unit number so that they can be applied
318
322
  to a `VirtualMachine` resource in the order the resource expects
319
323
  while cloning. This is useful for discovering certain disk settings while
320
- performing a linked clone, as all settings that are output by this data
321
- source must be the same on the destination virtual machine as the source.
322
- Only the first number of controllers defined by `scsi_controller_scan_count`
323
- are scanned for disks. The sub-attributes are:
324
+ performing a linked clone, as all settings that are output by this data source
325
+ must be the same on the destination virtual machine as the source. Only the
326
+ first number of controllers defined by `scsi_controller_scan_count` are
327
+ scanned for disks. The sub-attributes are:
324
328
  """
325
329
  return pulumi.get(self, "disks")
326
330
 
@@ -341,7 +345,7 @@ class GetVirtualMachineResult:
341
345
 
342
346
  @property
343
347
  @pulumi.getter(name="eptRviMode")
344
- def ept_rvi_mode(self) -> Optional[str]:
348
+ def ept_rvi_mode(self) -> str:
345
349
  return pulumi.get(self, "ept_rvi_mode")
346
350
 
347
351
  @property
@@ -358,7 +362,8 @@ class GetVirtualMachineResult:
358
362
  @pulumi.getter
359
363
  def firmware(self) -> Optional[str]:
360
364
  """
361
- The firmware type for this virtual machine. Can be `bios` or `efi`.
365
+ The firmware type for this virtual machine. Can be `bios` or
366
+ `efi`.
362
367
  """
363
368
  return pulumi.get(self, "firmware")
364
369
 
@@ -393,7 +398,7 @@ class GetVirtualMachineResult:
393
398
 
394
399
  @property
395
400
  @pulumi.getter(name="hvMode")
396
- def hv_mode(self) -> Optional[str]:
401
+ def hv_mode(self) -> str:
397
402
  return pulumi.get(self, "hv_mode")
398
403
 
399
404
  @property
@@ -409,6 +414,14 @@ class GetVirtualMachineResult:
409
414
  def ide_controller_scan_count(self) -> Optional[int]:
410
415
  return pulumi.get(self, "ide_controller_scan_count")
411
416
 
417
+ @property
418
+ @pulumi.getter(name="instanceUuid")
419
+ def instance_uuid(self) -> str:
420
+ """
421
+ The instance UUID of the virtual machine or template.
422
+ """
423
+ return pulumi.get(self, "instance_uuid")
424
+
412
425
  @property
413
426
  @pulumi.getter(name="latencySensitivity")
414
427
  def latency_sensitivity(self) -> Optional[str]:
@@ -473,7 +486,8 @@ class GetVirtualMachineResult:
473
486
  """
474
487
  The network interface types for each network
475
488
  interface found on the virtual machine, in device bus order. Will be one of
476
- `e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or `vmxnet3`.
489
+ `e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
490
+ `vmxnet3`.
477
491
  """
478
492
  return pulumi.get(self, "network_interface_types")
479
493
 
@@ -481,13 +495,13 @@ class GetVirtualMachineResult:
481
495
  @pulumi.getter(name="networkInterfaces")
482
496
  def network_interfaces(self) -> Sequence['outputs.GetVirtualMachineNetworkInterfaceResult']:
483
497
  """
484
- Information about each of the network interfaces on this
485
- virtual machine or template. These are sorted by device bus order so that they
486
- can be applied to a `VirtualMachine` resource in the order the resource
487
- expects while cloning. This is useful for discovering certain network interface
488
- settings while performing a linked clone, as all settings that are output by this
489
- data source must be the same on the destination virtual machine as the source.
490
- The sub-attributes are:
498
+ Information about each of the network interfaces on
499
+ this virtual machine or template. These are sorted by device bus order so that
500
+ they can be applied to a `VirtualMachine` resource in the order the
501
+ resource expects while cloning. This is useful for discovering certain network
502
+ interface settings while performing a linked clone, as all settings that are
503
+ output by this data source must be the same on the destination virtual machine
504
+ as the source. The sub-attributes are:
491
505
  """
492
506
  return pulumi.get(self, "network_interfaces")
493
507
 
@@ -495,7 +509,8 @@ class GetVirtualMachineResult:
495
509
  @pulumi.getter(name="numCoresPerSocket")
496
510
  def num_cores_per_socket(self) -> Optional[int]:
497
511
  """
498
- The number of cores per socket for this virtual machine.
512
+ The number of cores per socket for this virtual
513
+ machine.
499
514
  """
500
515
  return pulumi.get(self, "num_cores_per_socket")
501
516
 
@@ -657,6 +672,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
657
672
  hv_mode=self.hv_mode,
658
673
  id=self.id,
659
674
  ide_controller_scan_count=self.ide_controller_scan_count,
675
+ instance_uuid=self.instance_uuid,
660
676
  latency_sensitivity=self.latency_sensitivity,
661
677
  memory=self.memory,
662
678
  memory_hot_add_enabled=self.memory_hot_add_enabled,
@@ -759,8 +775,8 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
759
775
 
760
776
  ## Example Usage
761
777
 
762
- In the following example, a virtual machine template is returned by its
763
- unique name within the `Datacenter`.
778
+ In the following example, a virtual machine template is returned by its unique
779
+ name within the `Datacenter`.
764
780
 
765
781
  ```python
766
782
  import pulumi
@@ -770,6 +786,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
770
786
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
771
787
  datacenter_id=datacenter.id)
772
788
  ```
789
+
773
790
  In the following example, each virtual machine template is returned by its
774
791
  unique full path within the `Datacenter`.
775
792
 
@@ -786,14 +803,16 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
786
803
 
787
804
 
788
805
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
789
- `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
806
+ `guest_id` is a non-specific operating system, like `otherGuest` or
807
+ `otherGuest64`.
790
808
  :param str annotation: The user-provided description of this virtual machine.
791
809
  :param str datacenter_id: The managed object reference
792
810
  ID of the datacenter the virtual machine is located in.
793
811
  This can be omitted if the search path used in `name` is an absolute path.
794
812
  For default datacenters, use the `id` attribute from an empty
795
813
  `Datacenter` data source.
796
- :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
814
+ :param str firmware: The firmware type for this virtual machine. Can be `bios` or
815
+ `efi`.
797
816
  :param str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
798
817
  :param str guest_id: The guest ID of the virtual machine or template.
799
818
  :param int hardware_version: The hardware version number on this virtual machine.
@@ -801,7 +820,8 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
801
820
  :param str name: The name of the virtual machine. This can be a name or
802
821
  the full path relative to the datacenter. This is required if a UUID lookup
803
822
  is not performed.
804
- :param int num_cores_per_socket: The number of cores per socket for this virtual machine.
823
+ :param int num_cores_per_socket: The number of cores per socket for this virtual
824
+ machine.
805
825
  :param int num_cpus: The total number of virtual processor cores assigned to this
806
826
  virtual machine.
807
827
  :param int scsi_controller_scan_count: The number of SCSI controllers to
@@ -905,6 +925,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
905
925
  hv_mode=pulumi.get(__ret__, 'hv_mode'),
906
926
  id=pulumi.get(__ret__, 'id'),
907
927
  ide_controller_scan_count=pulumi.get(__ret__, 'ide_controller_scan_count'),
928
+ instance_uuid=pulumi.get(__ret__, 'instance_uuid'),
908
929
  latency_sensitivity=pulumi.get(__ret__, 'latency_sensitivity'),
909
930
  memory=pulumi.get(__ret__, 'memory'),
910
931
  memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
@@ -1008,8 +1029,8 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1008
1029
 
1009
1030
  ## Example Usage
1010
1031
 
1011
- In the following example, a virtual machine template is returned by its
1012
- unique name within the `Datacenter`.
1032
+ In the following example, a virtual machine template is returned by its unique
1033
+ name within the `Datacenter`.
1013
1034
 
1014
1035
  ```python
1015
1036
  import pulumi
@@ -1019,6 +1040,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1019
1040
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
1020
1041
  datacenter_id=datacenter.id)
1021
1042
  ```
1043
+
1022
1044
  In the following example, each virtual machine template is returned by its
1023
1045
  unique full path within the `Datacenter`.
1024
1046
 
@@ -1035,14 +1057,16 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1035
1057
 
1036
1058
 
1037
1059
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
1038
- `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
1060
+ `guest_id` is a non-specific operating system, like `otherGuest` or
1061
+ `otherGuest64`.
1039
1062
  :param str annotation: The user-provided description of this virtual machine.
1040
1063
  :param str datacenter_id: The managed object reference
1041
1064
  ID of the datacenter the virtual machine is located in.
1042
1065
  This can be omitted if the search path used in `name` is an absolute path.
1043
1066
  For default datacenters, use the `id` attribute from an empty
1044
1067
  `Datacenter` data source.
1045
- :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
1068
+ :param str firmware: The firmware type for this virtual machine. Can be `bios` or
1069
+ `efi`.
1046
1070
  :param str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
1047
1071
  :param str guest_id: The guest ID of the virtual machine or template.
1048
1072
  :param int hardware_version: The hardware version number on this virtual machine.
@@ -1050,7 +1074,8 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1050
1074
  :param str name: The name of the virtual machine. This can be a name or
1051
1075
  the full path relative to the datacenter. This is required if a UUID lookup
1052
1076
  is not performed.
1053
- :param int num_cores_per_socket: The number of cores per socket for this virtual machine.
1077
+ :param int num_cores_per_socket: The number of cores per socket for this virtual
1078
+ machine.
1054
1079
  :param int num_cpus: The total number of virtual processor cores assigned to this
1055
1080
  virtual machine.
1056
1081
  :param int scsi_controller_scan_count: The number of SCSI controllers to
@@ -208,8 +208,8 @@ class GuestOsCustomization(pulumi.CustomResource):
208
208
  import pulumi
209
209
  import pulumi_vsphere as vsphere
210
210
 
211
- windows_customization = vsphere.GuestOsCustomization("windows_customization",
212
- name="windows-spec",
211
+ windows = vsphere.GuestOsCustomization("windows",
212
+ name="windows",
213
213
  type="Windows",
214
214
  spec=vsphere.GuestOsCustomizationSpecArgs(
215
215
  windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
@@ -251,8 +251,8 @@ class GuestOsCustomization(pulumi.CustomResource):
251
251
  import pulumi
252
252
  import pulumi_vsphere as vsphere
253
253
 
254
- windows_customization = vsphere.GuestOsCustomization("windows_customization",
255
- name="windows-spec",
254
+ windows = vsphere.GuestOsCustomization("windows",
255
+ name="windows",
256
256
  type="Windows",
257
257
  spec=vsphere.GuestOsCustomizationSpecArgs(
258
258
  windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(