pulumi-vsphere 4.11.0a1__py3-none-any.whl → 4.11.0a1711033215__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 +0 -28
- pulumi_vsphere/_inputs.py +230 -554
- pulumi_vsphere/compute_cluster.py +1477 -747
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +16 -28
- pulumi_vsphere/datacenter.py +12 -26
- pulumi_vsphere/datastore_cluster.py +350 -154
- pulumi_vsphere/distributed_port_group.py +175 -70
- pulumi_vsphere/distributed_virtual_switch.py +805 -308
- pulumi_vsphere/file.py +24 -16
- pulumi_vsphere/folder.py +7 -7
- pulumi_vsphere/get_compute_cluster.py +4 -0
- pulumi_vsphere/get_compute_cluster_host_group.py +10 -8
- pulumi_vsphere/get_content_library.py +4 -0
- pulumi_vsphere/get_custom_attribute.py +4 -0
- pulumi_vsphere/get_datacenter.py +4 -0
- pulumi_vsphere/get_datastore.py +4 -0
- pulumi_vsphere/get_datastore_cluster.py +4 -0
- pulumi_vsphere/get_datastore_stats.py +12 -4
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
- pulumi_vsphere/get_dynamic.py +8 -4
- pulumi_vsphere/get_folder.py +6 -10
- pulumi_vsphere/get_guest_os_customization.py +4 -0
- pulumi_vsphere/get_host.py +4 -0
- pulumi_vsphere/get_host_pci_device.py +12 -4
- pulumi_vsphere/get_host_thumbprint.py +4 -0
- pulumi_vsphere/get_host_vgpu_profile.py +8 -0
- pulumi_vsphere/get_license.py +4 -0
- pulumi_vsphere/get_network.py +4 -0
- pulumi_vsphere/get_policy.py +4 -0
- pulumi_vsphere/get_resource_pool.py +10 -2
- pulumi_vsphere/get_role.py +4 -0
- pulumi_vsphere/get_tag.py +4 -0
- pulumi_vsphere/get_tag_category.py +4 -0
- pulumi_vsphere/get_vapp_container.py +4 -0
- pulumi_vsphere/get_virtual_machine.py +8 -0
- pulumi_vsphere/get_vmfs_disks.py +4 -0
- pulumi_vsphere/guest_os_customization.py +0 -50
- pulumi_vsphere/ha_vm_override.py +378 -189
- pulumi_vsphere/host.py +20 -0
- pulumi_vsphere/host_port_group.py +24 -12
- pulumi_vsphere/host_virtual_switch.py +287 -140
- pulumi_vsphere/license.py +32 -0
- pulumi_vsphere/outputs.py +230 -543
- pulumi_vsphere/pulumi-plugin.json +1 -2
- pulumi_vsphere/resource_pool.py +22 -48
- pulumi_vsphere/virtual_machine.py +807 -578
- pulumi_vsphere/virtual_machine_snapshot.py +10 -6
- pulumi_vsphere/vm_storage_policy.py +84 -72
- pulumi_vsphere/vnic.py +20 -8
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1711033215.dist-info/RECORD +82 -0
- pulumi_vsphere/get_host_base_images.py +0 -97
- pulumi_vsphere/offline_software_depot.py +0 -180
- pulumi_vsphere/supervisor.py +0 -858
- pulumi_vsphere/virtual_machine_class.py +0 -440
- pulumi_vsphere-4.11.0a1.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/top_level.txt +0 -0
|
@@ -106,6 +106,7 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
106
106
|
|
|
107
107
|
### With Vendor ID And Class ID
|
|
108
108
|
|
|
109
|
+
<!--Start PulumiCodeChooser -->
|
|
109
110
|
```python
|
|
110
111
|
import pulumi
|
|
111
112
|
import pulumi_vsphere as vsphere
|
|
@@ -117,19 +118,22 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
117
118
|
class_id="123",
|
|
118
119
|
vendor_id="456")
|
|
119
120
|
```
|
|
121
|
+
<!--End PulumiCodeChooser -->
|
|
120
122
|
|
|
121
123
|
### With Name Regular Expression
|
|
122
124
|
|
|
125
|
+
<!--Start PulumiCodeChooser -->
|
|
123
126
|
```python
|
|
124
127
|
import pulumi
|
|
125
128
|
import pulumi_vsphere as vsphere
|
|
126
129
|
|
|
127
130
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
128
131
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
129
|
-
|
|
132
|
+
datacenter_id=datacenter.id)
|
|
130
133
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
131
|
-
|
|
134
|
+
name_regex="MMC")
|
|
132
135
|
```
|
|
136
|
+
<!--End PulumiCodeChooser -->
|
|
133
137
|
|
|
134
138
|
|
|
135
139
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -174,6 +178,7 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
174
178
|
|
|
175
179
|
### With Vendor ID And Class ID
|
|
176
180
|
|
|
181
|
+
<!--Start PulumiCodeChooser -->
|
|
177
182
|
```python
|
|
178
183
|
import pulumi
|
|
179
184
|
import pulumi_vsphere as vsphere
|
|
@@ -185,19 +190,22 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
185
190
|
class_id="123",
|
|
186
191
|
vendor_id="456")
|
|
187
192
|
```
|
|
193
|
+
<!--End PulumiCodeChooser -->
|
|
188
194
|
|
|
189
195
|
### With Name Regular Expression
|
|
190
196
|
|
|
197
|
+
<!--Start PulumiCodeChooser -->
|
|
191
198
|
```python
|
|
192
199
|
import pulumi
|
|
193
200
|
import pulumi_vsphere as vsphere
|
|
194
201
|
|
|
195
202
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
196
203
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
197
|
-
|
|
204
|
+
datacenter_id=datacenter.id)
|
|
198
205
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
199
|
-
|
|
206
|
+
name_regex="MMC")
|
|
200
207
|
```
|
|
208
|
+
<!--End PulumiCodeChooser -->
|
|
201
209
|
|
|
202
210
|
|
|
203
211
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -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
|
|
@@ -94,6 +94,7 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
94
94
|
|
|
95
95
|
### To Return All VGPU Profiles
|
|
96
96
|
|
|
97
|
+
<!--Start PulumiCodeChooser -->
|
|
97
98
|
```python
|
|
98
99
|
import pulumi
|
|
99
100
|
import pulumi_vsphere as vsphere
|
|
@@ -103,9 +104,11 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
103
104
|
datacenter_id=datacenter.id)
|
|
104
105
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
105
106
|
```
|
|
107
|
+
<!--End PulumiCodeChooser -->
|
|
106
108
|
|
|
107
109
|
### With VGPU Profile Name_regex
|
|
108
110
|
|
|
111
|
+
<!--Start PulumiCodeChooser -->
|
|
109
112
|
```python
|
|
110
113
|
import pulumi
|
|
111
114
|
import pulumi_vsphere as vsphere
|
|
@@ -116,6 +119,7 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
116
119
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
117
120
|
name_regex="a100")
|
|
118
121
|
```
|
|
122
|
+
<!--End PulumiCodeChooser -->
|
|
119
123
|
|
|
120
124
|
|
|
121
125
|
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
@@ -149,6 +153,7 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
149
153
|
|
|
150
154
|
### To Return All VGPU Profiles
|
|
151
155
|
|
|
156
|
+
<!--Start PulumiCodeChooser -->
|
|
152
157
|
```python
|
|
153
158
|
import pulumi
|
|
154
159
|
import pulumi_vsphere as vsphere
|
|
@@ -158,9 +163,11 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
158
163
|
datacenter_id=datacenter.id)
|
|
159
164
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
160
165
|
```
|
|
166
|
+
<!--End PulumiCodeChooser -->
|
|
161
167
|
|
|
162
168
|
### With VGPU Profile Name_regex
|
|
163
169
|
|
|
170
|
+
<!--Start PulumiCodeChooser -->
|
|
164
171
|
```python
|
|
165
172
|
import pulumi
|
|
166
173
|
import pulumi_vsphere as vsphere
|
|
@@ -171,6 +178,7 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
171
178
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
172
179
|
name_regex="a100")
|
|
173
180
|
```
|
|
181
|
+
<!--End PulumiCodeChooser -->
|
|
174
182
|
|
|
175
183
|
|
|
176
184
|
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
pulumi_vsphere/get_license.py
CHANGED
|
@@ -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.
|
pulumi_vsphere/get_network.py
CHANGED
|
@@ -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
|
pulumi_vsphere/get_policy.py
CHANGED
|
@@ -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,7 @@ 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 -->
|
|
84
86
|
|
|
85
87
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
86
88
|
|
|
@@ -92,13 +94,15 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
92
94
|
explicitly created. This resource pool is referred to as the
|
|
93
95
|
_root resource pool_ and can be looked up by specifying the path.
|
|
94
96
|
|
|
97
|
+
<!--Start PulumiCodeChooser -->
|
|
95
98
|
```python
|
|
96
99
|
import pulumi
|
|
97
100
|
import pulumi_vsphere as vsphere
|
|
98
101
|
|
|
99
102
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
100
|
-
datacenter_id=datacenter["id"])
|
|
103
|
+
datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
|
|
101
104
|
```
|
|
105
|
+
<!--End PulumiCodeChooser -->
|
|
102
106
|
|
|
103
107
|
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
104
108
|
|
|
@@ -141,6 +145,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
141
145
|
|
|
142
146
|
## Example Usage
|
|
143
147
|
|
|
148
|
+
<!--Start PulumiCodeChooser -->
|
|
144
149
|
```python
|
|
145
150
|
import pulumi
|
|
146
151
|
import pulumi_vsphere as vsphere
|
|
@@ -149,6 +154,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
149
154
|
pool = vsphere.get_resource_pool(name="resource-pool-01",
|
|
150
155
|
datacenter_id=datacenter.id)
|
|
151
156
|
```
|
|
157
|
+
<!--End PulumiCodeChooser -->
|
|
152
158
|
|
|
153
159
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
154
160
|
|
|
@@ -160,13 +166,15 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
160
166
|
explicitly created. This resource pool is referred to as the
|
|
161
167
|
_root resource pool_ and can be looked up by specifying the path.
|
|
162
168
|
|
|
169
|
+
<!--Start PulumiCodeChooser -->
|
|
163
170
|
```python
|
|
164
171
|
import pulumi
|
|
165
172
|
import pulumi_vsphere as vsphere
|
|
166
173
|
|
|
167
174
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
168
|
-
datacenter_id=datacenter["id"])
|
|
175
|
+
datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
|
|
169
176
|
```
|
|
177
|
+
<!--End PulumiCodeChooser -->
|
|
170
178
|
|
|
171
179
|
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
172
180
|
|
pulumi_vsphere/get_role.py
CHANGED
|
@@ -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.
|
|
@@ -73,6 +73,7 @@ def get_vapp_container(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,7 @@ def get_vapp_container(datacenter_id: Optional[str] = None,
|
|
|
81
82
|
pool = vsphere.get_vapp_container(name="vapp-container-01",
|
|
82
83
|
datacenter_id=datacenter.id)
|
|
83
84
|
```
|
|
85
|
+
<!--End PulumiCodeChooser -->
|
|
84
86
|
|
|
85
87
|
|
|
86
88
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -112,6 +114,7 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
112
114
|
|
|
113
115
|
## Example Usage
|
|
114
116
|
|
|
117
|
+
<!--Start PulumiCodeChooser -->
|
|
115
118
|
```python
|
|
116
119
|
import pulumi
|
|
117
120
|
import pulumi_vsphere as vsphere
|
|
@@ -120,6 +123,7 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
120
123
|
pool = vsphere.get_vapp_container(name="vapp-container-01",
|
|
121
124
|
datacenter_id=datacenter.id)
|
|
122
125
|
```
|
|
126
|
+
<!--End PulumiCodeChooser -->
|
|
123
127
|
|
|
124
128
|
|
|
125
129
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -762,6 +762,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
762
762
|
In the following example, a virtual machine template is returned by its
|
|
763
763
|
unique name within the `Datacenter`.
|
|
764
764
|
|
|
765
|
+
<!--Start PulumiCodeChooser -->
|
|
765
766
|
```python
|
|
766
767
|
import pulumi
|
|
767
768
|
import pulumi_vsphere as vsphere
|
|
@@ -770,9 +771,11 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
770
771
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
771
772
|
datacenter_id=datacenter.id)
|
|
772
773
|
```
|
|
774
|
+
<!--End PulumiCodeChooser -->
|
|
773
775
|
In the following example, each virtual machine template is returned by its
|
|
774
776
|
unique full path within the `Datacenter`.
|
|
775
777
|
|
|
778
|
+
<!--Start PulumiCodeChooser -->
|
|
776
779
|
```python
|
|
777
780
|
import pulumi
|
|
778
781
|
import pulumi_vsphere as vsphere
|
|
@@ -783,6 +786,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
783
786
|
development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
|
|
784
787
|
datacenter_id=datacenter.id)
|
|
785
788
|
```
|
|
789
|
+
<!--End PulumiCodeChooser -->
|
|
786
790
|
|
|
787
791
|
|
|
788
792
|
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
@@ -1011,6 +1015,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1011
1015
|
In the following example, a virtual machine template is returned by its
|
|
1012
1016
|
unique name within the `Datacenter`.
|
|
1013
1017
|
|
|
1018
|
+
<!--Start PulumiCodeChooser -->
|
|
1014
1019
|
```python
|
|
1015
1020
|
import pulumi
|
|
1016
1021
|
import pulumi_vsphere as vsphere
|
|
@@ -1019,9 +1024,11 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1019
1024
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
1020
1025
|
datacenter_id=datacenter.id)
|
|
1021
1026
|
```
|
|
1027
|
+
<!--End PulumiCodeChooser -->
|
|
1022
1028
|
In the following example, each virtual machine template is returned by its
|
|
1023
1029
|
unique full path within the `Datacenter`.
|
|
1024
1030
|
|
|
1031
|
+
<!--Start PulumiCodeChooser -->
|
|
1025
1032
|
```python
|
|
1026
1033
|
import pulumi
|
|
1027
1034
|
import pulumi_vsphere as vsphere
|
|
@@ -1032,6 +1039,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1032
1039
|
development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
|
|
1033
1040
|
datacenter_id=datacenter.id)
|
|
1034
1041
|
```
|
|
1042
|
+
<!--End PulumiCodeChooser -->
|
|
1035
1043
|
|
|
1036
1044
|
|
|
1037
1045
|
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
pulumi_vsphere/get_vmfs_disks.py
CHANGED
|
@@ -96,6 +96,7 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
96
96
|
|
|
97
97
|
## Example Usage
|
|
98
98
|
|
|
99
|
+
<!--Start PulumiCodeChooser -->
|
|
99
100
|
```python
|
|
100
101
|
import pulumi
|
|
101
102
|
import pulumi_vsphere as vsphere
|
|
@@ -107,6 +108,7 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
107
108
|
rescan=True,
|
|
108
109
|
filter="mpx.vmhba1:C0:T[12]:L0")
|
|
109
110
|
```
|
|
111
|
+
<!--End PulumiCodeChooser -->
|
|
110
112
|
|
|
111
113
|
|
|
112
114
|
:param str filter: A regular expression to filter the disks against. Only
|
|
@@ -149,6 +151,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
149
151
|
|
|
150
152
|
## Example Usage
|
|
151
153
|
|
|
154
|
+
<!--Start PulumiCodeChooser -->
|
|
152
155
|
```python
|
|
153
156
|
import pulumi
|
|
154
157
|
import pulumi_vsphere as vsphere
|
|
@@ -160,6 +163,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
160
163
|
rescan=True,
|
|
161
164
|
filter="mpx.vmhba1:C0:T[12]:L0")
|
|
162
165
|
```
|
|
166
|
+
<!--End PulumiCodeChooser -->
|
|
163
167
|
|
|
164
168
|
|
|
165
169
|
:param str filter: A regular expression to filter the disks against. Only
|
|
@@ -202,31 +202,6 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
202
202
|
|
|
203
203
|
> **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
|
|
204
204
|
|
|
205
|
-
## Example Usage
|
|
206
|
-
|
|
207
|
-
```python
|
|
208
|
-
import pulumi
|
|
209
|
-
import pulumi_vsphere as vsphere
|
|
210
|
-
|
|
211
|
-
windows_customization = vsphere.GuestOsCustomization("windows_customization",
|
|
212
|
-
name="windows-spec",
|
|
213
|
-
type="Windows",
|
|
214
|
-
spec=vsphere.GuestOsCustomizationSpecArgs(
|
|
215
|
-
windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
|
|
216
|
-
run_once_command_lists=[
|
|
217
|
-
"command-1",
|
|
218
|
-
"command-2",
|
|
219
|
-
],
|
|
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
|
-
```
|
|
229
|
-
|
|
230
205
|
:param str resource_name: The name of the resource.
|
|
231
206
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
232
207
|
:param pulumi.Input[str] description: The description for the customization specification.
|
|
@@ -245,31 +220,6 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
245
220
|
|
|
246
221
|
> **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
|
|
247
222
|
|
|
248
|
-
## Example Usage
|
|
249
|
-
|
|
250
|
-
```python
|
|
251
|
-
import pulumi
|
|
252
|
-
import pulumi_vsphere as vsphere
|
|
253
|
-
|
|
254
|
-
windows_customization = vsphere.GuestOsCustomization("windows_customization",
|
|
255
|
-
name="windows-spec",
|
|
256
|
-
type="Windows",
|
|
257
|
-
spec=vsphere.GuestOsCustomizationSpecArgs(
|
|
258
|
-
windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
|
|
259
|
-
run_once_command_lists=[
|
|
260
|
-
"command-1",
|
|
261
|
-
"command-2",
|
|
262
|
-
],
|
|
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
|
-
```
|
|
272
|
-
|
|
273
223
|
:param str resource_name: The name of the resource.
|
|
274
224
|
:param GuestOsCustomizationArgs args: The arguments to use to populate this resource's properties.
|
|
275
225
|
:param pulumi.ResourceOptions opts: Options for the resource.
|