pulumi-vsphere 4.11.0__py3-none-any.whl → 4.11.0a1710920591__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 +236 -646
- pulumi_vsphere/_utilities.py +4 -40
- pulumi_vsphere/compute_cluster.py +1486 -756
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +34 -42
- pulumi_vsphere/content_library.py +10 -10
- pulumi_vsphere/datacenter.py +40 -33
- pulumi_vsphere/datastore_cluster.py +364 -154
- pulumi_vsphere/distributed_port_group.py +187 -131
- pulumi_vsphere/distributed_virtual_switch.py +828 -310
- pulumi_vsphere/entity_permissions.py +38 -59
- pulumi_vsphere/file.py +24 -16
- pulumi_vsphere/folder.py +28 -7
- pulumi_vsphere/get_compute_cluster.py +4 -0
- pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +8 -12
- pulumi_vsphere/get_custom_attribute.py +4 -0
- pulumi_vsphere/get_datacenter.py +4 -0
- pulumi_vsphere/get_datastore.py +16 -12
- pulumi_vsphere/get_datastore_cluster.py +4 -0
- pulumi_vsphere/get_datastore_stats.py +52 -46
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
- pulumi_vsphere/get_dynamic.py +20 -18
- pulumi_vsphere/get_folder.py +6 -10
- pulumi_vsphere/get_guest_os_customization.py +47 -8
- pulumi_vsphere/get_host.py +4 -0
- pulumi_vsphere/get_host_pci_device.py +14 -8
- pulumi_vsphere/get_host_thumbprint.py +16 -12
- pulumi_vsphere/get_host_vgpu_profile.py +10 -4
- pulumi_vsphere/get_license.py +5 -2
- pulumi_vsphere/get_network.py +18 -14
- pulumi_vsphere/get_policy.py +4 -0
- pulumi_vsphere/get_resource_pool.py +18 -14
- pulumi_vsphere/get_role.py +8 -4
- 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 +43 -60
- pulumi_vsphere/get_vmfs_disks.py +4 -0
- pulumi_vsphere/guest_os_customization.py +5 -55
- pulumi_vsphere/ha_vm_override.py +378 -189
- pulumi_vsphere/host.py +60 -49
- pulumi_vsphere/host_port_group.py +26 -14
- pulumi_vsphere/host_virtual_switch.py +287 -140
- pulumi_vsphere/license.py +32 -0
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/outputs.py +270 -672
- pulumi_vsphere/provider.py +6 -2
- pulumi_vsphere/pulumi-plugin.json +1 -2
- pulumi_vsphere/resource_pool.py +24 -50
- pulumi_vsphere/virtual_disk.py +34 -42
- pulumi_vsphere/virtual_machine.py +827 -598
- pulumi_vsphere/virtual_machine_snapshot.py +12 -8
- pulumi_vsphere/vm_storage_policy.py +127 -115
- pulumi_vsphere/vnic.py +105 -89
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +1 -1
- pulumi_vsphere/get_host_base_images.py +0 -97
- pulumi_vsphere/offline_software_depot.py +0 -180
- pulumi_vsphere/supervisor.py +0 -962
- pulumi_vsphere/virtual_machine_class.py +0 -442
- pulumi_vsphere-4.11.0.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
pulumi_vsphere/get_datacenter.py
CHANGED
|
@@ -63,12 +63,14 @@ def get_datacenter(name: Optional[str] = None,
|
|
|
63
63
|
|
|
64
64
|
## Example Usage
|
|
65
65
|
|
|
66
|
+
<!--Start PulumiCodeChooser -->
|
|
66
67
|
```python
|
|
67
68
|
import pulumi
|
|
68
69
|
import pulumi_vsphere as vsphere
|
|
69
70
|
|
|
70
71
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
71
72
|
```
|
|
73
|
+
<!--End PulumiCodeChooser -->
|
|
72
74
|
|
|
73
75
|
|
|
74
76
|
:param str name: The name of the datacenter. This can be a name or path.
|
|
@@ -100,12 +102,14 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
100
102
|
|
|
101
103
|
## Example Usage
|
|
102
104
|
|
|
105
|
+
<!--Start PulumiCodeChooser -->
|
|
103
106
|
```python
|
|
104
107
|
import pulumi
|
|
105
108
|
import pulumi_vsphere as vsphere
|
|
106
109
|
|
|
107
110
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
108
111
|
```
|
|
112
|
+
<!--End PulumiCodeChooser -->
|
|
109
113
|
|
|
110
114
|
|
|
111
115
|
:param str name: The name of the datacenter. This can be a name or path.
|
pulumi_vsphere/get_datastore.py
CHANGED
|
@@ -55,11 +55,11 @@ class GetDatastoreResult:
|
|
|
55
55
|
|
|
56
56
|
@property
|
|
57
57
|
@pulumi.getter
|
|
58
|
-
def stats(self) -> Optional[Mapping[str,
|
|
58
|
+
def stats(self) -> Optional[Mapping[str, Any]]:
|
|
59
59
|
"""
|
|
60
|
-
The disk space usage statistics for the specific datastore. The
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
The disk space usage statistics for the specific datastore. The total
|
|
61
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
62
|
+
represented as `free`.
|
|
63
63
|
"""
|
|
64
64
|
return pulumi.get(self, "stats")
|
|
65
65
|
|
|
@@ -78,7 +78,7 @@ class AwaitableGetDatastoreResult(GetDatastoreResult):
|
|
|
78
78
|
|
|
79
79
|
def get_datastore(datacenter_id: Optional[str] = None,
|
|
80
80
|
name: Optional[str] = None,
|
|
81
|
-
stats: Optional[Mapping[str,
|
|
81
|
+
stats: Optional[Mapping[str, Any]] = None,
|
|
82
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreResult:
|
|
83
83
|
"""
|
|
84
84
|
The `get_datastore` data source can be used to discover the ID of a
|
|
@@ -88,6 +88,7 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
88
88
|
|
|
89
89
|
## Example Usage
|
|
90
90
|
|
|
91
|
+
<!--Start PulumiCodeChooser -->
|
|
91
92
|
```python
|
|
92
93
|
import pulumi
|
|
93
94
|
import pulumi_vsphere as vsphere
|
|
@@ -96,6 +97,7 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
96
97
|
datastore = vsphere.get_datastore(name="datastore-01",
|
|
97
98
|
datacenter_id=datacenter.id)
|
|
98
99
|
```
|
|
100
|
+
<!--End PulumiCodeChooser -->
|
|
99
101
|
|
|
100
102
|
|
|
101
103
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -103,9 +105,9 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
103
105
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
104
106
|
the `id` attribute from an empty `Datacenter` data source.
|
|
105
107
|
:param str name: The name of the datastore. This can be a name or path.
|
|
106
|
-
:param Mapping[str,
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
|
|
109
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
110
|
+
represented as `free`.
|
|
109
111
|
"""
|
|
110
112
|
__args__ = dict()
|
|
111
113
|
__args__['datacenterId'] = datacenter_id
|
|
@@ -124,7 +126,7 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
124
126
|
@_utilities.lift_output_func(get_datastore)
|
|
125
127
|
def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
126
128
|
name: Optional[pulumi.Input[str]] = None,
|
|
127
|
-
stats: Optional[pulumi.Input[Optional[Mapping[str,
|
|
129
|
+
stats: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
128
130
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreResult]:
|
|
129
131
|
"""
|
|
130
132
|
The `get_datastore` data source can be used to discover the ID of a
|
|
@@ -134,6 +136,7 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
134
136
|
|
|
135
137
|
## Example Usage
|
|
136
138
|
|
|
139
|
+
<!--Start PulumiCodeChooser -->
|
|
137
140
|
```python
|
|
138
141
|
import pulumi
|
|
139
142
|
import pulumi_vsphere as vsphere
|
|
@@ -142,6 +145,7 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
142
145
|
datastore = vsphere.get_datastore(name="datastore-01",
|
|
143
146
|
datacenter_id=datacenter.id)
|
|
144
147
|
```
|
|
148
|
+
<!--End PulumiCodeChooser -->
|
|
145
149
|
|
|
146
150
|
|
|
147
151
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -149,8 +153,8 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
149
153
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
150
154
|
the `id` attribute from an empty `Datacenter` data source.
|
|
151
155
|
:param str name: The name of the datastore. This can be a name or path.
|
|
152
|
-
:param Mapping[str,
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
|
|
157
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
158
|
+
represented as `free`.
|
|
155
159
|
"""
|
|
156
160
|
...
|
|
@@ -73,6 +73,7 @@ def get_datastore_cluster(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_datastore_cluster(datacenter_id: Optional[str] = None,
|
|
|
81
82
|
datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-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
|
|
@@ -114,6 +116,7 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
|
|
|
114
116
|
|
|
115
117
|
## Example Usage
|
|
116
118
|
|
|
119
|
+
<!--Start PulumiCodeChooser -->
|
|
117
120
|
```python
|
|
118
121
|
import pulumi
|
|
119
122
|
import pulumi_vsphere as vsphere
|
|
@@ -122,6 +125,7 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
|
|
|
122
125
|
datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-01",
|
|
123
126
|
datacenter_id=datacenter.id)
|
|
124
127
|
```
|
|
128
|
+
<!--End PulumiCodeChooser -->
|
|
125
129
|
|
|
126
130
|
|
|
127
131
|
:param str datacenter_id: The managed object reference
|
|
@@ -37,10 +37,10 @@ class GetDatastoreStatsResult:
|
|
|
37
37
|
|
|
38
38
|
@property
|
|
39
39
|
@pulumi.getter
|
|
40
|
-
def capacity(self) -> Optional[Mapping[str,
|
|
40
|
+
def capacity(self) -> Optional[Mapping[str, Any]]:
|
|
41
41
|
"""
|
|
42
|
-
A mapping of the capacity for all datastore in the datacenter
|
|
43
|
-
where the name of the datastore is used as key and the capacity as value.
|
|
42
|
+
A mapping of the capacity for all datastore in the datacenter
|
|
43
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
44
44
|
"""
|
|
45
45
|
return pulumi.get(self, "capacity")
|
|
46
46
|
|
|
@@ -48,18 +48,18 @@ class GetDatastoreStatsResult:
|
|
|
48
48
|
@pulumi.getter(name="datacenterId")
|
|
49
49
|
def datacenter_id(self) -> str:
|
|
50
50
|
"""
|
|
51
|
-
The [managed object reference ID][docs-about-morefs]
|
|
52
|
-
datacenter the datastores are located in.
|
|
51
|
+
The [managed object reference ID][docs-about-morefs]
|
|
52
|
+
of the datacenter the datastores are located in.
|
|
53
53
|
"""
|
|
54
54
|
return pulumi.get(self, "datacenter_id")
|
|
55
55
|
|
|
56
56
|
@property
|
|
57
57
|
@pulumi.getter(name="freeSpace")
|
|
58
|
-
def free_space(self) -> Optional[Mapping[str,
|
|
58
|
+
def free_space(self) -> Optional[Mapping[str, Any]]:
|
|
59
59
|
"""
|
|
60
60
|
A mapping of the free space for each datastore in the
|
|
61
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
62
|
-
as value.
|
|
61
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
62
|
+
space as value.
|
|
63
63
|
"""
|
|
64
64
|
return pulumi.get(self, "free_space")
|
|
65
65
|
|
|
@@ -84,18 +84,18 @@ class AwaitableGetDatastoreStatsResult(GetDatastoreStatsResult):
|
|
|
84
84
|
id=self.id)
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
def get_datastore_stats(capacity: Optional[Mapping[str,
|
|
87
|
+
def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
88
88
|
datacenter_id: Optional[str] = None,
|
|
89
|
-
free_space: Optional[Mapping[str,
|
|
89
|
+
free_space: Optional[Mapping[str, Any]] = None,
|
|
90
90
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreStatsResult:
|
|
91
91
|
"""
|
|
92
|
-
The `get_datastore_stats` data source can be used to retrieve the usage
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
sources.
|
|
92
|
+
The `get_datastore_stats` data source can be used to retrieve the usage stats
|
|
93
|
+
of all vSphere datastore objects in a datacenter. This can then be used as a
|
|
94
|
+
standalone datasource to get information required as input to other data sources.
|
|
96
95
|
|
|
97
96
|
## Example Usage
|
|
98
97
|
|
|
98
|
+
<!--Start PulumiCodeChooser -->
|
|
99
99
|
```python
|
|
100
100
|
import pulumi
|
|
101
101
|
import pulumi_vsphere as vsphere
|
|
@@ -103,33 +103,36 @@ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
|
|
|
103
103
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
104
104
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
105
105
|
```
|
|
106
|
+
<!--End PulumiCodeChooser -->
|
|
106
107
|
|
|
107
|
-
A
|
|
108
|
-
the most free space. For example, in addition to
|
|
108
|
+
A usefull example of this datasource would be to determine the
|
|
109
|
+
datastore with the most free space. For example, in addition to
|
|
110
|
+
the above:
|
|
109
111
|
|
|
110
112
|
Create an `outputs.tf` like that:
|
|
111
113
|
|
|
114
|
+
<!--Start PulumiCodeChooser -->
|
|
112
115
|
```python
|
|
113
116
|
import pulumi
|
|
114
117
|
|
|
115
|
-
pulumi.export("maxFreeSpaceName",
|
|
116
|
-
pulumi.export("maxFreeSpace",
|
|
118
|
+
pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
|
|
119
|
+
pulumi.export("maxFreeSpace", local["max_free_space"])
|
|
117
120
|
```
|
|
121
|
+
<!--End PulumiCodeChooser -->
|
|
118
122
|
|
|
119
123
|
and a `locals.tf` like that:
|
|
120
124
|
|
|
121
125
|
|
|
122
|
-
:param Mapping[str,
|
|
123
|
-
where the name of the datastore is used as key and the capacity as value.
|
|
124
|
-
:param str datacenter_id: The
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
from an empty `Datacenter` data source.
|
|
126
|
+
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
127
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
128
|
+
:param str datacenter_id: The [managed object reference ID][docs-about-morefs]
|
|
129
|
+
of the datacenter the datastores are located in. For default datacenters, use
|
|
130
|
+
the `id` attribute from an empty `Datacenter` data source.
|
|
128
131
|
|
|
129
132
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
130
|
-
:param Mapping[str,
|
|
131
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
132
|
-
as value.
|
|
133
|
+
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
134
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
135
|
+
space as value.
|
|
133
136
|
"""
|
|
134
137
|
__args__ = dict()
|
|
135
138
|
__args__['capacity'] = capacity
|
|
@@ -146,18 +149,18 @@ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
|
|
|
146
149
|
|
|
147
150
|
|
|
148
151
|
@_utilities.lift_output_func(get_datastore_stats)
|
|
149
|
-
def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str,
|
|
152
|
+
def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
150
153
|
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
151
|
-
free_space: Optional[pulumi.Input[Optional[Mapping[str,
|
|
154
|
+
free_space: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
152
155
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreStatsResult]:
|
|
153
156
|
"""
|
|
154
|
-
The `get_datastore_stats` data source can be used to retrieve the usage
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
sources.
|
|
157
|
+
The `get_datastore_stats` data source can be used to retrieve the usage stats
|
|
158
|
+
of all vSphere datastore objects in a datacenter. This can then be used as a
|
|
159
|
+
standalone datasource to get information required as input to other data sources.
|
|
158
160
|
|
|
159
161
|
## Example Usage
|
|
160
162
|
|
|
163
|
+
<!--Start PulumiCodeChooser -->
|
|
161
164
|
```python
|
|
162
165
|
import pulumi
|
|
163
166
|
import pulumi_vsphere as vsphere
|
|
@@ -165,32 +168,35 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
165
168
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
166
169
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
167
170
|
```
|
|
171
|
+
<!--End PulumiCodeChooser -->
|
|
168
172
|
|
|
169
|
-
A
|
|
170
|
-
the most free space. For example, in addition to
|
|
173
|
+
A usefull example of this datasource would be to determine the
|
|
174
|
+
datastore with the most free space. For example, in addition to
|
|
175
|
+
the above:
|
|
171
176
|
|
|
172
177
|
Create an `outputs.tf` like that:
|
|
173
178
|
|
|
179
|
+
<!--Start PulumiCodeChooser -->
|
|
174
180
|
```python
|
|
175
181
|
import pulumi
|
|
176
182
|
|
|
177
|
-
pulumi.export("maxFreeSpaceName",
|
|
178
|
-
pulumi.export("maxFreeSpace",
|
|
183
|
+
pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
|
|
184
|
+
pulumi.export("maxFreeSpace", local["max_free_space"])
|
|
179
185
|
```
|
|
186
|
+
<!--End PulumiCodeChooser -->
|
|
180
187
|
|
|
181
188
|
and a `locals.tf` like that:
|
|
182
189
|
|
|
183
190
|
|
|
184
|
-
:param Mapping[str,
|
|
185
|
-
where the name of the datastore is used as key and the capacity as value.
|
|
186
|
-
:param str datacenter_id: The
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
from an empty `Datacenter` data source.
|
|
191
|
+
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
192
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
193
|
+
:param str datacenter_id: The [managed object reference ID][docs-about-morefs]
|
|
194
|
+
of the datacenter the datastores are located in. For default datacenters, use
|
|
195
|
+
the `id` attribute from an empty `Datacenter` data source.
|
|
190
196
|
|
|
191
197
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
192
|
-
:param Mapping[str,
|
|
193
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
194
|
-
as value.
|
|
198
|
+
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
199
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
200
|
+
space as value.
|
|
195
201
|
"""
|
|
196
202
|
...
|
|
@@ -97,6 +97,7 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
|
|
|
97
97
|
`DistributedPortGroup` resource that uses the first uplink as a
|
|
98
98
|
primary uplink and the second uplink as a secondary.
|
|
99
99
|
|
|
100
|
+
<!--Start PulumiCodeChooser -->
|
|
100
101
|
```python
|
|
101
102
|
import pulumi
|
|
102
103
|
import pulumi_vsphere as vsphere
|
|
@@ -105,11 +106,11 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
|
|
|
105
106
|
vds = vsphere.get_distributed_virtual_switch(name="vds-01",
|
|
106
107
|
datacenter_id=datacenter.id)
|
|
107
108
|
dvpg = vsphere.DistributedPortGroup("dvpg",
|
|
108
|
-
name="dvpg-01",
|
|
109
109
|
distributed_virtual_switch_uuid=vds.id,
|
|
110
110
|
active_uplinks=[vds.uplinks[0]],
|
|
111
111
|
standby_uplinks=[vds.uplinks[1]])
|
|
112
112
|
```
|
|
113
|
+
<!--End PulumiCodeChooser -->
|
|
113
114
|
|
|
114
115
|
|
|
115
116
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -152,6 +153,7 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
|
|
|
152
153
|
`DistributedPortGroup` resource that uses the first uplink as a
|
|
153
154
|
primary uplink and the second uplink as a secondary.
|
|
154
155
|
|
|
156
|
+
<!--Start PulumiCodeChooser -->
|
|
155
157
|
```python
|
|
156
158
|
import pulumi
|
|
157
159
|
import pulumi_vsphere as vsphere
|
|
@@ -160,11 +162,11 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
|
|
|
160
162
|
vds = vsphere.get_distributed_virtual_switch(name="vds-01",
|
|
161
163
|
datacenter_id=datacenter.id)
|
|
162
164
|
dvpg = vsphere.DistributedPortGroup("dvpg",
|
|
163
|
-
name="dvpg-01",
|
|
164
165
|
distributed_virtual_switch_uuid=vds.id,
|
|
165
166
|
active_uplinks=[vds.uplinks[0]],
|
|
166
167
|
standby_uplinks=[vds.uplinks[1]])
|
|
167
168
|
```
|
|
169
|
+
<!--End PulumiCodeChooser -->
|
|
168
170
|
|
|
169
171
|
|
|
170
172
|
:param str datacenter_id: The managed object reference ID
|
pulumi_vsphere/get_dynamic.py
CHANGED
|
@@ -78,22 +78,22 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
78
78
|
"""
|
|
79
79
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
80
80
|
|
|
81
|
-
The `get_dynamic` data source can be used to get the
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
to filter objects by name.
|
|
81
|
+
The `get_dynamic` data source can be used to get the [managed object reference ID][docs-about-morefs]
|
|
82
|
+
of any tagged managed object in vCenter Server by providing a list of tag IDs
|
|
83
|
+
and an optional regular expression to filter objects by name.
|
|
85
84
|
|
|
86
85
|
## Example Usage
|
|
87
86
|
|
|
87
|
+
<!--Start PulumiCodeChooser -->
|
|
88
88
|
```python
|
|
89
89
|
import pulumi
|
|
90
90
|
import pulumi_vsphere as vsphere
|
|
91
91
|
|
|
92
92
|
category = vsphere.get_tag_category(name="SomeCategory")
|
|
93
93
|
tag1 = vsphere.get_tag(name="FirstTag",
|
|
94
|
-
category_id=cat["id"])
|
|
94
|
+
category_id=data["vsphere_tag_category"]["cat"]["id"])
|
|
95
95
|
tag2 = vsphere.get_tag(name="SecondTag",
|
|
96
|
-
category_id=cat["id"])
|
|
96
|
+
category_id=data["vsphere_tag_category"]["cat"]["id"])
|
|
97
97
|
dyn = vsphere.get_dynamic(filters=[
|
|
98
98
|
tag1.id,
|
|
99
99
|
tag1.id,
|
|
@@ -101,15 +101,16 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
101
101
|
name_regex="ubuntu",
|
|
102
102
|
type="Datacenter")
|
|
103
103
|
```
|
|
104
|
+
<!--End PulumiCodeChooser -->
|
|
104
105
|
|
|
105
106
|
|
|
106
107
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
107
108
|
be a match.
|
|
108
|
-
:param str name_regex: A regular expression that will be used to match
|
|
109
|
-
object's name.
|
|
109
|
+
:param str name_regex: A regular expression that will be used to match
|
|
110
|
+
the object's name.
|
|
110
111
|
:param str type: The managed object type the returned object must match.
|
|
111
112
|
The managed object types can be found in the managed object type section
|
|
112
|
-
[here](https://developer.
|
|
113
|
+
[here](https://developer.vmware.com/apis/968/vsphere).
|
|
113
114
|
"""
|
|
114
115
|
__args__ = dict()
|
|
115
116
|
__args__['filters'] = filters
|
|
@@ -133,22 +134,22 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
133
134
|
"""
|
|
134
135
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
135
136
|
|
|
136
|
-
The `get_dynamic` data source can be used to get the
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
to filter objects by name.
|
|
137
|
+
The `get_dynamic` data source can be used to get the [managed object reference ID][docs-about-morefs]
|
|
138
|
+
of any tagged managed object in vCenter Server by providing a list of tag IDs
|
|
139
|
+
and an optional regular expression to filter objects by name.
|
|
140
140
|
|
|
141
141
|
## Example Usage
|
|
142
142
|
|
|
143
|
+
<!--Start PulumiCodeChooser -->
|
|
143
144
|
```python
|
|
144
145
|
import pulumi
|
|
145
146
|
import pulumi_vsphere as vsphere
|
|
146
147
|
|
|
147
148
|
category = vsphere.get_tag_category(name="SomeCategory")
|
|
148
149
|
tag1 = vsphere.get_tag(name="FirstTag",
|
|
149
|
-
category_id=cat["id"])
|
|
150
|
+
category_id=data["vsphere_tag_category"]["cat"]["id"])
|
|
150
151
|
tag2 = vsphere.get_tag(name="SecondTag",
|
|
151
|
-
category_id=cat["id"])
|
|
152
|
+
category_id=data["vsphere_tag_category"]["cat"]["id"])
|
|
152
153
|
dyn = vsphere.get_dynamic(filters=[
|
|
153
154
|
tag1.id,
|
|
154
155
|
tag1.id,
|
|
@@ -156,14 +157,15 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
156
157
|
name_regex="ubuntu",
|
|
157
158
|
type="Datacenter")
|
|
158
159
|
```
|
|
160
|
+
<!--End PulumiCodeChooser -->
|
|
159
161
|
|
|
160
162
|
|
|
161
163
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
162
164
|
be a match.
|
|
163
|
-
:param str name_regex: A regular expression that will be used to match
|
|
164
|
-
object's name.
|
|
165
|
+
:param str name_regex: A regular expression that will be used to match
|
|
166
|
+
the object's name.
|
|
165
167
|
:param str type: The managed object type the returned object must match.
|
|
166
168
|
The managed object types can be found in the managed object type section
|
|
167
|
-
[here](https://developer.
|
|
169
|
+
[here](https://developer.vmware.com/apis/968/vsphere).
|
|
168
170
|
"""
|
|
169
171
|
...
|
pulumi_vsphere/get_folder.py
CHANGED
|
@@ -57,20 +57,18 @@ def get_folder(path: Optional[str] = None,
|
|
|
57
57
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFolderResult:
|
|
58
58
|
"""
|
|
59
59
|
The `Folder` data source can be used to get the general attributes of a
|
|
60
|
-
vSphere inventory folder.
|
|
61
|
-
major types - datacenter folders, host and cluster folders, virtual machine
|
|
62
|
-
folders, storage folders, and network folders.
|
|
63
|
-
|
|
64
|
-
Paths are absolute and must include the datacenter.
|
|
60
|
+
vSphere inventory folder. Paths are absolute and must include the datacenter.
|
|
65
61
|
|
|
66
62
|
## Example Usage
|
|
67
63
|
|
|
64
|
+
<!--Start PulumiCodeChooser -->
|
|
68
65
|
```python
|
|
69
66
|
import pulumi
|
|
70
67
|
import pulumi_vsphere as vsphere
|
|
71
68
|
|
|
72
69
|
folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
|
|
73
70
|
```
|
|
71
|
+
<!--End PulumiCodeChooser -->
|
|
74
72
|
|
|
75
73
|
|
|
76
74
|
:param str path: The absolute path of the folder. For example, given a
|
|
@@ -94,20 +92,18 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
|
|
|
94
92
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFolderResult]:
|
|
95
93
|
"""
|
|
96
94
|
The `Folder` data source can be used to get the general attributes of a
|
|
97
|
-
vSphere inventory folder.
|
|
98
|
-
major types - datacenter folders, host and cluster folders, virtual machine
|
|
99
|
-
folders, storage folders, and network folders.
|
|
100
|
-
|
|
101
|
-
Paths are absolute and must include the datacenter.
|
|
95
|
+
vSphere inventory folder. Paths are absolute and must include the datacenter.
|
|
102
96
|
|
|
103
97
|
## Example Usage
|
|
104
98
|
|
|
99
|
+
<!--Start PulumiCodeChooser -->
|
|
105
100
|
```python
|
|
106
101
|
import pulumi
|
|
107
102
|
import pulumi_vsphere as vsphere
|
|
108
103
|
|
|
109
104
|
folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
|
|
110
105
|
```
|
|
106
|
+
<!--End PulumiCodeChooser -->
|
|
111
107
|
|
|
112
108
|
|
|
113
109
|
:param str path: The absolute path of the folder. For example, given a
|
|
@@ -48,11 +48,17 @@ class GetGuestOsCustomizationResult:
|
|
|
48
48
|
@property
|
|
49
49
|
@pulumi.getter(name="changeVersion")
|
|
50
50
|
def change_version(self) -> str:
|
|
51
|
+
"""
|
|
52
|
+
The number of last changed version to the customization specification.
|
|
53
|
+
"""
|
|
51
54
|
return pulumi.get(self, "change_version")
|
|
52
55
|
|
|
53
56
|
@property
|
|
54
57
|
@pulumi.getter
|
|
55
58
|
def description(self) -> str:
|
|
59
|
+
"""
|
|
60
|
+
The description for the customization specification.
|
|
61
|
+
"""
|
|
56
62
|
return pulumi.get(self, "description")
|
|
57
63
|
|
|
58
64
|
@property
|
|
@@ -66,6 +72,9 @@ class GetGuestOsCustomizationResult:
|
|
|
66
72
|
@property
|
|
67
73
|
@pulumi.getter(name="lastUpdateTime")
|
|
68
74
|
def last_update_time(self) -> str:
|
|
75
|
+
"""
|
|
76
|
+
The time of last modification to the customization specification.
|
|
77
|
+
"""
|
|
69
78
|
return pulumi.get(self, "last_update_time")
|
|
70
79
|
|
|
71
80
|
@property
|
|
@@ -76,11 +85,17 @@ class GetGuestOsCustomizationResult:
|
|
|
76
85
|
@property
|
|
77
86
|
@pulumi.getter
|
|
78
87
|
def specs(self) -> Sequence['outputs.GetGuestOsCustomizationSpecResult']:
|
|
88
|
+
"""
|
|
89
|
+
Container object for the guest operating system properties to be customized. See virtual machine customizations
|
|
90
|
+
"""
|
|
79
91
|
return pulumi.get(self, "specs")
|
|
80
92
|
|
|
81
93
|
@property
|
|
82
94
|
@pulumi.getter
|
|
83
95
|
def type(self) -> str:
|
|
96
|
+
"""
|
|
97
|
+
The type of customization specification: One among: Windows, Linux.
|
|
98
|
+
"""
|
|
84
99
|
return pulumi.get(self, "type")
|
|
85
100
|
|
|
86
101
|
|
|
@@ -102,12 +117,24 @@ class AwaitableGetGuestOsCustomizationResult(GetGuestOsCustomizationResult):
|
|
|
102
117
|
def get_guest_os_customization(name: Optional[str] = None,
|
|
103
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGuestOsCustomizationResult:
|
|
104
119
|
"""
|
|
105
|
-
The `GuestOsCustomization` data source can be used to discover the
|
|
106
|
-
|
|
120
|
+
The `GuestOsCustomization` data source can be used to discover the details about a customization specification for a guest operating system.
|
|
121
|
+
|
|
122
|
+
Suggested change
|
|
123
|
+
> **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance.
|
|
124
|
+
|
|
125
|
+
## Example Usage
|
|
126
|
+
|
|
127
|
+
<!--Start PulumiCodeChooser -->
|
|
128
|
+
```python
|
|
129
|
+
import pulumi
|
|
130
|
+
import pulumi_vsphere as vsphere
|
|
131
|
+
|
|
132
|
+
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
133
|
+
```
|
|
134
|
+
<!--End PulumiCodeChooser -->
|
|
107
135
|
|
|
108
136
|
|
|
109
|
-
:param str name: The name of the customization specification is the unique
|
|
110
|
-
identifier per vCenter Server instance. ## Attribute Reference
|
|
137
|
+
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
111
138
|
"""
|
|
112
139
|
__args__ = dict()
|
|
113
140
|
__args__['name'] = name
|
|
@@ -128,11 +155,23 @@ def get_guest_os_customization(name: Optional[str] = None,
|
|
|
128
155
|
def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
|
|
129
156
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
|
|
130
157
|
"""
|
|
131
|
-
The `GuestOsCustomization` data source can be used to discover the
|
|
132
|
-
|
|
158
|
+
The `GuestOsCustomization` data source can be used to discover the details about a customization specification for a guest operating system.
|
|
159
|
+
|
|
160
|
+
Suggested change
|
|
161
|
+
> **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance.
|
|
162
|
+
|
|
163
|
+
## Example Usage
|
|
164
|
+
|
|
165
|
+
<!--Start PulumiCodeChooser -->
|
|
166
|
+
```python
|
|
167
|
+
import pulumi
|
|
168
|
+
import pulumi_vsphere as vsphere
|
|
169
|
+
|
|
170
|
+
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
171
|
+
```
|
|
172
|
+
<!--End PulumiCodeChooser -->
|
|
133
173
|
|
|
134
174
|
|
|
135
|
-
:param str name: The name of the customization specification is the unique
|
|
136
|
-
identifier per vCenter Server instance. ## Attribute Reference
|
|
175
|
+
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
137
176
|
"""
|
|
138
177
|
...
|
pulumi_vsphere/get_host.py
CHANGED
|
@@ -85,6 +85,7 @@ def get_host(datacenter_id: Optional[str] = None,
|
|
|
85
85
|
|
|
86
86
|
## Example Usage
|
|
87
87
|
|
|
88
|
+
<!--Start PulumiCodeChooser -->
|
|
88
89
|
```python
|
|
89
90
|
import pulumi
|
|
90
91
|
import pulumi_vsphere as vsphere
|
|
@@ -93,6 +94,7 @@ def get_host(datacenter_id: Optional[str] = None,
|
|
|
93
94
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
94
95
|
datacenter_id=datacenter.id)
|
|
95
96
|
```
|
|
97
|
+
<!--End PulumiCodeChooser -->
|
|
96
98
|
|
|
97
99
|
|
|
98
100
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -127,6 +129,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
127
129
|
|
|
128
130
|
## Example Usage
|
|
129
131
|
|
|
132
|
+
<!--Start PulumiCodeChooser -->
|
|
130
133
|
```python
|
|
131
134
|
import pulumi
|
|
132
135
|
import pulumi_vsphere as vsphere
|
|
@@ -135,6 +138,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
135
138
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
136
139
|
datacenter_id=datacenter.id)
|
|
137
140
|
```
|
|
141
|
+
<!--End PulumiCodeChooser -->
|
|
138
142
|
|
|
139
143
|
|
|
140
144
|
:param str datacenter_id: The managed object reference ID
|