pulumi-vsphere 4.10.0a1709368772__py3-none-any.whl → 4.10.0a1710160860__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 (45) hide show
  1. pulumi_vsphere/_inputs.py +4 -0
  2. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +8 -0
  3. pulumi_vsphere/datacenter.py +12 -0
  4. pulumi_vsphere/datastore_cluster.py +7 -7
  5. pulumi_vsphere/distributed_virtual_switch.py +28 -7
  6. pulumi_vsphere/file.py +12 -0
  7. pulumi_vsphere/get_compute_cluster.py +4 -0
  8. pulumi_vsphere/get_compute_cluster_host_group.py +4 -0
  9. pulumi_vsphere/get_content_library.py +4 -0
  10. pulumi_vsphere/get_custom_attribute.py +4 -0
  11. pulumi_vsphere/get_datacenter.py +4 -0
  12. pulumi_vsphere/get_datastore.py +4 -0
  13. pulumi_vsphere/get_datastore_cluster.py +4 -0
  14. pulumi_vsphere/get_distributed_virtual_switch.py +4 -0
  15. pulumi_vsphere/get_dynamic.py +4 -0
  16. pulumi_vsphere/get_folder.py +4 -0
  17. pulumi_vsphere/get_guest_os_customization.py +4 -0
  18. pulumi_vsphere/get_host.py +4 -0
  19. pulumi_vsphere/get_host_pci_device.py +34 -0
  20. pulumi_vsphere/get_host_thumbprint.py +4 -0
  21. pulumi_vsphere/get_license.py +4 -0
  22. pulumi_vsphere/get_network.py +4 -0
  23. pulumi_vsphere/get_ovf_vm_template.py +0 -168
  24. pulumi_vsphere/get_policy.py +4 -0
  25. pulumi_vsphere/get_resource_pool.py +10 -0
  26. pulumi_vsphere/get_role.py +4 -0
  27. pulumi_vsphere/get_tag.py +4 -0
  28. pulumi_vsphere/get_tag_category.py +4 -0
  29. pulumi_vsphere/get_vapp_container.py +4 -0
  30. pulumi_vsphere/get_virtual_machine.py +8 -0
  31. pulumi_vsphere/get_vmfs_disks.py +4 -0
  32. pulumi_vsphere/host.py +18 -0
  33. pulumi_vsphere/host_port_group.py +14 -0
  34. pulumi_vsphere/license.py +4 -0
  35. pulumi_vsphere/outputs.py +4 -0
  36. pulumi_vsphere/resource_pool.py +12 -12
  37. pulumi_vsphere/virtual_machine.py +7 -7
  38. pulumi_vsphere/virtual_machine_snapshot.py +4 -0
  39. pulumi_vsphere/vm_storage_policy.py +12 -0
  40. pulumi_vsphere/vnic.py +18 -0
  41. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710160860.dist-info}/METADATA +1 -1
  42. pulumi_vsphere-4.10.0a1710160860.dist-info/RECORD +80 -0
  43. pulumi_vsphere-4.10.0a1709368772.dist-info/RECORD +0 -80
  44. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710160860.dist-info}/WHEEL +0 -0
  45. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710160860.dist-info}/top_level.txt +0 -0
@@ -97,6 +97,7 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
97
97
  `DistributedPortGroup` resource that uses the first uplink as a
98
98
  primary uplink and the second uplink as a secondary.
99
99
 
100
+ <!--Start PulumiCodeChooser -->
100
101
  ```python
101
102
  import pulumi
102
103
  import pulumi_vsphere as vsphere
@@ -109,6 +110,7 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
109
110
  active_uplinks=[vds.uplinks[0]],
110
111
  standby_uplinks=[vds.uplinks[1]])
111
112
  ```
113
+ <!--End PulumiCodeChooser -->
112
114
 
113
115
 
114
116
  :param str datacenter_id: The managed object reference ID
@@ -151,6 +153,7 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
151
153
  `DistributedPortGroup` resource that uses the first uplink as a
152
154
  primary uplink and the second uplink as a secondary.
153
155
 
156
+ <!--Start PulumiCodeChooser -->
154
157
  ```python
155
158
  import pulumi
156
159
  import pulumi_vsphere as vsphere
@@ -163,6 +166,7 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
163
166
  active_uplinks=[vds.uplinks[0]],
164
167
  standby_uplinks=[vds.uplinks[1]])
165
168
  ```
169
+ <!--End PulumiCodeChooser -->
166
170
 
167
171
 
168
172
  :param str datacenter_id: The managed object reference ID
@@ -84,6 +84,7 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
84
84
 
85
85
  ## Example Usage
86
86
 
87
+ <!--Start PulumiCodeChooser -->
87
88
  ```python
88
89
  import pulumi
89
90
  import pulumi_vsphere as vsphere
@@ -100,6 +101,7 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
100
101
  name_regex="ubuntu",
101
102
  type="Datacenter")
102
103
  ```
104
+ <!--End PulumiCodeChooser -->
103
105
 
104
106
 
105
107
  :param Sequence[str] filters: A list of tag IDs that must be present on an object to
@@ -138,6 +140,7 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
138
140
 
139
141
  ## Example Usage
140
142
 
143
+ <!--Start PulumiCodeChooser -->
141
144
  ```python
142
145
  import pulumi
143
146
  import pulumi_vsphere as vsphere
@@ -154,6 +157,7 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
154
157
  name_regex="ubuntu",
155
158
  type="Datacenter")
156
159
  ```
160
+ <!--End PulumiCodeChooser -->
157
161
 
158
162
 
159
163
  :param Sequence[str] filters: A list of tag IDs that must be present on an object to
@@ -61,12 +61,14 @@ def get_folder(path: Optional[str] = None,
61
61
 
62
62
  ## Example Usage
63
63
 
64
+ <!--Start PulumiCodeChooser -->
64
65
  ```python
65
66
  import pulumi
66
67
  import pulumi_vsphere as vsphere
67
68
 
68
69
  folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
69
70
  ```
71
+ <!--End PulumiCodeChooser -->
70
72
 
71
73
 
72
74
  :param str path: The absolute path of the folder. For example, given a
@@ -94,12 +96,14 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
94
96
 
95
97
  ## Example Usage
96
98
 
99
+ <!--Start PulumiCodeChooser -->
97
100
  ```python
98
101
  import pulumi
99
102
  import pulumi_vsphere as vsphere
100
103
 
101
104
  folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
102
105
  ```
106
+ <!--End PulumiCodeChooser -->
103
107
 
104
108
 
105
109
  :param str path: The absolute path of the folder. For example, given a
@@ -124,12 +124,14 @@ def get_guest_os_customization(name: Optional[str] = None,
124
124
 
125
125
  ## Example Usage
126
126
 
127
+ <!--Start PulumiCodeChooser -->
127
128
  ```python
128
129
  import pulumi
129
130
  import pulumi_vsphere as vsphere
130
131
 
131
132
  gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
132
133
  ```
134
+ <!--End PulumiCodeChooser -->
133
135
 
134
136
 
135
137
  :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
@@ -160,12 +162,14 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
160
162
 
161
163
  ## Example Usage
162
164
 
165
+ <!--Start PulumiCodeChooser -->
163
166
  ```python
164
167
  import pulumi
165
168
  import pulumi_vsphere as vsphere
166
169
 
167
170
  gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
168
171
  ```
172
+ <!--End PulumiCodeChooser -->
169
173
 
170
174
 
171
175
  :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
@@ -85,6 +85,7 @@ def get_host(datacenter_id: Optional[str] = None,
85
85
 
86
86
  ## Example Usage
87
87
 
88
+ <!--Start PulumiCodeChooser -->
88
89
  ```python
89
90
  import pulumi
90
91
  import pulumi_vsphere as vsphere
@@ -93,6 +94,7 @@ def get_host(datacenter_id: Optional[str] = None,
93
94
  host = vsphere.get_host(name="esxi-01.example.com",
94
95
  datacenter_id=datacenter.id)
95
96
  ```
97
+ <!--End PulumiCodeChooser -->
96
98
 
97
99
 
98
100
  :param str datacenter_id: The managed object reference ID
@@ -127,6 +129,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
127
129
 
128
130
  ## Example Usage
129
131
 
132
+ <!--Start PulumiCodeChooser -->
130
133
  ```python
131
134
  import pulumi
132
135
  import pulumi_vsphere as vsphere
@@ -135,6 +138,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
135
138
  host = vsphere.get_host(name="esxi-01.example.com",
136
139
  datacenter_id=datacenter.id)
137
140
  ```
141
+ <!--End PulumiCodeChooser -->
138
142
 
139
143
 
140
144
  :param str datacenter_id: The managed object reference ID
@@ -103,8 +103,10 @@ def get_host_pci_device(class_id: Optional[str] = None,
103
103
  `VirtualMachine`'s `pci_device_id`.
104
104
 
105
105
  ## Example Usage
106
+
106
107
  ### With Vendor ID And Class ID
107
108
 
109
+ <!--Start PulumiCodeChooser -->
108
110
  ```python
109
111
  import pulumi
110
112
  import pulumi_vsphere as vsphere
@@ -116,8 +118,23 @@ def get_host_pci_device(class_id: Optional[str] = None,
116
118
  class_id="123",
117
119
  vendor_id="456")
118
120
  ```
121
+ <!--End PulumiCodeChooser -->
122
+
119
123
  ### With Name Regular Expression
120
124
 
125
+ <!--Start PulumiCodeChooser -->
126
+ ```python
127
+ import pulumi
128
+ import pulumi_vsphere as vsphere
129
+
130
+ datacenter = vsphere.get_datacenter(name="dc-01")
131
+ host = vsphere.get_host(name="esxi-01.example.com",
132
+ datacenter_id=datacenter.id)
133
+ dev = vsphere.get_host_pci_device(host_id=host.id,
134
+ name_regex="MMC")
135
+ ```
136
+ <!--End PulumiCodeChooser -->
137
+
121
138
 
122
139
  :param str class_id: The hexadecimal PCI device class ID
123
140
 
@@ -158,8 +175,10 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
158
175
  `VirtualMachine`'s `pci_device_id`.
159
176
 
160
177
  ## Example Usage
178
+
161
179
  ### With Vendor ID And Class ID
162
180
 
181
+ <!--Start PulumiCodeChooser -->
163
182
  ```python
164
183
  import pulumi
165
184
  import pulumi_vsphere as vsphere
@@ -171,8 +190,23 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
171
190
  class_id="123",
172
191
  vendor_id="456")
173
192
  ```
193
+ <!--End PulumiCodeChooser -->
194
+
174
195
  ### With Name Regular Expression
175
196
 
197
+ <!--Start PulumiCodeChooser -->
198
+ ```python
199
+ import pulumi
200
+ import pulumi_vsphere as vsphere
201
+
202
+ datacenter = vsphere.get_datacenter(name="dc-01")
203
+ host = vsphere.get_host(name="esxi-01.example.com",
204
+ datacenter_id=datacenter.id)
205
+ dev = vsphere.get_host_pci_device(host_id=host.id,
206
+ name_regex="MMC")
207
+ ```
208
+ <!--End PulumiCodeChooser -->
209
+
176
210
 
177
211
  :param str class_id: The hexadecimal PCI device class ID
178
212
 
@@ -83,12 +83,14 @@ def get_host_thumbprint(address: Optional[str] = None,
83
83
 
84
84
  ## Example Usage
85
85
 
86
+ <!--Start PulumiCodeChooser -->
86
87
  ```python
87
88
  import pulumi
88
89
  import pulumi_vsphere as vsphere
89
90
 
90
91
  thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
91
92
  ```
93
+ <!--End PulumiCodeChooser -->
92
94
 
93
95
 
94
96
  :param str address: The address of the ESXi host to retrieve the
@@ -124,12 +126,14 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
124
126
 
125
127
  ## Example Usage
126
128
 
129
+ <!--Start PulumiCodeChooser -->
127
130
  ```python
128
131
  import pulumi
129
132
  import pulumi_vsphere as vsphere
130
133
 
131
134
  thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
132
135
  ```
136
+ <!--End PulumiCodeChooser -->
133
137
 
134
138
 
135
139
  :param str address: The address of the ESXi host to retrieve the
@@ -118,12 +118,14 @@ def get_license(license_key: Optional[str] = None,
118
118
 
119
119
  ## Example Usage
120
120
 
121
+ <!--Start PulumiCodeChooser -->
121
122
  ```python
122
123
  import pulumi
123
124
  import pulumi_vsphere as vsphere
124
125
 
125
126
  license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
126
127
  ```
128
+ <!--End PulumiCodeChooser -->
127
129
 
128
130
 
129
131
  :param str license_key: The license key.
@@ -152,12 +154,14 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
152
154
 
153
155
  ## Example Usage
154
156
 
157
+ <!--Start PulumiCodeChooser -->
155
158
  ```python
156
159
  import pulumi
157
160
  import pulumi_vsphere as vsphere
158
161
 
159
162
  license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
160
163
  ```
164
+ <!--End PulumiCodeChooser -->
161
165
 
162
166
 
163
167
  :param str license_key: The license key.
@@ -99,6 +99,7 @@ def get_network(datacenter_id: Optional[str] = None,
99
99
 
100
100
  ## Example Usage
101
101
 
102
+ <!--Start PulumiCodeChooser -->
102
103
  ```python
103
104
  import pulumi
104
105
  import pulumi_vsphere as vsphere
@@ -107,6 +108,7 @@ def get_network(datacenter_id: Optional[str] = None,
107
108
  network = vsphere.get_network(name="VM Network",
108
109
  datacenter_id=datacenter.id)
109
110
  ```
111
+ <!--End PulumiCodeChooser -->
110
112
 
111
113
 
112
114
  :param str datacenter_id: The managed object reference ID
@@ -148,6 +150,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
148
150
 
149
151
  ## Example Usage
150
152
 
153
+ <!--Start PulumiCodeChooser -->
151
154
  ```python
152
155
  import pulumi
153
156
  import pulumi_vsphere as vsphere
@@ -156,6 +159,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
156
159
  network = vsphere.get_network(name="VM Network",
157
160
  datacenter_id=datacenter.id)
158
161
  ```
162
+ <!--End PulumiCodeChooser -->
159
163
 
160
164
 
161
165
  :param str datacenter_id: The managed object reference ID
@@ -385,90 +385,6 @@ def get_ovf_vm_template(allow_unverified_ssl_cert: Optional[bool] = None,
385
385
  vSphere and extract its hardware settings in a form that can be then used as
386
386
  inputs for a `VirtualMachine` resource.
387
387
 
388
- ## Remote OVF/OVA Source
389
-
390
- data "vsphere_ovf_vm_template" "ovfRemote" {
391
- name = "Nested-ESXi-7.0-Terraform-Deploy-1"
392
- disk_provisioning = "thin"
393
- resource_pool_id = data.vsphere_resource_pool.default.id
394
- datastore_id = data.vsphere_datastore.datastore.id
395
- host_system_id = data.vsphere_host.host.id
396
- remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova"
397
- ovf_network_map = {
398
- "VM Network" : data.vsphere_network.network.id
399
- }
400
- }
401
-
402
- ## Local OVF/OVA Source
403
-
404
- data "vsphere_ovf_vm_template" "ovfLocal" {
405
- name = "Nested-ESXi-7.0-Terraform-Deploy-2"
406
- disk_provisioning = "thin"
407
- resource_pool_id = data.vsphere_resource_pool.default.id
408
- datastore_id = data.vsphere_datastore.datastore.id
409
- host_system_id = data.vsphere_host.host.id
410
- local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova"
411
- ovf_network_map = {
412
- "VM Network" : data.vsphere_network.network.id
413
- }
414
- }
415
-
416
- ## Deployment of VM from Remote OVF
417
-
418
- resource "vsphere_virtual_machine" "vmFromRemoteOvf" {
419
- name = "Nested-ESXi-7.0-Terraform-Deploy-1"
420
- datacenter_id = data.vsphere_datacenter.datacenter.id
421
- datastore_id = data.vsphere_datastore.datastore.id
422
- host_system_id = data.vsphere_host.host.id
423
- resource_pool_id = data.vsphere_resource_pool.default.id
424
- num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus
425
- num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket
426
- memory = data.vsphere_ovf_vm_template.ovfRemote.memory
427
- guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id
428
- firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware
429
- scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type
430
- nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled
431
- dynamic "network_interface" {
432
- for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map
433
- content {
434
- network_id = network_interface.value
435
- }
436
- }
437
- wait_for_guest_net_timeout = 0
438
- wait_for_guest_ip_timeout = 0
439
-
440
- ovf_deploy {
441
- allow_unverified_ssl_cert = false
442
- remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url
443
- disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning
444
- ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map
445
- }
446
-
447
- vapp {
448
- properties = {
449
- "guestinfo.hostname" = "nested-esxi-01.example.com",
450
- "guestinfo.ipaddress" = "172.16.11.101",
451
- "guestinfo.netmask" = "255.255.255.0",
452
- "guestinfo.gateway" = "172.16.11.1",
453
- "guestinfo.dns" = "172.16.11.4",
454
- "guestinfo.domain" = "example.com",
455
- "guestinfo.ntp" = "ntp.example.com",
456
- "guestinfo.password" = "VMware1!",
457
- "guestinfo.ssh" = "True"
458
- }
459
- }
460
-
461
- lifecycle {
462
- ignore_changes = [
463
- annotation,
464
- disk[0].io_share_count,
465
- disk[1].io_share_count,
466
- disk[2].io_share_count,
467
- vapp[0].properties,
468
- ]
469
- }
470
- }
471
-
472
388
 
473
389
  :param bool allow_unverified_ssl_cert: Allow unverified SSL certificates
474
390
  when deploying OVF/OVA from a URL.
@@ -575,90 +491,6 @@ def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[
575
491
  vSphere and extract its hardware settings in a form that can be then used as
576
492
  inputs for a `VirtualMachine` resource.
577
493
 
578
- ## Remote OVF/OVA Source
579
-
580
- data "vsphere_ovf_vm_template" "ovfRemote" {
581
- name = "Nested-ESXi-7.0-Terraform-Deploy-1"
582
- disk_provisioning = "thin"
583
- resource_pool_id = data.vsphere_resource_pool.default.id
584
- datastore_id = data.vsphere_datastore.datastore.id
585
- host_system_id = data.vsphere_host.host.id
586
- remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova"
587
- ovf_network_map = {
588
- "VM Network" : data.vsphere_network.network.id
589
- }
590
- }
591
-
592
- ## Local OVF/OVA Source
593
-
594
- data "vsphere_ovf_vm_template" "ovfLocal" {
595
- name = "Nested-ESXi-7.0-Terraform-Deploy-2"
596
- disk_provisioning = "thin"
597
- resource_pool_id = data.vsphere_resource_pool.default.id
598
- datastore_id = data.vsphere_datastore.datastore.id
599
- host_system_id = data.vsphere_host.host.id
600
- local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova"
601
- ovf_network_map = {
602
- "VM Network" : data.vsphere_network.network.id
603
- }
604
- }
605
-
606
- ## Deployment of VM from Remote OVF
607
-
608
- resource "vsphere_virtual_machine" "vmFromRemoteOvf" {
609
- name = "Nested-ESXi-7.0-Terraform-Deploy-1"
610
- datacenter_id = data.vsphere_datacenter.datacenter.id
611
- datastore_id = data.vsphere_datastore.datastore.id
612
- host_system_id = data.vsphere_host.host.id
613
- resource_pool_id = data.vsphere_resource_pool.default.id
614
- num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus
615
- num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket
616
- memory = data.vsphere_ovf_vm_template.ovfRemote.memory
617
- guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id
618
- firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware
619
- scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type
620
- nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled
621
- dynamic "network_interface" {
622
- for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map
623
- content {
624
- network_id = network_interface.value
625
- }
626
- }
627
- wait_for_guest_net_timeout = 0
628
- wait_for_guest_ip_timeout = 0
629
-
630
- ovf_deploy {
631
- allow_unverified_ssl_cert = false
632
- remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url
633
- disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning
634
- ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map
635
- }
636
-
637
- vapp {
638
- properties = {
639
- "guestinfo.hostname" = "nested-esxi-01.example.com",
640
- "guestinfo.ipaddress" = "172.16.11.101",
641
- "guestinfo.netmask" = "255.255.255.0",
642
- "guestinfo.gateway" = "172.16.11.1",
643
- "guestinfo.dns" = "172.16.11.4",
644
- "guestinfo.domain" = "example.com",
645
- "guestinfo.ntp" = "ntp.example.com",
646
- "guestinfo.password" = "VMware1!",
647
- "guestinfo.ssh" = "True"
648
- }
649
- }
650
-
651
- lifecycle {
652
- ignore_changes = [
653
- annotation,
654
- disk[0].io_share_count,
655
- disk[1].io_share_count,
656
- disk[2].io_share_count,
657
- vapp[0].properties,
658
- ]
659
- }
660
- }
661
-
662
494
 
663
495
  :param bool allow_unverified_ssl_cert: Allow unverified SSL certificates
664
496
  when deploying OVF/OVA from a URL.
@@ -65,6 +65,7 @@ def get_policy(name: Optional[str] = None,
65
65
 
66
66
  ## Example Usage
67
67
 
68
+ <!--Start PulumiCodeChooser -->
68
69
  ```python
69
70
  import pulumi
70
71
  import pulumi_vsphere as vsphere
@@ -72,6 +73,7 @@ def get_policy(name: Optional[str] = None,
72
73
  prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
73
74
  dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
74
75
  ```
76
+ <!--End PulumiCodeChooser -->
75
77
 
76
78
 
77
79
  :param str name: The name of the storage policy.
@@ -99,6 +101,7 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
99
101
 
100
102
  ## Example Usage
101
103
 
104
+ <!--Start PulumiCodeChooser -->
102
105
  ```python
103
106
  import pulumi
104
107
  import pulumi_vsphere as vsphere
@@ -106,6 +109,7 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
106
109
  prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
107
110
  dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
108
111
  ```
112
+ <!--End PulumiCodeChooser -->
109
113
 
110
114
 
111
115
  :param str name: The name of the storage policy.
@@ -73,6 +73,7 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
+ <!--Start PulumiCodeChooser -->
76
77
  ```python
77
78
  import pulumi
78
79
  import pulumi_vsphere as vsphere
@@ -81,6 +82,8 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
81
82
  pool = vsphere.get_resource_pool(name="resource-pool-01",
82
83
  datacenter_id=datacenter.id)
83
84
  ```
85
+ <!--End PulumiCodeChooser -->
86
+
84
87
  ### Specifying the Root Resource Pool for a Standalone ESXi Host
85
88
 
86
89
  > **NOTE:** Returning the root resource pool for a cluster can be done
@@ -91,6 +94,7 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
91
94
  explicitly created. This resource pool is referred to as the
92
95
  _root resource pool_ and can be looked up by specifying the path.
93
96
 
97
+ <!--Start PulumiCodeChooser -->
94
98
  ```python
95
99
  import pulumi
96
100
  import pulumi_vsphere as vsphere
@@ -98,6 +102,7 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
98
102
  pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
99
103
  datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
100
104
  ```
105
+ <!--End PulumiCodeChooser -->
101
106
 
102
107
  For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
103
108
 
@@ -140,6 +145,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
140
145
 
141
146
  ## Example Usage
142
147
 
148
+ <!--Start PulumiCodeChooser -->
143
149
  ```python
144
150
  import pulumi
145
151
  import pulumi_vsphere as vsphere
@@ -148,6 +154,8 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
148
154
  pool = vsphere.get_resource_pool(name="resource-pool-01",
149
155
  datacenter_id=datacenter.id)
150
156
  ```
157
+ <!--End PulumiCodeChooser -->
158
+
151
159
  ### Specifying the Root Resource Pool for a Standalone ESXi Host
152
160
 
153
161
  > **NOTE:** Returning the root resource pool for a cluster can be done
@@ -158,6 +166,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
158
166
  explicitly created. This resource pool is referred to as the
159
167
  _root resource pool_ and can be looked up by specifying the path.
160
168
 
169
+ <!--Start PulumiCodeChooser -->
161
170
  ```python
162
171
  import pulumi
163
172
  import pulumi_vsphere as vsphere
@@ -165,6 +174,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
165
174
  pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
166
175
  datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
167
176
  ```
177
+ <!--End PulumiCodeChooser -->
168
178
 
169
179
  For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
170
180
 
@@ -100,12 +100,14 @@ def get_role(description: Optional[str] = None,
100
100
 
101
101
  ## Example Usage
102
102
 
103
+ <!--Start PulumiCodeChooser -->
103
104
  ```python
104
105
  import pulumi
105
106
  import pulumi_vsphere as vsphere
106
107
 
107
108
  terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
108
109
  ```
110
+ <!--End PulumiCodeChooser -->
109
111
 
110
112
 
111
113
  :param str description: The description of the role.
@@ -140,12 +142,14 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
140
142
 
141
143
  ## Example Usage
142
144
 
145
+ <!--Start PulumiCodeChooser -->
143
146
  ```python
144
147
  import pulumi
145
148
  import pulumi_vsphere as vsphere
146
149
 
147
150
  terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
148
151
  ```
152
+ <!--End PulumiCodeChooser -->
149
153
 
150
154
 
151
155
  :param str description: The description of the role.
pulumi_vsphere/get_tag.py CHANGED
@@ -86,6 +86,7 @@ def get_tag(category_id: Optional[str] = None,
86
86
 
87
87
  ## Example Usage
88
88
 
89
+ <!--Start PulumiCodeChooser -->
89
90
  ```python
90
91
  import pulumi
91
92
  import pulumi_vsphere as vsphere
@@ -94,6 +95,7 @@ def get_tag(category_id: Optional[str] = None,
94
95
  tag = vsphere.get_tag(name="example-tag",
95
96
  category_id=category.id)
96
97
  ```
98
+ <!--End PulumiCodeChooser -->
97
99
 
98
100
 
99
101
  :param str category_id: The ID of the tag category in which the tag is
@@ -129,6 +131,7 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
129
131
 
130
132
  ## Example Usage
131
133
 
134
+ <!--Start PulumiCodeChooser -->
132
135
  ```python
133
136
  import pulumi
134
137
  import pulumi_vsphere as vsphere
@@ -137,6 +140,7 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
137
140
  tag = vsphere.get_tag(name="example-tag",
138
141
  category_id=category.id)
139
142
  ```
143
+ <!--End PulumiCodeChooser -->
140
144
 
141
145
 
142
146
  :param str category_id: The ID of the tag category in which the tag is
@@ -94,12 +94,14 @@ def get_tag_category(name: Optional[str] = None,
94
94
 
95
95
  ## Example Usage
96
96
 
97
+ <!--Start PulumiCodeChooser -->
97
98
  ```python
98
99
  import pulumi
99
100
  import pulumi_vsphere as vsphere
100
101
 
101
102
  category = vsphere.get_tag_category(name="example-category")
102
103
  ```
104
+ <!--End PulumiCodeChooser -->
103
105
 
104
106
 
105
107
  :param str name: The name of the tag category.
@@ -132,12 +134,14 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
132
134
 
133
135
  ## Example Usage
134
136
 
137
+ <!--Start PulumiCodeChooser -->
135
138
  ```python
136
139
  import pulumi
137
140
  import pulumi_vsphere as vsphere
138
141
 
139
142
  category = vsphere.get_tag_category(name="example-category")
140
143
  ```
144
+ <!--End PulumiCodeChooser -->
141
145
 
142
146
 
143
147
  :param str name: The name of the tag category.