pulumi-vsphere 4.11.0a1723010624__py3-none-any.whl → 4.11.0a1723820289__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.
- pulumi_vsphere/compute_cluster.py +20 -20
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +14 -14
- pulumi_vsphere/content_library.py +10 -10
- pulumi_vsphere/distributed_port_group.py +5 -5
- pulumi_vsphere/distributed_virtual_switch.py +15 -15
- pulumi_vsphere/entity_permissions.py +5 -5
- pulumi_vsphere/get_datastore.py +5 -5
- pulumi_vsphere/get_datastore_stats.py +10 -10
- pulumi_vsphere/get_virtual_machine.py +2 -2
- pulumi_vsphere/guest_os_customization.py +27 -27
- pulumi_vsphere/host_port_group.py +2 -2
- pulumi_vsphere/offline_software_depot.py +2 -2
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/supervisor.py +86 -86
- pulumi_vsphere/virtual_disk.py +28 -14
- pulumi_vsphere/virtual_machine.py +30 -30
- pulumi_vsphere/vm_storage_policy.py +65 -65
- pulumi_vsphere/vnic.py +30 -30
- {pulumi_vsphere-4.11.0a1723010624.dist-info → pulumi_vsphere-4.11.0a1723820289.dist-info}/METADATA +1 -1
- {pulumi_vsphere-4.11.0a1723010624.dist-info → pulumi_vsphere-4.11.0a1723820289.dist-info}/RECORD +22 -22
- {pulumi_vsphere-4.11.0a1723010624.dist-info → pulumi_vsphere-4.11.0a1723820289.dist-info}/WHEEL +1 -1
- {pulumi_vsphere-4.11.0a1723010624.dist-info → pulumi_vsphere-4.11.0a1723820289.dist-info}/top_level.txt +0 -0
|
@@ -762,7 +762,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
762
762
|
sync_time_with_host_periodically: Optional[bool] = None,
|
|
763
763
|
tools_upgrade_policy: Optional[str] = None,
|
|
764
764
|
uuid: Optional[str] = None,
|
|
765
|
-
vapp: Optional[
|
|
765
|
+
vapp: Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']] = None,
|
|
766
766
|
vbs_enabled: Optional[bool] = None,
|
|
767
767
|
vvtd_enabled: Optional[bool] = None,
|
|
768
768
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVirtualMachineResult:
|
|
@@ -1016,7 +1016,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1016
1016
|
sync_time_with_host_periodically: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
1017
1017
|
tools_upgrade_policy: Optional[pulumi.Input[Optional[str]]] = None,
|
|
1018
1018
|
uuid: Optional[pulumi.Input[Optional[str]]] = None,
|
|
1019
|
-
vapp: Optional[pulumi.Input[Optional[
|
|
1019
|
+
vapp: Optional[pulumi.Input[Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']]]] = None,
|
|
1020
1020
|
vbs_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
1021
1021
|
vvtd_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
1022
1022
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVirtualMachineResult]:
|
|
@@ -194,7 +194,7 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
194
194
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
195
195
|
description: Optional[pulumi.Input[str]] = None,
|
|
196
196
|
name: Optional[pulumi.Input[str]] = None,
|
|
197
|
-
spec: Optional[pulumi.Input[
|
|
197
|
+
spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
|
|
198
198
|
type: Optional[pulumi.Input[str]] = None,
|
|
199
199
|
__props__=None):
|
|
200
200
|
"""
|
|
@@ -211,27 +211,27 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
211
211
|
windows = vsphere.GuestOsCustomization("windows",
|
|
212
212
|
name="windows",
|
|
213
213
|
type="Windows",
|
|
214
|
-
spec=
|
|
215
|
-
windows_options
|
|
216
|
-
run_once_command_lists
|
|
214
|
+
spec={
|
|
215
|
+
"windows_options": {
|
|
216
|
+
"run_once_command_lists": [
|
|
217
217
|
"command-1",
|
|
218
218
|
"command-2",
|
|
219
219
|
],
|
|
220
|
-
computer_name
|
|
221
|
-
auto_logon
|
|
222
|
-
auto_logon_count
|
|
223
|
-
admin_password
|
|
224
|
-
time_zone
|
|
225
|
-
workgroup
|
|
226
|
-
|
|
227
|
-
)
|
|
220
|
+
"computer_name": "windows",
|
|
221
|
+
"auto_logon": False,
|
|
222
|
+
"auto_logon_count": 0,
|
|
223
|
+
"admin_password": "VMware1!",
|
|
224
|
+
"time_zone": 4,
|
|
225
|
+
"workgroup": "workgroup",
|
|
226
|
+
},
|
|
227
|
+
})
|
|
228
228
|
```
|
|
229
229
|
|
|
230
230
|
:param str resource_name: The name of the resource.
|
|
231
231
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
232
232
|
:param pulumi.Input[str] description: The description for the customization specification.
|
|
233
233
|
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
234
|
-
:param pulumi.Input[
|
|
234
|
+
:param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
235
235
|
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
236
236
|
"""
|
|
237
237
|
...
|
|
@@ -254,20 +254,20 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
254
254
|
windows = vsphere.GuestOsCustomization("windows",
|
|
255
255
|
name="windows",
|
|
256
256
|
type="Windows",
|
|
257
|
-
spec=
|
|
258
|
-
windows_options
|
|
259
|
-
run_once_command_lists
|
|
257
|
+
spec={
|
|
258
|
+
"windows_options": {
|
|
259
|
+
"run_once_command_lists": [
|
|
260
260
|
"command-1",
|
|
261
261
|
"command-2",
|
|
262
262
|
],
|
|
263
|
-
computer_name
|
|
264
|
-
auto_logon
|
|
265
|
-
auto_logon_count
|
|
266
|
-
admin_password
|
|
267
|
-
time_zone
|
|
268
|
-
workgroup
|
|
269
|
-
|
|
270
|
-
)
|
|
263
|
+
"computer_name": "windows",
|
|
264
|
+
"auto_logon": False,
|
|
265
|
+
"auto_logon_count": 0,
|
|
266
|
+
"admin_password": "VMware1!",
|
|
267
|
+
"time_zone": 4,
|
|
268
|
+
"workgroup": "workgroup",
|
|
269
|
+
},
|
|
270
|
+
})
|
|
271
271
|
```
|
|
272
272
|
|
|
273
273
|
:param str resource_name: The name of the resource.
|
|
@@ -287,7 +287,7 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
287
287
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
288
288
|
description: Optional[pulumi.Input[str]] = None,
|
|
289
289
|
name: Optional[pulumi.Input[str]] = None,
|
|
290
|
-
spec: Optional[pulumi.Input[
|
|
290
|
+
spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
|
|
291
291
|
type: Optional[pulumi.Input[str]] = None,
|
|
292
292
|
__props__=None):
|
|
293
293
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -322,7 +322,7 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
322
322
|
description: Optional[pulumi.Input[str]] = None,
|
|
323
323
|
last_update_time: Optional[pulumi.Input[str]] = None,
|
|
324
324
|
name: Optional[pulumi.Input[str]] = None,
|
|
325
|
-
spec: Optional[pulumi.Input[
|
|
325
|
+
spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
|
|
326
326
|
type: Optional[pulumi.Input[str]] = None) -> 'GuestOsCustomization':
|
|
327
327
|
"""
|
|
328
328
|
Get an existing GuestOsCustomization resource's state with the given name, id, and optional extra
|
|
@@ -335,7 +335,7 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
335
335
|
:param pulumi.Input[str] description: The description for the customization specification.
|
|
336
336
|
:param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
|
|
337
337
|
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
338
|
-
:param pulumi.Input[
|
|
338
|
+
:param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
339
339
|
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
340
340
|
"""
|
|
341
341
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -953,7 +953,7 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
953
953
|
key: Optional[pulumi.Input[str]] = None,
|
|
954
954
|
name: Optional[pulumi.Input[str]] = None,
|
|
955
955
|
notify_switches: Optional[pulumi.Input[bool]] = None,
|
|
956
|
-
ports: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
956
|
+
ports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostPortGroupPortArgs', 'HostPortGroupPortArgsDict']]]]] = None,
|
|
957
957
|
shaping_average_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
958
958
|
shaping_burst_size: Optional[pulumi.Input[int]] = None,
|
|
959
959
|
shaping_enabled: Optional[pulumi.Input[bool]] = None,
|
|
@@ -986,7 +986,7 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
986
986
|
:param pulumi.Input[str] name: The name of the port group. Forces a new resource if
|
|
987
987
|
changed.
|
|
988
988
|
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
989
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
989
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['HostPortGroupPortArgs', 'HostPortGroupPortArgsDict']]]] ports: A list of ports that currently exist and are used on this port group.
|
|
990
990
|
:param pulumi.Input[int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
991
991
|
:param pulumi.Input[int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
992
992
|
:param pulumi.Input[bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
@@ -142,7 +142,7 @@ class OfflineSoftwareDepot(pulumi.CustomResource):
|
|
|
142
142
|
def get(resource_name: str,
|
|
143
143
|
id: pulumi.Input[str],
|
|
144
144
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
145
|
-
components: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
145
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OfflineSoftwareDepotComponentArgs', 'OfflineSoftwareDepotComponentArgsDict']]]]] = None,
|
|
146
146
|
location: Optional[pulumi.Input[str]] = None) -> 'OfflineSoftwareDepot':
|
|
147
147
|
"""
|
|
148
148
|
Get an existing OfflineSoftwareDepot resource's state with the given name, id, and optional extra
|
|
@@ -151,7 +151,7 @@ class OfflineSoftwareDepot(pulumi.CustomResource):
|
|
|
151
151
|
:param str resource_name: The unique name of the resulting resource.
|
|
152
152
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
153
153
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
154
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
154
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OfflineSoftwareDepotComponentArgs', 'OfflineSoftwareDepotComponentArgsDict']]]] components: The list of custom components in the depot.
|
|
155
155
|
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
156
156
|
"""
|
|
157
157
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
pulumi_vsphere/supervisor.py
CHANGED
|
@@ -524,14 +524,14 @@ class Supervisor(pulumi.CustomResource):
|
|
|
524
524
|
content_library: Optional[pulumi.Input[str]] = None,
|
|
525
525
|
dvs_uuid: Optional[pulumi.Input[str]] = None,
|
|
526
526
|
edge_cluster: Optional[pulumi.Input[str]] = None,
|
|
527
|
-
egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
528
|
-
ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
527
|
+
egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]]] = None,
|
|
528
|
+
ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]]] = None,
|
|
529
529
|
main_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
530
|
-
management_network: Optional[pulumi.Input[
|
|
531
|
-
namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
532
|
-
pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
530
|
+
management_network: Optional[pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']]] = None,
|
|
531
|
+
namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]]] = None,
|
|
532
|
+
pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]]] = None,
|
|
533
533
|
search_domains: Optional[pulumi.Input[str]] = None,
|
|
534
|
-
service_cidr: Optional[pulumi.Input[
|
|
534
|
+
service_cidr: Optional[pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']]] = None,
|
|
535
535
|
sizing_hint: Optional[pulumi.Input[str]] = None,
|
|
536
536
|
storage_policy: Optional[pulumi.Input[str]] = None,
|
|
537
537
|
worker_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -562,35 +562,35 @@ class Supervisor(pulumi.CustomResource):
|
|
|
562
562
|
edge_cluster="<edge_cluster_id>",
|
|
563
563
|
dvs_uuid="<distributed_switch_uuid>",
|
|
564
564
|
sizing_hint="MEDIUM",
|
|
565
|
-
management_network=
|
|
566
|
-
network
|
|
567
|
-
subnet_mask
|
|
568
|
-
starting_address
|
|
569
|
-
gateway
|
|
570
|
-
address_count
|
|
571
|
-
|
|
572
|
-
ingress_cidrs=[
|
|
573
|
-
address
|
|
574
|
-
prefix
|
|
575
|
-
|
|
576
|
-
egress_cidrs=[
|
|
577
|
-
address
|
|
578
|
-
prefix
|
|
579
|
-
|
|
580
|
-
pod_cidrs=[
|
|
581
|
-
address
|
|
582
|
-
prefix
|
|
583
|
-
|
|
584
|
-
service_cidr=
|
|
585
|
-
address
|
|
586
|
-
prefix
|
|
587
|
-
|
|
565
|
+
management_network={
|
|
566
|
+
"network": "<portgroup_id>",
|
|
567
|
+
"subnet_mask": "255.255.255.0",
|
|
568
|
+
"starting_address": "10.0.0.150",
|
|
569
|
+
"gateway": "10.0.0.250",
|
|
570
|
+
"address_count": 5,
|
|
571
|
+
},
|
|
572
|
+
ingress_cidrs=[{
|
|
573
|
+
"address": "10.10.10.0",
|
|
574
|
+
"prefix": 24,
|
|
575
|
+
}],
|
|
576
|
+
egress_cidrs=[{
|
|
577
|
+
"address": "10.10.11.0",
|
|
578
|
+
"prefix": 24,
|
|
579
|
+
}],
|
|
580
|
+
pod_cidrs=[{
|
|
581
|
+
"address": "10.244.10.0",
|
|
582
|
+
"prefix": 23,
|
|
583
|
+
}],
|
|
584
|
+
service_cidr={
|
|
585
|
+
"address": "10.10.12.0",
|
|
586
|
+
"prefix": 24,
|
|
587
|
+
},
|
|
588
588
|
search_domains="vsphere.local",
|
|
589
|
-
namespaces=[
|
|
590
|
-
name
|
|
591
|
-
content_libraries
|
|
592
|
-
vm_classes
|
|
593
|
-
|
|
589
|
+
namespaces=[{
|
|
590
|
+
"name": "custom-namespace",
|
|
591
|
+
"content_libraries": [],
|
|
592
|
+
"vm_classes": [vm_class.id],
|
|
593
|
+
}])
|
|
594
594
|
```
|
|
595
595
|
|
|
596
596
|
:param str resource_name: The name of the resource.
|
|
@@ -599,19 +599,19 @@ class Supervisor(pulumi.CustomResource):
|
|
|
599
599
|
:param pulumi.Input[str] content_library: The identifier of the subscribed content library.
|
|
600
600
|
:param pulumi.Input[str] dvs_uuid: The UUID of the distributed switch.
|
|
601
601
|
:param pulumi.Input[str] edge_cluster: The identifier of the NSX Edge Cluster.
|
|
602
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
603
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
602
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]] egress_cidrs: CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
|
|
603
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]] ingress_cidrs: CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
|
|
604
604
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] main_dns: The list of addresses of the primary DNS servers.
|
|
605
|
-
:param pulumi.Input[
|
|
605
|
+
:param pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']] management_network: The configuration for the management network which the control plane VMs will be connected to.
|
|
606
606
|
* * `network` - ID of the network. (e.g. a distributed port group).
|
|
607
607
|
* * `starting_address` - Starting address of the management network range.
|
|
608
608
|
* * `subnet_mask` - Subnet mask.
|
|
609
609
|
* * `gateway` - Gateway IP address.
|
|
610
610
|
* * `address_count` - Number of addresses to allocate. Starts from `starting_address`
|
|
611
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
612
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
611
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]] namespaces: The list of namespaces to create in the Supervisor cluster
|
|
612
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]] pod_cidrs: CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
|
|
613
613
|
:param pulumi.Input[str] search_domains: List of DNS search domains.
|
|
614
|
-
:param pulumi.Input[
|
|
614
|
+
:param pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']] service_cidr: CIDR block from which Kubernetes allocates service cluster IP addresses.
|
|
615
615
|
:param pulumi.Input[str] sizing_hint: The size of the Kubernetes API server.
|
|
616
616
|
:param pulumi.Input[str] storage_policy: The name of the storage policy.
|
|
617
617
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] worker_dns: The list of addresses of the DNS servers to use for the worker nodes.
|
|
@@ -648,35 +648,35 @@ class Supervisor(pulumi.CustomResource):
|
|
|
648
648
|
edge_cluster="<edge_cluster_id>",
|
|
649
649
|
dvs_uuid="<distributed_switch_uuid>",
|
|
650
650
|
sizing_hint="MEDIUM",
|
|
651
|
-
management_network=
|
|
652
|
-
network
|
|
653
|
-
subnet_mask
|
|
654
|
-
starting_address
|
|
655
|
-
gateway
|
|
656
|
-
address_count
|
|
657
|
-
|
|
658
|
-
ingress_cidrs=[
|
|
659
|
-
address
|
|
660
|
-
prefix
|
|
661
|
-
|
|
662
|
-
egress_cidrs=[
|
|
663
|
-
address
|
|
664
|
-
prefix
|
|
665
|
-
|
|
666
|
-
pod_cidrs=[
|
|
667
|
-
address
|
|
668
|
-
prefix
|
|
669
|
-
|
|
670
|
-
service_cidr=
|
|
671
|
-
address
|
|
672
|
-
prefix
|
|
673
|
-
|
|
651
|
+
management_network={
|
|
652
|
+
"network": "<portgroup_id>",
|
|
653
|
+
"subnet_mask": "255.255.255.0",
|
|
654
|
+
"starting_address": "10.0.0.150",
|
|
655
|
+
"gateway": "10.0.0.250",
|
|
656
|
+
"address_count": 5,
|
|
657
|
+
},
|
|
658
|
+
ingress_cidrs=[{
|
|
659
|
+
"address": "10.10.10.0",
|
|
660
|
+
"prefix": 24,
|
|
661
|
+
}],
|
|
662
|
+
egress_cidrs=[{
|
|
663
|
+
"address": "10.10.11.0",
|
|
664
|
+
"prefix": 24,
|
|
665
|
+
}],
|
|
666
|
+
pod_cidrs=[{
|
|
667
|
+
"address": "10.244.10.0",
|
|
668
|
+
"prefix": 23,
|
|
669
|
+
}],
|
|
670
|
+
service_cidr={
|
|
671
|
+
"address": "10.10.12.0",
|
|
672
|
+
"prefix": 24,
|
|
673
|
+
},
|
|
674
674
|
search_domains="vsphere.local",
|
|
675
|
-
namespaces=[
|
|
676
|
-
name
|
|
677
|
-
content_libraries
|
|
678
|
-
vm_classes
|
|
679
|
-
|
|
675
|
+
namespaces=[{
|
|
676
|
+
"name": "custom-namespace",
|
|
677
|
+
"content_libraries": [],
|
|
678
|
+
"vm_classes": [vm_class.id],
|
|
679
|
+
}])
|
|
680
680
|
```
|
|
681
681
|
|
|
682
682
|
:param str resource_name: The name of the resource.
|
|
@@ -698,14 +698,14 @@ class Supervisor(pulumi.CustomResource):
|
|
|
698
698
|
content_library: Optional[pulumi.Input[str]] = None,
|
|
699
699
|
dvs_uuid: Optional[pulumi.Input[str]] = None,
|
|
700
700
|
edge_cluster: Optional[pulumi.Input[str]] = None,
|
|
701
|
-
egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
702
|
-
ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
701
|
+
egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]]] = None,
|
|
702
|
+
ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]]] = None,
|
|
703
703
|
main_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
704
|
-
management_network: Optional[pulumi.Input[
|
|
705
|
-
namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
706
|
-
pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
704
|
+
management_network: Optional[pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']]] = None,
|
|
705
|
+
namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]]] = None,
|
|
706
|
+
pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]]] = None,
|
|
707
707
|
search_domains: Optional[pulumi.Input[str]] = None,
|
|
708
|
-
service_cidr: Optional[pulumi.Input[
|
|
708
|
+
service_cidr: Optional[pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']]] = None,
|
|
709
709
|
sizing_hint: Optional[pulumi.Input[str]] = None,
|
|
710
710
|
storage_policy: Optional[pulumi.Input[str]] = None,
|
|
711
711
|
worker_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -775,14 +775,14 @@ class Supervisor(pulumi.CustomResource):
|
|
|
775
775
|
content_library: Optional[pulumi.Input[str]] = None,
|
|
776
776
|
dvs_uuid: Optional[pulumi.Input[str]] = None,
|
|
777
777
|
edge_cluster: Optional[pulumi.Input[str]] = None,
|
|
778
|
-
egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
779
|
-
ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
778
|
+
egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]]] = None,
|
|
779
|
+
ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]]] = None,
|
|
780
780
|
main_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
781
|
-
management_network: Optional[pulumi.Input[
|
|
782
|
-
namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
783
|
-
pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
781
|
+
management_network: Optional[pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']]] = None,
|
|
782
|
+
namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]]] = None,
|
|
783
|
+
pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]]] = None,
|
|
784
784
|
search_domains: Optional[pulumi.Input[str]] = None,
|
|
785
|
-
service_cidr: Optional[pulumi.Input[
|
|
785
|
+
service_cidr: Optional[pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']]] = None,
|
|
786
786
|
sizing_hint: Optional[pulumi.Input[str]] = None,
|
|
787
787
|
storage_policy: Optional[pulumi.Input[str]] = None,
|
|
788
788
|
worker_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'Supervisor':
|
|
@@ -797,19 +797,19 @@ class Supervisor(pulumi.CustomResource):
|
|
|
797
797
|
:param pulumi.Input[str] content_library: The identifier of the subscribed content library.
|
|
798
798
|
:param pulumi.Input[str] dvs_uuid: The UUID of the distributed switch.
|
|
799
799
|
:param pulumi.Input[str] edge_cluster: The identifier of the NSX Edge Cluster.
|
|
800
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
801
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
800
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]] egress_cidrs: CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
|
|
801
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]] ingress_cidrs: CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
|
|
802
802
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] main_dns: The list of addresses of the primary DNS servers.
|
|
803
|
-
:param pulumi.Input[
|
|
803
|
+
:param pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']] management_network: The configuration for the management network which the control plane VMs will be connected to.
|
|
804
804
|
* * `network` - ID of the network. (e.g. a distributed port group).
|
|
805
805
|
* * `starting_address` - Starting address of the management network range.
|
|
806
806
|
* * `subnet_mask` - Subnet mask.
|
|
807
807
|
* * `gateway` - Gateway IP address.
|
|
808
808
|
* * `address_count` - Number of addresses to allocate. Starts from `starting_address`
|
|
809
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
810
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
809
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]] namespaces: The list of namespaces to create in the Supervisor cluster
|
|
810
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]] pod_cidrs: CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
|
|
811
811
|
:param pulumi.Input[str] search_domains: List of DNS search domains.
|
|
812
|
-
:param pulumi.Input[
|
|
812
|
+
:param pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']] service_cidr: CIDR block from which Kubernetes allocates service cluster IP addresses.
|
|
813
813
|
:param pulumi.Input[str] sizing_hint: The size of the Kubernetes API server.
|
|
814
814
|
:param pulumi.Input[str] storage_policy: The name of the storage policy.
|
|
815
815
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] worker_dns: The list of addresses of the DNS servers to use for the worker nodes.
|
pulumi_vsphere/virtual_disk.py
CHANGED
|
@@ -25,7 +25,9 @@ class VirtualDiskArgs:
|
|
|
25
25
|
The set of arguments for constructing a VirtualDisk resource.
|
|
26
26
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
27
27
|
disk.
|
|
28
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
28
|
+
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
29
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
30
|
+
created.
|
|
29
31
|
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
30
32
|
be created. This needs to end in `.vmdk`.
|
|
31
33
|
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
@@ -45,7 +47,7 @@ class VirtualDiskArgs:
|
|
|
45
47
|
`create_directories` is enabled will not be deleted when the resource is
|
|
46
48
|
destroyed.
|
|
47
49
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
48
|
-
disk. Can be omitted when
|
|
50
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
49
51
|
your infrastructure.
|
|
50
52
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
51
53
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -86,7 +88,9 @@ class VirtualDiskArgs:
|
|
|
86
88
|
@pulumi.getter
|
|
87
89
|
def size(self) -> pulumi.Input[int]:
|
|
88
90
|
"""
|
|
89
|
-
Size of the disk (in GB).
|
|
91
|
+
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
92
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
93
|
+
created.
|
|
90
94
|
"""
|
|
91
95
|
return pulumi.get(self, "size")
|
|
92
96
|
|
|
@@ -151,7 +155,7 @@ class VirtualDiskArgs:
|
|
|
151
155
|
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
152
156
|
"""
|
|
153
157
|
The name of the datacenter in which to create the
|
|
154
|
-
disk. Can be omitted when
|
|
158
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
155
159
|
your infrastructure.
|
|
156
160
|
"""
|
|
157
161
|
return pulumi.get(self, "datacenter")
|
|
@@ -207,11 +211,13 @@ class _VirtualDiskState:
|
|
|
207
211
|
`create_directories` is enabled will not be deleted when the resource is
|
|
208
212
|
destroyed.
|
|
209
213
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
210
|
-
disk. Can be omitted when
|
|
214
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
211
215
|
your infrastructure.
|
|
212
216
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
213
217
|
disk.
|
|
214
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
218
|
+
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
219
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
220
|
+
created.
|
|
215
221
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
216
222
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
217
223
|
information on what each kind of disk provisioning policy means, click
|
|
@@ -283,7 +289,7 @@ class _VirtualDiskState:
|
|
|
283
289
|
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
284
290
|
"""
|
|
285
291
|
The name of the datacenter in which to create the
|
|
286
|
-
disk. Can be omitted when
|
|
292
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
287
293
|
your infrastructure.
|
|
288
294
|
"""
|
|
289
295
|
return pulumi.get(self, "datacenter")
|
|
@@ -309,7 +315,9 @@ class _VirtualDiskState:
|
|
|
309
315
|
@pulumi.getter
|
|
310
316
|
def size(self) -> Optional[pulumi.Input[int]]:
|
|
311
317
|
"""
|
|
312
|
-
Size of the disk (in GB).
|
|
318
|
+
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
319
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
320
|
+
created.
|
|
313
321
|
"""
|
|
314
322
|
return pulumi.get(self, "size")
|
|
315
323
|
|
|
@@ -382,11 +390,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
382
390
|
`create_directories` is enabled will not be deleted when the resource is
|
|
383
391
|
destroyed.
|
|
384
392
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
385
|
-
disk. Can be omitted when
|
|
393
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
386
394
|
your infrastructure.
|
|
387
395
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
388
396
|
disk.
|
|
389
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
397
|
+
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
398
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
399
|
+
created.
|
|
390
400
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
391
401
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
392
402
|
information on what each kind of disk provisioning policy means, click
|
|
@@ -489,11 +499,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
489
499
|
`create_directories` is enabled will not be deleted when the resource is
|
|
490
500
|
destroyed.
|
|
491
501
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
492
|
-
disk. Can be omitted when
|
|
502
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
493
503
|
your infrastructure.
|
|
494
504
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
495
505
|
disk.
|
|
496
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
506
|
+
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
507
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
508
|
+
created.
|
|
497
509
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
498
510
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
499
511
|
information on what each kind of disk provisioning policy means, click
|
|
@@ -552,7 +564,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
552
564
|
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
553
565
|
"""
|
|
554
566
|
The name of the datacenter in which to create the
|
|
555
|
-
disk. Can be omitted when
|
|
567
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
556
568
|
your infrastructure.
|
|
557
569
|
"""
|
|
558
570
|
return pulumi.get(self, "datacenter")
|
|
@@ -570,7 +582,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
570
582
|
@pulumi.getter
|
|
571
583
|
def size(self) -> pulumi.Output[int]:
|
|
572
584
|
"""
|
|
573
|
-
Size of the disk (in GB).
|
|
585
|
+
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
586
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
587
|
+
created.
|
|
574
588
|
"""
|
|
575
589
|
return pulumi.get(self, "size")
|
|
576
590
|
|