pulumi-vsphere 4.10.0a1710160860__py3-none-any.whl → 4.10.1__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 +2 -0
- pulumi_vsphere/_inputs.py +96 -230
- pulumi_vsphere/compute_cluster.py +700 -1477
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -16
- pulumi_vsphere/datacenter.py +26 -12
- pulumi_vsphere/datastore_cluster.py +154 -350
- pulumi_vsphere/distributed_port_group.py +70 -175
- pulumi_vsphere/distributed_virtual_switch.py +308 -805
- pulumi_vsphere/file.py +16 -24
- pulumi_vsphere/get_compute_cluster.py +0 -4
- pulumi_vsphere/get_compute_cluster_host_group.py +8 -10
- pulumi_vsphere/get_content_library.py +0 -4
- pulumi_vsphere/get_custom_attribute.py +0 -4
- pulumi_vsphere/get_datacenter.py +0 -4
- pulumi_vsphere/get_datastore.py +27 -7
- pulumi_vsphere/get_datastore_cluster.py +0 -4
- pulumi_vsphere/get_datastore_stats.py +194 -0
- pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
- pulumi_vsphere/get_dynamic.py +4 -8
- pulumi_vsphere/get_folder.py +0 -4
- pulumi_vsphere/get_guest_os_customization.py +0 -4
- pulumi_vsphere/get_host.py +0 -4
- pulumi_vsphere/get_host_pci_device.py +4 -12
- pulumi_vsphere/get_host_thumbprint.py +0 -4
- pulumi_vsphere/get_host_vgpu_profile.py +182 -0
- pulumi_vsphere/get_license.py +0 -4
- pulumi_vsphere/get_network.py +0 -4
- pulumi_vsphere/get_policy.py +0 -4
- pulumi_vsphere/get_resource_pool.py +2 -10
- pulumi_vsphere/get_role.py +0 -4
- pulumi_vsphere/get_tag.py +0 -4
- pulumi_vsphere/get_tag_category.py +0 -4
- pulumi_vsphere/get_vapp_container.py +0 -4
- pulumi_vsphere/get_virtual_machine.py +29 -9
- pulumi_vsphere/get_vmfs_disks.py +0 -4
- pulumi_vsphere/guest_os_customization.py +50 -0
- pulumi_vsphere/ha_vm_override.py +189 -378
- pulumi_vsphere/host.py +0 -20
- pulumi_vsphere/host_port_group.py +12 -24
- pulumi_vsphere/host_virtual_switch.py +140 -287
- pulumi_vsphere/license.py +0 -32
- pulumi_vsphere/outputs.py +167 -230
- pulumi_vsphere/resource_pool.py +48 -22
- pulumi_vsphere/virtual_disk.py +10 -10
- pulumi_vsphere/virtual_machine.py +639 -807
- pulumi_vsphere/virtual_machine_snapshot.py +6 -10
- pulumi_vsphere/vm_storage_policy.py +72 -84
- pulumi_vsphere/vnic.py +8 -20
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.1.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.10.1.dist-info/RECORD +82 -0
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.1.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1710160860.dist-info/RECORD +0 -80
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.1.dist-info}/top_level.txt +0 -0
pulumi_vsphere/get_dynamic.py
CHANGED
|
@@ -84,16 +84,15 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
84
84
|
|
|
85
85
|
## Example Usage
|
|
86
86
|
|
|
87
|
-
<!--Start PulumiCodeChooser -->
|
|
88
87
|
```python
|
|
89
88
|
import pulumi
|
|
90
89
|
import pulumi_vsphere as vsphere
|
|
91
90
|
|
|
92
91
|
category = vsphere.get_tag_category(name="SomeCategory")
|
|
93
92
|
tag1 = vsphere.get_tag(name="FirstTag",
|
|
94
|
-
category_id=
|
|
93
|
+
category_id=cat["id"])
|
|
95
94
|
tag2 = vsphere.get_tag(name="SecondTag",
|
|
96
|
-
category_id=
|
|
95
|
+
category_id=cat["id"])
|
|
97
96
|
dyn = vsphere.get_dynamic(filters=[
|
|
98
97
|
tag1.id,
|
|
99
98
|
tag1.id,
|
|
@@ -101,7 +100,6 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
101
100
|
name_regex="ubuntu",
|
|
102
101
|
type="Datacenter")
|
|
103
102
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
103
|
|
|
106
104
|
|
|
107
105
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
@@ -140,16 +138,15 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
140
138
|
|
|
141
139
|
## Example Usage
|
|
142
140
|
|
|
143
|
-
<!--Start PulumiCodeChooser -->
|
|
144
141
|
```python
|
|
145
142
|
import pulumi
|
|
146
143
|
import pulumi_vsphere as vsphere
|
|
147
144
|
|
|
148
145
|
category = vsphere.get_tag_category(name="SomeCategory")
|
|
149
146
|
tag1 = vsphere.get_tag(name="FirstTag",
|
|
150
|
-
category_id=
|
|
147
|
+
category_id=cat["id"])
|
|
151
148
|
tag2 = vsphere.get_tag(name="SecondTag",
|
|
152
|
-
category_id=
|
|
149
|
+
category_id=cat["id"])
|
|
153
150
|
dyn = vsphere.get_dynamic(filters=[
|
|
154
151
|
tag1.id,
|
|
155
152
|
tag1.id,
|
|
@@ -157,7 +154,6 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
157
154
|
name_regex="ubuntu",
|
|
158
155
|
type="Datacenter")
|
|
159
156
|
```
|
|
160
|
-
<!--End PulumiCodeChooser -->
|
|
161
157
|
|
|
162
158
|
|
|
163
159
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
pulumi_vsphere/get_folder.py
CHANGED
|
@@ -61,14 +61,12 @@ def get_folder(path: Optional[str] = None,
|
|
|
61
61
|
|
|
62
62
|
## Example Usage
|
|
63
63
|
|
|
64
|
-
<!--Start PulumiCodeChooser -->
|
|
65
64
|
```python
|
|
66
65
|
import pulumi
|
|
67
66
|
import pulumi_vsphere as vsphere
|
|
68
67
|
|
|
69
68
|
folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
|
|
70
69
|
```
|
|
71
|
-
<!--End PulumiCodeChooser -->
|
|
72
70
|
|
|
73
71
|
|
|
74
72
|
:param str path: The absolute path of the folder. For example, given a
|
|
@@ -96,14 +94,12 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
|
|
|
96
94
|
|
|
97
95
|
## Example Usage
|
|
98
96
|
|
|
99
|
-
<!--Start PulumiCodeChooser -->
|
|
100
97
|
```python
|
|
101
98
|
import pulumi
|
|
102
99
|
import pulumi_vsphere as vsphere
|
|
103
100
|
|
|
104
101
|
folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
|
|
105
102
|
```
|
|
106
|
-
<!--End PulumiCodeChooser -->
|
|
107
103
|
|
|
108
104
|
|
|
109
105
|
:param str path: The absolute path of the folder. For example, given a
|
|
@@ -124,14 +124,12 @@ def get_guest_os_customization(name: Optional[str] = None,
|
|
|
124
124
|
|
|
125
125
|
## Example Usage
|
|
126
126
|
|
|
127
|
-
<!--Start PulumiCodeChooser -->
|
|
128
127
|
```python
|
|
129
128
|
import pulumi
|
|
130
129
|
import pulumi_vsphere as vsphere
|
|
131
130
|
|
|
132
131
|
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
133
132
|
```
|
|
134
|
-
<!--End PulumiCodeChooser -->
|
|
135
133
|
|
|
136
134
|
|
|
137
135
|
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
@@ -162,14 +160,12 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
162
160
|
|
|
163
161
|
## Example Usage
|
|
164
162
|
|
|
165
|
-
<!--Start PulumiCodeChooser -->
|
|
166
163
|
```python
|
|
167
164
|
import pulumi
|
|
168
165
|
import pulumi_vsphere as vsphere
|
|
169
166
|
|
|
170
167
|
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
171
168
|
```
|
|
172
|
-
<!--End PulumiCodeChooser -->
|
|
173
169
|
|
|
174
170
|
|
|
175
171
|
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
pulumi_vsphere/get_host.py
CHANGED
|
@@ -85,7 +85,6 @@ def get_host(datacenter_id: Optional[str] = None,
|
|
|
85
85
|
|
|
86
86
|
## Example Usage
|
|
87
87
|
|
|
88
|
-
<!--Start PulumiCodeChooser -->
|
|
89
88
|
```python
|
|
90
89
|
import pulumi
|
|
91
90
|
import pulumi_vsphere as vsphere
|
|
@@ -94,7 +93,6 @@ def get_host(datacenter_id: Optional[str] = None,
|
|
|
94
93
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
95
94
|
datacenter_id=datacenter.id)
|
|
96
95
|
```
|
|
97
|
-
<!--End PulumiCodeChooser -->
|
|
98
96
|
|
|
99
97
|
|
|
100
98
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -129,7 +127,6 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
129
127
|
|
|
130
128
|
## Example Usage
|
|
131
129
|
|
|
132
|
-
<!--Start PulumiCodeChooser -->
|
|
133
130
|
```python
|
|
134
131
|
import pulumi
|
|
135
132
|
import pulumi_vsphere as vsphere
|
|
@@ -138,7 +135,6 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
138
135
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
139
136
|
datacenter_id=datacenter.id)
|
|
140
137
|
```
|
|
141
|
-
<!--End PulumiCodeChooser -->
|
|
142
138
|
|
|
143
139
|
|
|
144
140
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -106,7 +106,6 @@ 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 -->
|
|
110
109
|
```python
|
|
111
110
|
import pulumi
|
|
112
111
|
import pulumi_vsphere as vsphere
|
|
@@ -118,22 +117,19 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
118
117
|
class_id="123",
|
|
119
118
|
vendor_id="456")
|
|
120
119
|
```
|
|
121
|
-
<!--End PulumiCodeChooser -->
|
|
122
120
|
|
|
123
121
|
### With Name Regular Expression
|
|
124
122
|
|
|
125
|
-
<!--Start PulumiCodeChooser -->
|
|
126
123
|
```python
|
|
127
124
|
import pulumi
|
|
128
125
|
import pulumi_vsphere as vsphere
|
|
129
126
|
|
|
130
127
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
131
128
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
132
|
-
|
|
129
|
+
datacenter_id=datacenter.id)
|
|
133
130
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
134
|
-
|
|
131
|
+
name_regex="MMC")
|
|
135
132
|
```
|
|
136
|
-
<!--End PulumiCodeChooser -->
|
|
137
133
|
|
|
138
134
|
|
|
139
135
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -178,7 +174,6 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
178
174
|
|
|
179
175
|
### With Vendor ID And Class ID
|
|
180
176
|
|
|
181
|
-
<!--Start PulumiCodeChooser -->
|
|
182
177
|
```python
|
|
183
178
|
import pulumi
|
|
184
179
|
import pulumi_vsphere as vsphere
|
|
@@ -190,22 +185,19 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
190
185
|
class_id="123",
|
|
191
186
|
vendor_id="456")
|
|
192
187
|
```
|
|
193
|
-
<!--End PulumiCodeChooser -->
|
|
194
188
|
|
|
195
189
|
### With Name Regular Expression
|
|
196
190
|
|
|
197
|
-
<!--Start PulumiCodeChooser -->
|
|
198
191
|
```python
|
|
199
192
|
import pulumi
|
|
200
193
|
import pulumi_vsphere as vsphere
|
|
201
194
|
|
|
202
195
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
203
196
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
204
|
-
|
|
197
|
+
datacenter_id=datacenter.id)
|
|
205
198
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
206
|
-
|
|
199
|
+
name_regex="MMC")
|
|
207
200
|
```
|
|
208
|
-
<!--End PulumiCodeChooser -->
|
|
209
201
|
|
|
210
202
|
|
|
211
203
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -83,14 +83,12 @@ def get_host_thumbprint(address: Optional[str] = None,
|
|
|
83
83
|
|
|
84
84
|
## Example Usage
|
|
85
85
|
|
|
86
|
-
<!--Start PulumiCodeChooser -->
|
|
87
86
|
```python
|
|
88
87
|
import pulumi
|
|
89
88
|
import pulumi_vsphere as vsphere
|
|
90
89
|
|
|
91
90
|
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
|
|
92
91
|
```
|
|
93
|
-
<!--End PulumiCodeChooser -->
|
|
94
92
|
|
|
95
93
|
|
|
96
94
|
:param str address: The address of the ESXi host to retrieve the
|
|
@@ -126,14 +124,12 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
|
|
|
126
124
|
|
|
127
125
|
## Example Usage
|
|
128
126
|
|
|
129
|
-
<!--Start PulumiCodeChooser -->
|
|
130
127
|
```python
|
|
131
128
|
import pulumi
|
|
132
129
|
import pulumi_vsphere as vsphere
|
|
133
130
|
|
|
134
131
|
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
|
|
135
132
|
```
|
|
136
|
-
<!--End PulumiCodeChooser -->
|
|
137
133
|
|
|
138
134
|
|
|
139
135
|
:param str address: The address of the ESXi host to retrieve the
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'GetHostVgpuProfileResult',
|
|
15
|
+
'AwaitableGetHostVgpuProfileResult',
|
|
16
|
+
'get_host_vgpu_profile',
|
|
17
|
+
'get_host_vgpu_profile_output',
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
@pulumi.output_type
|
|
21
|
+
class GetHostVgpuProfileResult:
|
|
22
|
+
"""
|
|
23
|
+
A collection of values returned by getHostVgpuProfile.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(__self__, host_id=None, id=None, name_regex=None, vgpu_profiles=None):
|
|
26
|
+
if host_id and not isinstance(host_id, str):
|
|
27
|
+
raise TypeError("Expected argument 'host_id' to be a str")
|
|
28
|
+
pulumi.set(__self__, "host_id", host_id)
|
|
29
|
+
if id and not isinstance(id, str):
|
|
30
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
31
|
+
pulumi.set(__self__, "id", id)
|
|
32
|
+
if name_regex and not isinstance(name_regex, str):
|
|
33
|
+
raise TypeError("Expected argument 'name_regex' to be a str")
|
|
34
|
+
pulumi.set(__self__, "name_regex", name_regex)
|
|
35
|
+
if vgpu_profiles and not isinstance(vgpu_profiles, list):
|
|
36
|
+
raise TypeError("Expected argument 'vgpu_profiles' to be a list")
|
|
37
|
+
pulumi.set(__self__, "vgpu_profiles", vgpu_profiles)
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
@pulumi.getter(name="hostId")
|
|
41
|
+
def host_id(self) -> str:
|
|
42
|
+
"""
|
|
43
|
+
The [managed objectID][docs-about-morefs] of the ESXi host.
|
|
44
|
+
"""
|
|
45
|
+
return pulumi.get(self, "host_id")
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
@pulumi.getter
|
|
49
|
+
def id(self) -> str:
|
|
50
|
+
"""
|
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
|
52
|
+
"""
|
|
53
|
+
return pulumi.get(self, "id")
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
@pulumi.getter(name="nameRegex")
|
|
57
|
+
def name_regex(self) -> Optional[str]:
|
|
58
|
+
"""
|
|
59
|
+
(Optional) A regular expression that will be used to match the
|
|
60
|
+
host vGPU profile name.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "name_regex")
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter(name="vgpuProfiles")
|
|
66
|
+
def vgpu_profiles(self) -> Sequence['outputs.GetHostVgpuProfileVgpuProfileResult']:
|
|
67
|
+
"""
|
|
68
|
+
The list of available vGPU profiles on the ESXi host.
|
|
69
|
+
This may be and empty array if no vGPU profile are identified.
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "vgpu_profiles")
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class AwaitableGetHostVgpuProfileResult(GetHostVgpuProfileResult):
|
|
75
|
+
# pylint: disable=using-constant-test
|
|
76
|
+
def __await__(self):
|
|
77
|
+
if False:
|
|
78
|
+
yield self
|
|
79
|
+
return GetHostVgpuProfileResult(
|
|
80
|
+
host_id=self.host_id,
|
|
81
|
+
id=self.id,
|
|
82
|
+
name_regex=self.name_regex,
|
|
83
|
+
vgpu_profiles=self.vgpu_profiles)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
87
|
+
name_regex: Optional[str] = None,
|
|
88
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostVgpuProfileResult:
|
|
89
|
+
"""
|
|
90
|
+
The `get_host_vgpu_profile` data source can be used to discover the
|
|
91
|
+
available vGPU profiles of a vSphere host.
|
|
92
|
+
|
|
93
|
+
## Example Usage
|
|
94
|
+
|
|
95
|
+
### To Return All VGPU Profiles
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
import pulumi
|
|
99
|
+
import pulumi_vsphere as vsphere
|
|
100
|
+
|
|
101
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
102
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
103
|
+
datacenter_id=datacenter.id)
|
|
104
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### With VGPU Profile Name_regex
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
import pulumi
|
|
111
|
+
import pulumi_vsphere as vsphere
|
|
112
|
+
|
|
113
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
114
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
115
|
+
datacenter_id=datacenter.id)
|
|
116
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
117
|
+
name_regex="a100")
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
122
|
+
:param str name_regex: A regular expression that will be used to match the
|
|
123
|
+
host vGPU profile name.
|
|
124
|
+
|
|
125
|
+
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
126
|
+
"""
|
|
127
|
+
__args__ = dict()
|
|
128
|
+
__args__['hostId'] = host_id
|
|
129
|
+
__args__['nameRegex'] = name_regex
|
|
130
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
131
|
+
__ret__ = pulumi.runtime.invoke('vsphere:index/getHostVgpuProfile:getHostVgpuProfile', __args__, opts=opts, typ=GetHostVgpuProfileResult).value
|
|
132
|
+
|
|
133
|
+
return AwaitableGetHostVgpuProfileResult(
|
|
134
|
+
host_id=pulumi.get(__ret__, 'host_id'),
|
|
135
|
+
id=pulumi.get(__ret__, 'id'),
|
|
136
|
+
name_regex=pulumi.get(__ret__, 'name_regex'),
|
|
137
|
+
vgpu_profiles=pulumi.get(__ret__, 'vgpu_profiles'))
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
@_utilities.lift_output_func(get_host_vgpu_profile)
|
|
141
|
+
def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
142
|
+
name_regex: Optional[pulumi.Input[Optional[str]]] = None,
|
|
143
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostVgpuProfileResult]:
|
|
144
|
+
"""
|
|
145
|
+
The `get_host_vgpu_profile` data source can be used to discover the
|
|
146
|
+
available vGPU profiles of a vSphere host.
|
|
147
|
+
|
|
148
|
+
## Example Usage
|
|
149
|
+
|
|
150
|
+
### To Return All VGPU Profiles
|
|
151
|
+
|
|
152
|
+
```python
|
|
153
|
+
import pulumi
|
|
154
|
+
import pulumi_vsphere as vsphere
|
|
155
|
+
|
|
156
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
157
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
158
|
+
datacenter_id=datacenter.id)
|
|
159
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### With VGPU Profile Name_regex
|
|
163
|
+
|
|
164
|
+
```python
|
|
165
|
+
import pulumi
|
|
166
|
+
import pulumi_vsphere as vsphere
|
|
167
|
+
|
|
168
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
169
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
170
|
+
datacenter_id=datacenter.id)
|
|
171
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
172
|
+
name_regex="a100")
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
177
|
+
:param str name_regex: A regular expression that will be used to match the
|
|
178
|
+
host vGPU profile name.
|
|
179
|
+
|
|
180
|
+
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
181
|
+
"""
|
|
182
|
+
...
|
pulumi_vsphere/get_license.py
CHANGED
|
@@ -118,14 +118,12 @@ def get_license(license_key: Optional[str] = None,
|
|
|
118
118
|
|
|
119
119
|
## Example Usage
|
|
120
120
|
|
|
121
|
-
<!--Start PulumiCodeChooser -->
|
|
122
121
|
```python
|
|
123
122
|
import pulumi
|
|
124
123
|
import pulumi_vsphere as vsphere
|
|
125
124
|
|
|
126
125
|
license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
|
|
127
126
|
```
|
|
128
|
-
<!--End PulumiCodeChooser -->
|
|
129
127
|
|
|
130
128
|
|
|
131
129
|
:param str license_key: The license key.
|
|
@@ -154,14 +152,12 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
|
|
|
154
152
|
|
|
155
153
|
## Example Usage
|
|
156
154
|
|
|
157
|
-
<!--Start PulumiCodeChooser -->
|
|
158
155
|
```python
|
|
159
156
|
import pulumi
|
|
160
157
|
import pulumi_vsphere as vsphere
|
|
161
158
|
|
|
162
159
|
license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
|
|
163
160
|
```
|
|
164
|
-
<!--End PulumiCodeChooser -->
|
|
165
161
|
|
|
166
162
|
|
|
167
163
|
:param str license_key: The license key.
|
pulumi_vsphere/get_network.py
CHANGED
|
@@ -99,7 +99,6 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
99
99
|
|
|
100
100
|
## Example Usage
|
|
101
101
|
|
|
102
|
-
<!--Start PulumiCodeChooser -->
|
|
103
102
|
```python
|
|
104
103
|
import pulumi
|
|
105
104
|
import pulumi_vsphere as vsphere
|
|
@@ -108,7 +107,6 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
108
107
|
network = vsphere.get_network(name="VM Network",
|
|
109
108
|
datacenter_id=datacenter.id)
|
|
110
109
|
```
|
|
111
|
-
<!--End PulumiCodeChooser -->
|
|
112
110
|
|
|
113
111
|
|
|
114
112
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -150,7 +148,6 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
150
148
|
|
|
151
149
|
## Example Usage
|
|
152
150
|
|
|
153
|
-
<!--Start PulumiCodeChooser -->
|
|
154
151
|
```python
|
|
155
152
|
import pulumi
|
|
156
153
|
import pulumi_vsphere as vsphere
|
|
@@ -159,7 +156,6 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
159
156
|
network = vsphere.get_network(name="VM Network",
|
|
160
157
|
datacenter_id=datacenter.id)
|
|
161
158
|
```
|
|
162
|
-
<!--End PulumiCodeChooser -->
|
|
163
159
|
|
|
164
160
|
|
|
165
161
|
:param str datacenter_id: The managed object reference ID
|
pulumi_vsphere/get_policy.py
CHANGED
|
@@ -65,7 +65,6 @@ def get_policy(name: Optional[str] = None,
|
|
|
65
65
|
|
|
66
66
|
## Example Usage
|
|
67
67
|
|
|
68
|
-
<!--Start PulumiCodeChooser -->
|
|
69
68
|
```python
|
|
70
69
|
import pulumi
|
|
71
70
|
import pulumi_vsphere as vsphere
|
|
@@ -73,7 +72,6 @@ def get_policy(name: Optional[str] = None,
|
|
|
73
72
|
prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
|
|
74
73
|
dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
|
|
75
74
|
```
|
|
76
|
-
<!--End PulumiCodeChooser -->
|
|
77
75
|
|
|
78
76
|
|
|
79
77
|
:param str name: The name of the storage policy.
|
|
@@ -101,7 +99,6 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
101
99
|
|
|
102
100
|
## Example Usage
|
|
103
101
|
|
|
104
|
-
<!--Start PulumiCodeChooser -->
|
|
105
102
|
```python
|
|
106
103
|
import pulumi
|
|
107
104
|
import pulumi_vsphere as vsphere
|
|
@@ -109,7 +106,6 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
109
106
|
prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
|
|
110
107
|
dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
|
|
111
108
|
```
|
|
112
|
-
<!--End PulumiCodeChooser -->
|
|
113
109
|
|
|
114
110
|
|
|
115
111
|
:param str name: The name of the storage policy.
|
|
@@ -73,7 +73,6 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
73
73
|
|
|
74
74
|
## Example Usage
|
|
75
75
|
|
|
76
|
-
<!--Start PulumiCodeChooser -->
|
|
77
76
|
```python
|
|
78
77
|
import pulumi
|
|
79
78
|
import pulumi_vsphere as vsphere
|
|
@@ -82,7 +81,6 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
82
81
|
pool = vsphere.get_resource_pool(name="resource-pool-01",
|
|
83
82
|
datacenter_id=datacenter.id)
|
|
84
83
|
```
|
|
85
|
-
<!--End PulumiCodeChooser -->
|
|
86
84
|
|
|
87
85
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
88
86
|
|
|
@@ -94,15 +92,13 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
94
92
|
explicitly created. This resource pool is referred to as the
|
|
95
93
|
_root resource pool_ and can be looked up by specifying the path.
|
|
96
94
|
|
|
97
|
-
<!--Start PulumiCodeChooser -->
|
|
98
95
|
```python
|
|
99
96
|
import pulumi
|
|
100
97
|
import pulumi_vsphere as vsphere
|
|
101
98
|
|
|
102
99
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
103
|
-
datacenter_id=
|
|
100
|
+
datacenter_id=datacenter["id"])
|
|
104
101
|
```
|
|
105
|
-
<!--End PulumiCodeChooser -->
|
|
106
102
|
|
|
107
103
|
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
108
104
|
|
|
@@ -145,7 +141,6 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
145
141
|
|
|
146
142
|
## Example Usage
|
|
147
143
|
|
|
148
|
-
<!--Start PulumiCodeChooser -->
|
|
149
144
|
```python
|
|
150
145
|
import pulumi
|
|
151
146
|
import pulumi_vsphere as vsphere
|
|
@@ -154,7 +149,6 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
154
149
|
pool = vsphere.get_resource_pool(name="resource-pool-01",
|
|
155
150
|
datacenter_id=datacenter.id)
|
|
156
151
|
```
|
|
157
|
-
<!--End PulumiCodeChooser -->
|
|
158
152
|
|
|
159
153
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
160
154
|
|
|
@@ -166,15 +160,13 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
166
160
|
explicitly created. This resource pool is referred to as the
|
|
167
161
|
_root resource pool_ and can be looked up by specifying the path.
|
|
168
162
|
|
|
169
|
-
<!--Start PulumiCodeChooser -->
|
|
170
163
|
```python
|
|
171
164
|
import pulumi
|
|
172
165
|
import pulumi_vsphere as vsphere
|
|
173
166
|
|
|
174
167
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
175
|
-
datacenter_id=
|
|
168
|
+
datacenter_id=datacenter["id"])
|
|
176
169
|
```
|
|
177
|
-
<!--End PulumiCodeChooser -->
|
|
178
170
|
|
|
179
171
|
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
180
172
|
|
pulumi_vsphere/get_role.py
CHANGED
|
@@ -100,14 +100,12 @@ def get_role(description: Optional[str] = None,
|
|
|
100
100
|
|
|
101
101
|
## Example Usage
|
|
102
102
|
|
|
103
|
-
<!--Start PulumiCodeChooser -->
|
|
104
103
|
```python
|
|
105
104
|
import pulumi
|
|
106
105
|
import pulumi_vsphere as vsphere
|
|
107
106
|
|
|
108
107
|
terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
|
|
109
108
|
```
|
|
110
|
-
<!--End PulumiCodeChooser -->
|
|
111
109
|
|
|
112
110
|
|
|
113
111
|
:param str description: The description of the role.
|
|
@@ -142,14 +140,12 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
142
140
|
|
|
143
141
|
## Example Usage
|
|
144
142
|
|
|
145
|
-
<!--Start PulumiCodeChooser -->
|
|
146
143
|
```python
|
|
147
144
|
import pulumi
|
|
148
145
|
import pulumi_vsphere as vsphere
|
|
149
146
|
|
|
150
147
|
terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
|
|
151
148
|
```
|
|
152
|
-
<!--End PulumiCodeChooser -->
|
|
153
149
|
|
|
154
150
|
|
|
155
151
|
:param str description: The description of the role.
|
pulumi_vsphere/get_tag.py
CHANGED
|
@@ -86,7 +86,6 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
86
86
|
|
|
87
87
|
## Example Usage
|
|
88
88
|
|
|
89
|
-
<!--Start PulumiCodeChooser -->
|
|
90
89
|
```python
|
|
91
90
|
import pulumi
|
|
92
91
|
import pulumi_vsphere as vsphere
|
|
@@ -95,7 +94,6 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
95
94
|
tag = vsphere.get_tag(name="example-tag",
|
|
96
95
|
category_id=category.id)
|
|
97
96
|
```
|
|
98
|
-
<!--End PulumiCodeChooser -->
|
|
99
97
|
|
|
100
98
|
|
|
101
99
|
:param str category_id: The ID of the tag category in which the tag is
|
|
@@ -131,7 +129,6 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
131
129
|
|
|
132
130
|
## Example Usage
|
|
133
131
|
|
|
134
|
-
<!--Start PulumiCodeChooser -->
|
|
135
132
|
```python
|
|
136
133
|
import pulumi
|
|
137
134
|
import pulumi_vsphere as vsphere
|
|
@@ -140,7 +137,6 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
140
137
|
tag = vsphere.get_tag(name="example-tag",
|
|
141
138
|
category_id=category.id)
|
|
142
139
|
```
|
|
143
|
-
<!--End PulumiCodeChooser -->
|
|
144
140
|
|
|
145
141
|
|
|
146
142
|
:param str category_id: The ID of the tag category in which the tag is
|
|
@@ -94,14 +94,12 @@ def get_tag_category(name: Optional[str] = None,
|
|
|
94
94
|
|
|
95
95
|
## Example Usage
|
|
96
96
|
|
|
97
|
-
<!--Start PulumiCodeChooser -->
|
|
98
97
|
```python
|
|
99
98
|
import pulumi
|
|
100
99
|
import pulumi_vsphere as vsphere
|
|
101
100
|
|
|
102
101
|
category = vsphere.get_tag_category(name="example-category")
|
|
103
102
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
103
|
|
|
106
104
|
|
|
107
105
|
:param str name: The name of the tag category.
|
|
@@ -134,14 +132,12 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
134
132
|
|
|
135
133
|
## Example Usage
|
|
136
134
|
|
|
137
|
-
<!--Start PulumiCodeChooser -->
|
|
138
135
|
```python
|
|
139
136
|
import pulumi
|
|
140
137
|
import pulumi_vsphere as vsphere
|
|
141
138
|
|
|
142
139
|
category = vsphere.get_tag_category(name="example-category")
|
|
143
140
|
```
|
|
144
|
-
<!--End PulumiCodeChooser -->
|
|
145
141
|
|
|
146
142
|
|
|
147
143
|
:param str name: The name of the tag category.
|