pulumi-vsphere 4.16.0a1753339697__py3-none-any.whl → 4.16.0a1753512455__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/__init__.py +1 -1
- pulumi_vsphere/_inputs.py +1171 -1172
- pulumi_vsphere/compute_cluster.py +1127 -1128
- pulumi_vsphere/compute_cluster_host_group.py +52 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +86 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +86 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +103 -104
- pulumi_vsphere/compute_cluster_vm_group.py +52 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +120 -121
- pulumi_vsphere/config/__init__.py +1 -1
- pulumi_vsphere/config/__init__.pyi +1 -2
- pulumi_vsphere/config/vars.py +14 -15
- pulumi_vsphere/content_library.py +58 -59
- pulumi_vsphere/content_library_item.py +103 -104
- pulumi_vsphere/custom_attribute.py +35 -36
- pulumi_vsphere/datacenter.py +78 -79
- pulumi_vsphere/datastore_cluster.py +426 -427
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +86 -87
- pulumi_vsphere/distributed_port_group.py +787 -788
- pulumi_vsphere/distributed_virtual_switch.py +1566 -1567
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +69 -70
- pulumi_vsphere/dpm_host_override.py +69 -70
- pulumi_vsphere/drs_vm_override.py +69 -70
- pulumi_vsphere/entity_permissions.py +38 -39
- pulumi_vsphere/file.py +120 -121
- pulumi_vsphere/folder.py +86 -87
- pulumi_vsphere/get_compute_cluster.py +17 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +17 -18
- pulumi_vsphere/get_content_library.py +9 -10
- pulumi_vsphere/get_content_library_item.py +21 -22
- pulumi_vsphere/get_custom_attribute.py +11 -12
- pulumi_vsphere/get_datacenter.py +11 -12
- pulumi_vsphere/get_datastore.py +21 -22
- pulumi_vsphere/get_datastore_cluster.py +17 -18
- pulumi_vsphere/get_datastore_stats.py +21 -22
- pulumi_vsphere/get_distributed_virtual_switch.py +17 -18
- pulumi_vsphere/get_dynamic.py +21 -22
- pulumi_vsphere/get_folder.py +9 -10
- pulumi_vsphere/get_guest_os_customization.py +18 -19
- pulumi_vsphere/get_host.py +17 -18
- pulumi_vsphere/get_host_base_images.py +5 -6
- pulumi_vsphere/get_host_pci_device.py +29 -30
- pulumi_vsphere/get_host_thumbprint.py +21 -22
- pulumi_vsphere/get_host_vgpu_profile.py +16 -17
- pulumi_vsphere/get_license.py +19 -20
- pulumi_vsphere/get_network.py +42 -43
- pulumi_vsphere/get_ovf_vm_template.py +121 -122
- pulumi_vsphere/get_policy.py +9 -10
- pulumi_vsphere/get_resource_pool.py +21 -22
- pulumi_vsphere/get_role.py +25 -26
- pulumi_vsphere/get_tag.py +17 -18
- pulumi_vsphere/get_tag_category.py +15 -16
- pulumi_vsphere/get_vapp_container.py +15 -16
- pulumi_vsphere/get_virtual_machine.py +272 -273
- pulumi_vsphere/get_vmfs_disks.py +23 -24
- pulumi_vsphere/guest_os_customization.py +73 -74
- pulumi_vsphere/ha_vm_override.py +256 -257
- pulumi_vsphere/host.py +242 -243
- pulumi_vsphere/host_port_group.py +310 -311
- pulumi_vsphere/host_virtual_switch.py +358 -359
- pulumi_vsphere/license.py +71 -72
- pulumi_vsphere/nas_datastore.py +260 -261
- pulumi_vsphere/offline_software_depot.py +20 -21
- pulumi_vsphere/outputs.py +981 -982
- pulumi_vsphere/provider.py +120 -121
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +256 -257
- pulumi_vsphere/role.py +44 -45
- pulumi_vsphere/storage_drs_vm_override.py +86 -87
- pulumi_vsphere/supervisor.py +206 -207
- pulumi_vsphere/tag.py +52 -53
- pulumi_vsphere/tag_category.py +69 -70
- pulumi_vsphere/vapp_container.py +256 -257
- pulumi_vsphere/vapp_entity.py +171 -172
- pulumi_vsphere/virtual_disk.py +120 -121
- pulumi_vsphere/virtual_machine.py +1293 -1294
- pulumi_vsphere/virtual_machine_class.py +103 -104
- pulumi_vsphere/virtual_machine_snapshot.py +120 -121
- pulumi_vsphere/vm_storage_policy.py +38 -39
- pulumi_vsphere/vmfs_datastore.py +183 -184
- pulumi_vsphere/vnic.py +143 -144
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753512455.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.16.0a1753512455.dist-info/RECORD +87 -0
- pulumi_vsphere-4.16.0a1753339697.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753512455.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753512455.dist-info}/top_level.txt +0 -0
pulumi_vsphere/vnic.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -22,28 +21,28 @@ __all__ = ['VnicArgs', 'Vnic']
|
|
|
22
21
|
@pulumi.input_type
|
|
23
22
|
class VnicArgs:
|
|
24
23
|
def __init__(__self__, *,
|
|
25
|
-
host: pulumi.Input[
|
|
26
|
-
distributed_port_group: Optional[pulumi.Input[
|
|
27
|
-
distributed_switch_port: Optional[pulumi.Input[
|
|
24
|
+
host: pulumi.Input[_builtins.str],
|
|
25
|
+
distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
27
|
ipv4: Optional[pulumi.Input['VnicIpv4Args']] = None,
|
|
29
28
|
ipv6: Optional[pulumi.Input['VnicIpv6Args']] = None,
|
|
30
|
-
mac: Optional[pulumi.Input[
|
|
31
|
-
mtu: Optional[pulumi.Input[
|
|
32
|
-
netstack: Optional[pulumi.Input[
|
|
33
|
-
portgroup: Optional[pulumi.Input[
|
|
34
|
-
services: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
29
|
+
mac: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
mtu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
31
|
+
netstack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
portgroup: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
35
34
|
"""
|
|
36
35
|
The set of arguments for constructing a Vnic resource.
|
|
37
|
-
:param pulumi.Input[
|
|
38
|
-
:param pulumi.Input[
|
|
39
|
-
:param pulumi.Input[
|
|
36
|
+
:param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
|
|
37
|
+
:param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
|
|
38
|
+
:param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
40
39
|
:param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
|
|
41
40
|
:param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
|
|
42
|
-
:param pulumi.Input[
|
|
43
|
-
:param pulumi.Input[
|
|
44
|
-
:param pulumi.Input[
|
|
45
|
-
:param pulumi.Input[
|
|
46
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
41
|
+
:param pulumi.Input[_builtins.str] mac: MAC address of the interface.
|
|
42
|
+
:param pulumi.Input[_builtins.int] mtu: MTU of the interface.
|
|
43
|
+
:param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
|
|
44
|
+
:param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
|
|
45
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
|
|
47
46
|
"""
|
|
48
47
|
pulumi.set(__self__, "host", host)
|
|
49
48
|
if distributed_port_group is not None:
|
|
@@ -65,43 +64,43 @@ class VnicArgs:
|
|
|
65
64
|
if services is not None:
|
|
66
65
|
pulumi.set(__self__, "services", services)
|
|
67
66
|
|
|
68
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
69
68
|
@pulumi.getter
|
|
70
|
-
def host(self) -> pulumi.Input[
|
|
69
|
+
def host(self) -> pulumi.Input[_builtins.str]:
|
|
71
70
|
"""
|
|
72
71
|
ESX host the interface belongs to
|
|
73
72
|
"""
|
|
74
73
|
return pulumi.get(self, "host")
|
|
75
74
|
|
|
76
75
|
@host.setter
|
|
77
|
-
def host(self, value: pulumi.Input[
|
|
76
|
+
def host(self, value: pulumi.Input[_builtins.str]):
|
|
78
77
|
pulumi.set(self, "host", value)
|
|
79
78
|
|
|
80
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
81
80
|
@pulumi.getter(name="distributedPortGroup")
|
|
82
|
-
def distributed_port_group(self) -> Optional[pulumi.Input[
|
|
81
|
+
def distributed_port_group(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
83
82
|
"""
|
|
84
83
|
Key of the distributed portgroup the nic will connect to.
|
|
85
84
|
"""
|
|
86
85
|
return pulumi.get(self, "distributed_port_group")
|
|
87
86
|
|
|
88
87
|
@distributed_port_group.setter
|
|
89
|
-
def distributed_port_group(self, value: Optional[pulumi.Input[
|
|
88
|
+
def distributed_port_group(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
90
89
|
pulumi.set(self, "distributed_port_group", value)
|
|
91
90
|
|
|
92
|
-
@property
|
|
91
|
+
@_builtins.property
|
|
93
92
|
@pulumi.getter(name="distributedSwitchPort")
|
|
94
|
-
def distributed_switch_port(self) -> Optional[pulumi.Input[
|
|
93
|
+
def distributed_switch_port(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
95
94
|
"""
|
|
96
95
|
UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
97
96
|
"""
|
|
98
97
|
return pulumi.get(self, "distributed_switch_port")
|
|
99
98
|
|
|
100
99
|
@distributed_switch_port.setter
|
|
101
|
-
def distributed_switch_port(self, value: Optional[pulumi.Input[
|
|
100
|
+
def distributed_switch_port(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
102
101
|
pulumi.set(self, "distributed_switch_port", value)
|
|
103
102
|
|
|
104
|
-
@property
|
|
103
|
+
@_builtins.property
|
|
105
104
|
@pulumi.getter
|
|
106
105
|
def ipv4(self) -> Optional[pulumi.Input['VnicIpv4Args']]:
|
|
107
106
|
"""
|
|
@@ -113,7 +112,7 @@ class VnicArgs:
|
|
|
113
112
|
def ipv4(self, value: Optional[pulumi.Input['VnicIpv4Args']]):
|
|
114
113
|
pulumi.set(self, "ipv4", value)
|
|
115
114
|
|
|
116
|
-
@property
|
|
115
|
+
@_builtins.property
|
|
117
116
|
@pulumi.getter
|
|
118
117
|
def ipv6(self) -> Optional[pulumi.Input['VnicIpv6Args']]:
|
|
119
118
|
"""
|
|
@@ -125,92 +124,92 @@ class VnicArgs:
|
|
|
125
124
|
def ipv6(self, value: Optional[pulumi.Input['VnicIpv6Args']]):
|
|
126
125
|
pulumi.set(self, "ipv6", value)
|
|
127
126
|
|
|
128
|
-
@property
|
|
127
|
+
@_builtins.property
|
|
129
128
|
@pulumi.getter
|
|
130
|
-
def mac(self) -> Optional[pulumi.Input[
|
|
129
|
+
def mac(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
131
130
|
"""
|
|
132
131
|
MAC address of the interface.
|
|
133
132
|
"""
|
|
134
133
|
return pulumi.get(self, "mac")
|
|
135
134
|
|
|
136
135
|
@mac.setter
|
|
137
|
-
def mac(self, value: Optional[pulumi.Input[
|
|
136
|
+
def mac(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
138
137
|
pulumi.set(self, "mac", value)
|
|
139
138
|
|
|
140
|
-
@property
|
|
139
|
+
@_builtins.property
|
|
141
140
|
@pulumi.getter
|
|
142
|
-
def mtu(self) -> Optional[pulumi.Input[
|
|
141
|
+
def mtu(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
143
142
|
"""
|
|
144
143
|
MTU of the interface.
|
|
145
144
|
"""
|
|
146
145
|
return pulumi.get(self, "mtu")
|
|
147
146
|
|
|
148
147
|
@mtu.setter
|
|
149
|
-
def mtu(self, value: Optional[pulumi.Input[
|
|
148
|
+
def mtu(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
150
149
|
pulumi.set(self, "mtu", value)
|
|
151
150
|
|
|
152
|
-
@property
|
|
151
|
+
@_builtins.property
|
|
153
152
|
@pulumi.getter
|
|
154
|
-
def netstack(self) -> Optional[pulumi.Input[
|
|
153
|
+
def netstack(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
155
154
|
"""
|
|
156
155
|
TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
|
|
157
156
|
"""
|
|
158
157
|
return pulumi.get(self, "netstack")
|
|
159
158
|
|
|
160
159
|
@netstack.setter
|
|
161
|
-
def netstack(self, value: Optional[pulumi.Input[
|
|
160
|
+
def netstack(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
162
161
|
pulumi.set(self, "netstack", value)
|
|
163
162
|
|
|
164
|
-
@property
|
|
163
|
+
@_builtins.property
|
|
165
164
|
@pulumi.getter
|
|
166
|
-
def portgroup(self) -> Optional[pulumi.Input[
|
|
165
|
+
def portgroup(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
167
166
|
"""
|
|
168
167
|
Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
|
|
169
168
|
"""
|
|
170
169
|
return pulumi.get(self, "portgroup")
|
|
171
170
|
|
|
172
171
|
@portgroup.setter
|
|
173
|
-
def portgroup(self, value: Optional[pulumi.Input[
|
|
172
|
+
def portgroup(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
174
173
|
pulumi.set(self, "portgroup", value)
|
|
175
174
|
|
|
176
|
-
@property
|
|
175
|
+
@_builtins.property
|
|
177
176
|
@pulumi.getter
|
|
178
|
-
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
177
|
+
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
179
178
|
"""
|
|
180
179
|
Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
|
|
181
180
|
"""
|
|
182
181
|
return pulumi.get(self, "services")
|
|
183
182
|
|
|
184
183
|
@services.setter
|
|
185
|
-
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
184
|
+
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
186
185
|
pulumi.set(self, "services", value)
|
|
187
186
|
|
|
188
187
|
|
|
189
188
|
@pulumi.input_type
|
|
190
189
|
class _VnicState:
|
|
191
190
|
def __init__(__self__, *,
|
|
192
|
-
distributed_port_group: Optional[pulumi.Input[
|
|
193
|
-
distributed_switch_port: Optional[pulumi.Input[
|
|
194
|
-
host: Optional[pulumi.Input[
|
|
191
|
+
distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
|
|
192
|
+
distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
|
|
193
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
195
194
|
ipv4: Optional[pulumi.Input['VnicIpv4Args']] = None,
|
|
196
195
|
ipv6: Optional[pulumi.Input['VnicIpv6Args']] = None,
|
|
197
|
-
mac: Optional[pulumi.Input[
|
|
198
|
-
mtu: Optional[pulumi.Input[
|
|
199
|
-
netstack: Optional[pulumi.Input[
|
|
200
|
-
portgroup: Optional[pulumi.Input[
|
|
201
|
-
services: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
196
|
+
mac: Optional[pulumi.Input[_builtins.str]] = None,
|
|
197
|
+
mtu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
198
|
+
netstack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
199
|
+
portgroup: Optional[pulumi.Input[_builtins.str]] = None,
|
|
200
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
202
201
|
"""
|
|
203
202
|
Input properties used for looking up and filtering Vnic resources.
|
|
204
|
-
:param pulumi.Input[
|
|
205
|
-
:param pulumi.Input[
|
|
206
|
-
:param pulumi.Input[
|
|
203
|
+
:param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
|
|
204
|
+
:param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
205
|
+
:param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
|
|
207
206
|
:param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
|
|
208
207
|
:param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
|
|
209
|
-
:param pulumi.Input[
|
|
210
|
-
:param pulumi.Input[
|
|
211
|
-
:param pulumi.Input[
|
|
212
|
-
:param pulumi.Input[
|
|
213
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
208
|
+
:param pulumi.Input[_builtins.str] mac: MAC address of the interface.
|
|
209
|
+
:param pulumi.Input[_builtins.int] mtu: MTU of the interface.
|
|
210
|
+
:param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
|
|
211
|
+
:param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
|
|
212
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
|
|
214
213
|
"""
|
|
215
214
|
if distributed_port_group is not None:
|
|
216
215
|
pulumi.set(__self__, "distributed_port_group", distributed_port_group)
|
|
@@ -233,43 +232,43 @@ class _VnicState:
|
|
|
233
232
|
if services is not None:
|
|
234
233
|
pulumi.set(__self__, "services", services)
|
|
235
234
|
|
|
236
|
-
@property
|
|
235
|
+
@_builtins.property
|
|
237
236
|
@pulumi.getter(name="distributedPortGroup")
|
|
238
|
-
def distributed_port_group(self) -> Optional[pulumi.Input[
|
|
237
|
+
def distributed_port_group(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
239
238
|
"""
|
|
240
239
|
Key of the distributed portgroup the nic will connect to.
|
|
241
240
|
"""
|
|
242
241
|
return pulumi.get(self, "distributed_port_group")
|
|
243
242
|
|
|
244
243
|
@distributed_port_group.setter
|
|
245
|
-
def distributed_port_group(self, value: Optional[pulumi.Input[
|
|
244
|
+
def distributed_port_group(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
246
245
|
pulumi.set(self, "distributed_port_group", value)
|
|
247
246
|
|
|
248
|
-
@property
|
|
247
|
+
@_builtins.property
|
|
249
248
|
@pulumi.getter(name="distributedSwitchPort")
|
|
250
|
-
def distributed_switch_port(self) -> Optional[pulumi.Input[
|
|
249
|
+
def distributed_switch_port(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
251
250
|
"""
|
|
252
251
|
UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
253
252
|
"""
|
|
254
253
|
return pulumi.get(self, "distributed_switch_port")
|
|
255
254
|
|
|
256
255
|
@distributed_switch_port.setter
|
|
257
|
-
def distributed_switch_port(self, value: Optional[pulumi.Input[
|
|
256
|
+
def distributed_switch_port(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
258
257
|
pulumi.set(self, "distributed_switch_port", value)
|
|
259
258
|
|
|
260
|
-
@property
|
|
259
|
+
@_builtins.property
|
|
261
260
|
@pulumi.getter
|
|
262
|
-
def host(self) -> Optional[pulumi.Input[
|
|
261
|
+
def host(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
263
262
|
"""
|
|
264
263
|
ESX host the interface belongs to
|
|
265
264
|
"""
|
|
266
265
|
return pulumi.get(self, "host")
|
|
267
266
|
|
|
268
267
|
@host.setter
|
|
269
|
-
def host(self, value: Optional[pulumi.Input[
|
|
268
|
+
def host(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
270
269
|
pulumi.set(self, "host", value)
|
|
271
270
|
|
|
272
|
-
@property
|
|
271
|
+
@_builtins.property
|
|
273
272
|
@pulumi.getter
|
|
274
273
|
def ipv4(self) -> Optional[pulumi.Input['VnicIpv4Args']]:
|
|
275
274
|
"""
|
|
@@ -281,7 +280,7 @@ class _VnicState:
|
|
|
281
280
|
def ipv4(self, value: Optional[pulumi.Input['VnicIpv4Args']]):
|
|
282
281
|
pulumi.set(self, "ipv4", value)
|
|
283
282
|
|
|
284
|
-
@property
|
|
283
|
+
@_builtins.property
|
|
285
284
|
@pulumi.getter
|
|
286
285
|
def ipv6(self) -> Optional[pulumi.Input['VnicIpv6Args']]:
|
|
287
286
|
"""
|
|
@@ -293,64 +292,64 @@ class _VnicState:
|
|
|
293
292
|
def ipv6(self, value: Optional[pulumi.Input['VnicIpv6Args']]):
|
|
294
293
|
pulumi.set(self, "ipv6", value)
|
|
295
294
|
|
|
296
|
-
@property
|
|
295
|
+
@_builtins.property
|
|
297
296
|
@pulumi.getter
|
|
298
|
-
def mac(self) -> Optional[pulumi.Input[
|
|
297
|
+
def mac(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
299
298
|
"""
|
|
300
299
|
MAC address of the interface.
|
|
301
300
|
"""
|
|
302
301
|
return pulumi.get(self, "mac")
|
|
303
302
|
|
|
304
303
|
@mac.setter
|
|
305
|
-
def mac(self, value: Optional[pulumi.Input[
|
|
304
|
+
def mac(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
306
305
|
pulumi.set(self, "mac", value)
|
|
307
306
|
|
|
308
|
-
@property
|
|
307
|
+
@_builtins.property
|
|
309
308
|
@pulumi.getter
|
|
310
|
-
def mtu(self) -> Optional[pulumi.Input[
|
|
309
|
+
def mtu(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
311
310
|
"""
|
|
312
311
|
MTU of the interface.
|
|
313
312
|
"""
|
|
314
313
|
return pulumi.get(self, "mtu")
|
|
315
314
|
|
|
316
315
|
@mtu.setter
|
|
317
|
-
def mtu(self, value: Optional[pulumi.Input[
|
|
316
|
+
def mtu(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
318
317
|
pulumi.set(self, "mtu", value)
|
|
319
318
|
|
|
320
|
-
@property
|
|
319
|
+
@_builtins.property
|
|
321
320
|
@pulumi.getter
|
|
322
|
-
def netstack(self) -> Optional[pulumi.Input[
|
|
321
|
+
def netstack(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
323
322
|
"""
|
|
324
323
|
TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
|
|
325
324
|
"""
|
|
326
325
|
return pulumi.get(self, "netstack")
|
|
327
326
|
|
|
328
327
|
@netstack.setter
|
|
329
|
-
def netstack(self, value: Optional[pulumi.Input[
|
|
328
|
+
def netstack(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
330
329
|
pulumi.set(self, "netstack", value)
|
|
331
330
|
|
|
332
|
-
@property
|
|
331
|
+
@_builtins.property
|
|
333
332
|
@pulumi.getter
|
|
334
|
-
def portgroup(self) -> Optional[pulumi.Input[
|
|
333
|
+
def portgroup(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
335
334
|
"""
|
|
336
335
|
Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
|
|
337
336
|
"""
|
|
338
337
|
return pulumi.get(self, "portgroup")
|
|
339
338
|
|
|
340
339
|
@portgroup.setter
|
|
341
|
-
def portgroup(self, value: Optional[pulumi.Input[
|
|
340
|
+
def portgroup(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
342
341
|
pulumi.set(self, "portgroup", value)
|
|
343
342
|
|
|
344
|
-
@property
|
|
343
|
+
@_builtins.property
|
|
345
344
|
@pulumi.getter
|
|
346
|
-
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
345
|
+
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
347
346
|
"""
|
|
348
347
|
Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
|
|
349
348
|
"""
|
|
350
349
|
return pulumi.get(self, "services")
|
|
351
350
|
|
|
352
351
|
@services.setter
|
|
353
|
-
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
352
|
+
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
354
353
|
pulumi.set(self, "services", value)
|
|
355
354
|
|
|
356
355
|
|
|
@@ -360,16 +359,16 @@ class Vnic(pulumi.CustomResource):
|
|
|
360
359
|
def __init__(__self__,
|
|
361
360
|
resource_name: str,
|
|
362
361
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
363
|
-
distributed_port_group: Optional[pulumi.Input[
|
|
364
|
-
distributed_switch_port: Optional[pulumi.Input[
|
|
365
|
-
host: Optional[pulumi.Input[
|
|
362
|
+
distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
|
|
363
|
+
distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
|
|
364
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
366
365
|
ipv4: Optional[pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']]] = None,
|
|
367
366
|
ipv6: Optional[pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']]] = None,
|
|
368
|
-
mac: Optional[pulumi.Input[
|
|
369
|
-
mtu: Optional[pulumi.Input[
|
|
370
|
-
netstack: Optional[pulumi.Input[
|
|
371
|
-
portgroup: Optional[pulumi.Input[
|
|
372
|
-
services: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
367
|
+
mac: Optional[pulumi.Input[_builtins.str]] = None,
|
|
368
|
+
mtu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
369
|
+
netstack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
370
|
+
portgroup: Optional[pulumi.Input[_builtins.str]] = None,
|
|
371
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
373
372
|
__props__=None):
|
|
374
373
|
"""
|
|
375
374
|
Provides a VMware vSphere vnic resource.
|
|
@@ -456,16 +455,16 @@ class Vnic(pulumi.CustomResource):
|
|
|
456
455
|
|
|
457
456
|
:param str resource_name: The name of the resource.
|
|
458
457
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
459
|
-
:param pulumi.Input[
|
|
460
|
-
:param pulumi.Input[
|
|
461
|
-
:param pulumi.Input[
|
|
458
|
+
:param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
|
|
459
|
+
:param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
460
|
+
:param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
|
|
462
461
|
:param pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
|
|
463
462
|
:param pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
|
|
464
|
-
:param pulumi.Input[
|
|
465
|
-
:param pulumi.Input[
|
|
466
|
-
:param pulumi.Input[
|
|
467
|
-
:param pulumi.Input[
|
|
468
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
463
|
+
:param pulumi.Input[_builtins.str] mac: MAC address of the interface.
|
|
464
|
+
:param pulumi.Input[_builtins.int] mtu: MTU of the interface.
|
|
465
|
+
:param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
|
|
466
|
+
:param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
|
|
467
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
|
|
469
468
|
"""
|
|
470
469
|
...
|
|
471
470
|
@overload
|
|
@@ -571,16 +570,16 @@ class Vnic(pulumi.CustomResource):
|
|
|
571
570
|
def _internal_init(__self__,
|
|
572
571
|
resource_name: str,
|
|
573
572
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
574
|
-
distributed_port_group: Optional[pulumi.Input[
|
|
575
|
-
distributed_switch_port: Optional[pulumi.Input[
|
|
576
|
-
host: Optional[pulumi.Input[
|
|
573
|
+
distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
|
|
574
|
+
distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
|
|
575
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
577
576
|
ipv4: Optional[pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']]] = None,
|
|
578
577
|
ipv6: Optional[pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']]] = None,
|
|
579
|
-
mac: Optional[pulumi.Input[
|
|
580
|
-
mtu: Optional[pulumi.Input[
|
|
581
|
-
netstack: Optional[pulumi.Input[
|
|
582
|
-
portgroup: Optional[pulumi.Input[
|
|
583
|
-
services: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
578
|
+
mac: Optional[pulumi.Input[_builtins.str]] = None,
|
|
579
|
+
mtu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
580
|
+
netstack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
581
|
+
portgroup: Optional[pulumi.Input[_builtins.str]] = None,
|
|
582
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
584
583
|
__props__=None):
|
|
585
584
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
586
585
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -612,16 +611,16 @@ class Vnic(pulumi.CustomResource):
|
|
|
612
611
|
def get(resource_name: str,
|
|
613
612
|
id: pulumi.Input[str],
|
|
614
613
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
615
|
-
distributed_port_group: Optional[pulumi.Input[
|
|
616
|
-
distributed_switch_port: Optional[pulumi.Input[
|
|
617
|
-
host: Optional[pulumi.Input[
|
|
614
|
+
distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
|
|
615
|
+
distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
|
|
616
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
618
617
|
ipv4: Optional[pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']]] = None,
|
|
619
618
|
ipv6: Optional[pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']]] = None,
|
|
620
|
-
mac: Optional[pulumi.Input[
|
|
621
|
-
mtu: Optional[pulumi.Input[
|
|
622
|
-
netstack: Optional[pulumi.Input[
|
|
623
|
-
portgroup: Optional[pulumi.Input[
|
|
624
|
-
services: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
619
|
+
mac: Optional[pulumi.Input[_builtins.str]] = None,
|
|
620
|
+
mtu: Optional[pulumi.Input[_builtins.int]] = None,
|
|
621
|
+
netstack: Optional[pulumi.Input[_builtins.str]] = None,
|
|
622
|
+
portgroup: Optional[pulumi.Input[_builtins.str]] = None,
|
|
623
|
+
services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'Vnic':
|
|
625
624
|
"""
|
|
626
625
|
Get an existing Vnic resource's state with the given name, id, and optional extra
|
|
627
626
|
properties used to qualify the lookup.
|
|
@@ -629,16 +628,16 @@ class Vnic(pulumi.CustomResource):
|
|
|
629
628
|
:param str resource_name: The unique name of the resulting resource.
|
|
630
629
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
631
630
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
632
|
-
:param pulumi.Input[
|
|
633
|
-
:param pulumi.Input[
|
|
634
|
-
:param pulumi.Input[
|
|
631
|
+
:param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
|
|
632
|
+
:param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
633
|
+
:param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
|
|
635
634
|
:param pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
|
|
636
635
|
:param pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
|
|
637
|
-
:param pulumi.Input[
|
|
638
|
-
:param pulumi.Input[
|
|
639
|
-
:param pulumi.Input[
|
|
640
|
-
:param pulumi.Input[
|
|
641
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
636
|
+
:param pulumi.Input[_builtins.str] mac: MAC address of the interface.
|
|
637
|
+
:param pulumi.Input[_builtins.int] mtu: MTU of the interface.
|
|
638
|
+
:param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
|
|
639
|
+
:param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
|
|
640
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
|
|
642
641
|
"""
|
|
643
642
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
644
643
|
|
|
@@ -656,31 +655,31 @@ class Vnic(pulumi.CustomResource):
|
|
|
656
655
|
__props__.__dict__["services"] = services
|
|
657
656
|
return Vnic(resource_name, opts=opts, __props__=__props__)
|
|
658
657
|
|
|
659
|
-
@property
|
|
658
|
+
@_builtins.property
|
|
660
659
|
@pulumi.getter(name="distributedPortGroup")
|
|
661
|
-
def distributed_port_group(self) -> pulumi.Output[Optional[
|
|
660
|
+
def distributed_port_group(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
662
661
|
"""
|
|
663
662
|
Key of the distributed portgroup the nic will connect to.
|
|
664
663
|
"""
|
|
665
664
|
return pulumi.get(self, "distributed_port_group")
|
|
666
665
|
|
|
667
|
-
@property
|
|
666
|
+
@_builtins.property
|
|
668
667
|
@pulumi.getter(name="distributedSwitchPort")
|
|
669
|
-
def distributed_switch_port(self) -> pulumi.Output[Optional[
|
|
668
|
+
def distributed_switch_port(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
670
669
|
"""
|
|
671
670
|
UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
672
671
|
"""
|
|
673
672
|
return pulumi.get(self, "distributed_switch_port")
|
|
674
673
|
|
|
675
|
-
@property
|
|
674
|
+
@_builtins.property
|
|
676
675
|
@pulumi.getter
|
|
677
|
-
def host(self) -> pulumi.Output[
|
|
676
|
+
def host(self) -> pulumi.Output[_builtins.str]:
|
|
678
677
|
"""
|
|
679
678
|
ESX host the interface belongs to
|
|
680
679
|
"""
|
|
681
680
|
return pulumi.get(self, "host")
|
|
682
681
|
|
|
683
|
-
@property
|
|
682
|
+
@_builtins.property
|
|
684
683
|
@pulumi.getter
|
|
685
684
|
def ipv4(self) -> pulumi.Output[Optional['outputs.VnicIpv4']]:
|
|
686
685
|
"""
|
|
@@ -688,7 +687,7 @@ class Vnic(pulumi.CustomResource):
|
|
|
688
687
|
"""
|
|
689
688
|
return pulumi.get(self, "ipv4")
|
|
690
689
|
|
|
691
|
-
@property
|
|
690
|
+
@_builtins.property
|
|
692
691
|
@pulumi.getter
|
|
693
692
|
def ipv6(self) -> pulumi.Output[Optional['outputs.VnicIpv6']]:
|
|
694
693
|
"""
|
|
@@ -696,41 +695,41 @@ class Vnic(pulumi.CustomResource):
|
|
|
696
695
|
"""
|
|
697
696
|
return pulumi.get(self, "ipv6")
|
|
698
697
|
|
|
699
|
-
@property
|
|
698
|
+
@_builtins.property
|
|
700
699
|
@pulumi.getter
|
|
701
|
-
def mac(self) -> pulumi.Output[
|
|
700
|
+
def mac(self) -> pulumi.Output[_builtins.str]:
|
|
702
701
|
"""
|
|
703
702
|
MAC address of the interface.
|
|
704
703
|
"""
|
|
705
704
|
return pulumi.get(self, "mac")
|
|
706
705
|
|
|
707
|
-
@property
|
|
706
|
+
@_builtins.property
|
|
708
707
|
@pulumi.getter
|
|
709
|
-
def mtu(self) -> pulumi.Output[
|
|
708
|
+
def mtu(self) -> pulumi.Output[_builtins.int]:
|
|
710
709
|
"""
|
|
711
710
|
MTU of the interface.
|
|
712
711
|
"""
|
|
713
712
|
return pulumi.get(self, "mtu")
|
|
714
713
|
|
|
715
|
-
@property
|
|
714
|
+
@_builtins.property
|
|
716
715
|
@pulumi.getter
|
|
717
|
-
def netstack(self) -> pulumi.Output[Optional[
|
|
716
|
+
def netstack(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
718
717
|
"""
|
|
719
718
|
TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
|
|
720
719
|
"""
|
|
721
720
|
return pulumi.get(self, "netstack")
|
|
722
721
|
|
|
723
|
-
@property
|
|
722
|
+
@_builtins.property
|
|
724
723
|
@pulumi.getter
|
|
725
|
-
def portgroup(self) -> pulumi.Output[Optional[
|
|
724
|
+
def portgroup(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
726
725
|
"""
|
|
727
726
|
Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
|
|
728
727
|
"""
|
|
729
728
|
return pulumi.get(self, "portgroup")
|
|
730
729
|
|
|
731
|
-
@property
|
|
730
|
+
@_builtins.property
|
|
732
731
|
@pulumi.getter
|
|
733
|
-
def services(self) -> pulumi.Output[Optional[Sequence[
|
|
732
|
+
def services(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
734
733
|
"""
|
|
735
734
|
Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
|
|
736
735
|
"""
|