pulumi-vsphere 4.10.3a1723624830__py3-none-any.whl → 4.11.0a1__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/_inputs.py +6 -12
- pulumi_vsphere/_utilities.py +4 -40
- pulumi_vsphere/compute_cluster.py +20 -20
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +18 -14
- pulumi_vsphere/content_library.py +10 -10
- pulumi_vsphere/datacenter.py +28 -7
- pulumi_vsphere/datastore_cluster.py +14 -0
- pulumi_vsphere/distributed_port_group.py +12 -61
- pulumi_vsphere/distributed_virtual_switch.py +43 -22
- pulumi_vsphere/entity_permissions.py +38 -59
- pulumi_vsphere/folder.py +21 -0
- pulumi_vsphere/get_compute_cluster_host_group.py +16 -18
- pulumi_vsphere/get_content_library.py +6 -10
- pulumi_vsphere/get_content_library_item.py +8 -12
- pulumi_vsphere/get_datastore.py +9 -9
- pulumi_vsphere/get_datastore_stats.py +32 -34
- pulumi_vsphere/get_dynamic.py +12 -14
- pulumi_vsphere/get_guest_os_customization.py +43 -8
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +2 -4
- pulumi_vsphere/get_host_thumbprint.py +12 -12
- pulumi_vsphere/get_host_vgpu_profile.py +2 -4
- pulumi_vsphere/get_license.py +1 -2
- pulumi_vsphere/get_network.py +14 -14
- pulumi_vsphere/get_resource_pool.py +8 -12
- pulumi_vsphere/get_role.py +4 -4
- pulumi_vsphere/get_virtual_machine.py +35 -60
- pulumi_vsphere/guest_os_customization.py +31 -31
- pulumi_vsphere/host_port_group.py +2 -2
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/offline_software_depot.py +2 -2
- pulumi_vsphere/outputs.py +40 -48
- pulumi_vsphere/provider.py +6 -2
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +2 -2
- pulumi_vsphere/supervisor.py +30 -134
- pulumi_vsphere/virtual_disk.py +30 -38
- pulumi_vsphere/virtual_machine.py +32 -32
- pulumi_vsphere/virtual_machine_class.py +0 -2
- pulumi_vsphere/virtual_machine_snapshot.py +2 -2
- pulumi_vsphere/vm_storage_policy.py +67 -67
- pulumi_vsphere/vnic.py +93 -89
- {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.3a1723624830.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/top_level.txt +0 -0
pulumi_vsphere/get_dynamic.py
CHANGED
|
@@ -78,10 +78,9 @@ 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
|
|
|
@@ -105,11 +104,11 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
105
104
|
|
|
106
105
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
107
106
|
be a match.
|
|
108
|
-
:param str name_regex: A regular expression that will be used to match
|
|
109
|
-
object's name.
|
|
107
|
+
:param str name_regex: A regular expression that will be used to match
|
|
108
|
+
the object's name.
|
|
110
109
|
:param str type: The managed object type the returned object must match.
|
|
111
110
|
The managed object types can be found in the managed object type section
|
|
112
|
-
[here](https://developer.
|
|
111
|
+
[here](https://developer.vmware.com/apis/968/vsphere).
|
|
113
112
|
"""
|
|
114
113
|
__args__ = dict()
|
|
115
114
|
__args__['filters'] = filters
|
|
@@ -133,10 +132,9 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
133
132
|
"""
|
|
134
133
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
135
134
|
|
|
136
|
-
The `get_dynamic` data source can be used to get the
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
to filter objects by name.
|
|
135
|
+
The `get_dynamic` data source can be used to get the [managed object reference ID][docs-about-morefs]
|
|
136
|
+
of any tagged managed object in vCenter Server by providing a list of tag IDs
|
|
137
|
+
and an optional regular expression to filter objects by name.
|
|
140
138
|
|
|
141
139
|
## Example Usage
|
|
142
140
|
|
|
@@ -160,10 +158,10 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
160
158
|
|
|
161
159
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
162
160
|
be a match.
|
|
163
|
-
:param str name_regex: A regular expression that will be used to match
|
|
164
|
-
object's name.
|
|
161
|
+
:param str name_regex: A regular expression that will be used to match
|
|
162
|
+
the object's name.
|
|
165
163
|
:param str type: The managed object type the returned object must match.
|
|
166
164
|
The managed object types can be found in the managed object type section
|
|
167
|
-
[here](https://developer.
|
|
165
|
+
[here](https://developer.vmware.com/apis/968/vsphere).
|
|
168
166
|
"""
|
|
169
167
|
...
|
|
@@ -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,22 @@ 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
|
+
```python
|
|
128
|
+
import pulumi
|
|
129
|
+
import pulumi_vsphere as vsphere
|
|
130
|
+
|
|
131
|
+
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
132
|
+
```
|
|
107
133
|
|
|
108
134
|
|
|
109
|
-
:param str name: The name of the customization specification is the unique
|
|
110
|
-
identifier per vCenter Server instance. ## Attribute Reference
|
|
135
|
+
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
111
136
|
"""
|
|
112
137
|
__args__ = dict()
|
|
113
138
|
__args__['name'] = name
|
|
@@ -128,11 +153,21 @@ def get_guest_os_customization(name: Optional[str] = None,
|
|
|
128
153
|
def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
|
|
129
154
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
|
|
130
155
|
"""
|
|
131
|
-
The `GuestOsCustomization` data source can be used to discover the
|
|
132
|
-
|
|
156
|
+
The `GuestOsCustomization` data source can be used to discover the details about a customization specification for a guest operating system.
|
|
157
|
+
|
|
158
|
+
Suggested change
|
|
159
|
+
> **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance.
|
|
160
|
+
|
|
161
|
+
## Example Usage
|
|
162
|
+
|
|
163
|
+
```python
|
|
164
|
+
import pulumi
|
|
165
|
+
import pulumi_vsphere as vsphere
|
|
166
|
+
|
|
167
|
+
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
168
|
+
```
|
|
133
169
|
|
|
134
170
|
|
|
135
|
-
:param str name: The name of the customization specification is the unique
|
|
136
|
-
identifier per vCenter Server instance. ## Attribute Reference
|
|
171
|
+
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
137
172
|
"""
|
|
138
173
|
...
|
|
@@ -58,8 +58,8 @@ class AwaitableGetHostBaseImagesResult(GetHostBaseImagesResult):
|
|
|
58
58
|
|
|
59
59
|
def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostBaseImagesResult:
|
|
60
60
|
"""
|
|
61
|
-
The `get_host_base_images` data source can be used to get the list of ESXi
|
|
62
|
-
|
|
61
|
+
The `get_host_base_images` data source can be used to get the list of ESXi base images available
|
|
62
|
+
for cluster software management.
|
|
63
63
|
|
|
64
64
|
## Example Usage
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
|
|
|
67
67
|
import pulumi
|
|
68
68
|
import pulumi_vsphere as vsphere
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
baseimages = vsphere.get_host_base_images()
|
|
71
71
|
```
|
|
72
72
|
"""
|
|
73
73
|
__args__ = dict()
|
|
@@ -82,8 +82,8 @@ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
|
|
|
82
82
|
@_utilities.lift_output_func(get_host_base_images)
|
|
83
83
|
def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostBaseImagesResult]:
|
|
84
84
|
"""
|
|
85
|
-
The `get_host_base_images` data source can be used to get the list of ESXi
|
|
86
|
-
|
|
85
|
+
The `get_host_base_images` data source can be used to get the list of ESXi base images available
|
|
86
|
+
for cluster software management.
|
|
87
87
|
|
|
88
88
|
## Example Usage
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) ->
|
|
|
91
91
|
import pulumi
|
|
92
92
|
import pulumi_vsphere as vsphere
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
baseimages = vsphere.get_host_base_images()
|
|
95
95
|
```
|
|
96
96
|
"""
|
|
97
97
|
...
|
|
@@ -137,8 +137,7 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
137
137
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
138
138
|
|
|
139
139
|
> **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
|
|
140
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
141
|
-
a host.
|
|
140
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
142
141
|
:param str name_regex: A regular expression that will be used to match the
|
|
143
142
|
host PCI device name.
|
|
144
143
|
:param str vendor_id: The hexadecimal PCI device vendor ID.
|
|
@@ -206,8 +205,7 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
206
205
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
207
206
|
|
|
208
207
|
> **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
|
|
209
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
210
|
-
a host.
|
|
208
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
211
209
|
:param str name_regex: A regular expression that will be used to match the
|
|
212
210
|
host PCI device name.
|
|
213
211
|
:param str vendor_id: The hexadecimal PCI device vendor ID.
|
|
@@ -76,10 +76,10 @@ def get_host_thumbprint(address: Optional[str] = None,
|
|
|
76
76
|
port: Optional[str] = None,
|
|
77
77
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostThumbprintResult:
|
|
78
78
|
"""
|
|
79
|
-
The `vsphere_thumbprint` data source can be used to discover the host
|
|
80
|
-
of an ESXi host. This can be used when adding the `Host`
|
|
81
|
-
the ESXi host is using a certificate chain, the first one returned
|
|
82
|
-
to generate the thumbprint.
|
|
79
|
+
The `vsphere_thumbprint` data source can be used to discover the host
|
|
80
|
+
thumbprint of an ESXi host. This can be used when adding the `Host`
|
|
81
|
+
resource. If the ESXi host is using a certificate chain, the first one returned
|
|
82
|
+
will be used to generate the thumbprint.
|
|
83
83
|
|
|
84
84
|
## Example Usage
|
|
85
85
|
|
|
@@ -91,8 +91,8 @@ def get_host_thumbprint(address: Optional[str] = None,
|
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
:param str address: The address of the ESXi host to retrieve the
|
|
95
|
-
from.
|
|
94
|
+
:param str address: The address of the ESXi host to retrieve the
|
|
95
|
+
thumbprint from.
|
|
96
96
|
:param bool insecure: Disables SSL certificate verification.
|
|
97
97
|
Default: `false`
|
|
98
98
|
:param str port: The port to use connecting to the ESXi host. Default: 443
|
|
@@ -117,10 +117,10 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
|
|
|
117
117
|
port: Optional[pulumi.Input[Optional[str]]] = None,
|
|
118
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostThumbprintResult]:
|
|
119
119
|
"""
|
|
120
|
-
The `vsphere_thumbprint` data source can be used to discover the host
|
|
121
|
-
of an ESXi host. This can be used when adding the `Host`
|
|
122
|
-
the ESXi host is using a certificate chain, the first one returned
|
|
123
|
-
to generate the thumbprint.
|
|
120
|
+
The `vsphere_thumbprint` data source can be used to discover the host
|
|
121
|
+
thumbprint of an ESXi host. This can be used when adding the `Host`
|
|
122
|
+
resource. If the ESXi host is using a certificate chain, the first one returned
|
|
123
|
+
will be used to generate the thumbprint.
|
|
124
124
|
|
|
125
125
|
## Example Usage
|
|
126
126
|
|
|
@@ -132,8 +132,8 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
|
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
:param str address: The address of the ESXi host to retrieve the
|
|
136
|
-
from.
|
|
135
|
+
:param str address: The address of the ESXi host to retrieve the
|
|
136
|
+
thumbprint from.
|
|
137
137
|
:param bool insecure: Disables SSL certificate verification.
|
|
138
138
|
Default: `false`
|
|
139
139
|
:param str port: The port to use connecting to the ESXi host. Default: 443
|
|
@@ -118,8 +118,7 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
122
|
-
a host.
|
|
121
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
123
122
|
:param str name_regex: A regular expression that will be used to match the
|
|
124
123
|
host vGPU profile name.
|
|
125
124
|
|
|
@@ -174,8 +173,7 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
174
173
|
```
|
|
175
174
|
|
|
176
175
|
|
|
177
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
178
|
-
a host.
|
|
176
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
179
177
|
:param str name_regex: A regular expression that will be used to match the
|
|
180
178
|
host vGPU profile name.
|
|
181
179
|
|
pulumi_vsphere/get_license.py
CHANGED
|
@@ -61,8 +61,7 @@ class GetLicenseResult:
|
|
|
61
61
|
@pulumi.getter
|
|
62
62
|
def labels(self) -> Mapping[str, str]:
|
|
63
63
|
"""
|
|
64
|
-
A map of key/value pairs attached as labels (tags) to the license
|
|
65
|
-
key.
|
|
64
|
+
A map of key/value pairs attached as labels (tags) to the license key.
|
|
66
65
|
"""
|
|
67
66
|
return pulumi.get(self, "labels")
|
|
68
67
|
|
pulumi_vsphere/get_network.py
CHANGED
|
@@ -91,11 +91,11 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
91
91
|
name: Optional[str] = None,
|
|
92
92
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
|
|
93
93
|
"""
|
|
94
|
-
The `get_network` data source can be used to discover the ID of a network
|
|
95
|
-
vSphere. This can be any network that can be used as the backing for a
|
|
96
|
-
interface for `VirtualMachine` or any other vSphere resource
|
|
97
|
-
requires a network. This includes standard (host-based) port groups,
|
|
98
|
-
port groups, or opaque networks such as those managed by NSX.
|
|
94
|
+
The `get_network` data source can be used to discover the ID of a network
|
|
95
|
+
in vSphere. This can be any network that can be used as the backing for a
|
|
96
|
+
network interface for `VirtualMachine` or any other vSphere resource
|
|
97
|
+
that requires a network. This includes standard (host-based) port groups,
|
|
98
|
+
distributed port groups, or opaque networks such as those managed by NSX.
|
|
99
99
|
|
|
100
100
|
## Example Usage
|
|
101
101
|
|
|
@@ -115,8 +115,8 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
115
115
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
116
116
|
:param str distributed_virtual_switch_uuid: For distributed port group type
|
|
117
117
|
network objects, the ID of the distributed virtual switch for which the port
|
|
118
|
-
group belongs. It is useful to differentiate port groups with same name
|
|
119
|
-
the distributed virtual switch ID.
|
|
118
|
+
group belongs. It is useful to differentiate port groups with same name
|
|
119
|
+
using the distributed virtual switch ID.
|
|
120
120
|
:param str name: The name of the network. This can be a name or path.
|
|
121
121
|
"""
|
|
122
122
|
__args__ = dict()
|
|
@@ -140,11 +140,11 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
140
140
|
name: Optional[pulumi.Input[str]] = None,
|
|
141
141
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkResult]:
|
|
142
142
|
"""
|
|
143
|
-
The `get_network` data source can be used to discover the ID of a network
|
|
144
|
-
vSphere. This can be any network that can be used as the backing for a
|
|
145
|
-
interface for `VirtualMachine` or any other vSphere resource
|
|
146
|
-
requires a network. This includes standard (host-based) port groups,
|
|
147
|
-
port groups, or opaque networks such as those managed by NSX.
|
|
143
|
+
The `get_network` data source can be used to discover the ID of a network
|
|
144
|
+
in vSphere. This can be any network that can be used as the backing for a
|
|
145
|
+
network interface for `VirtualMachine` or any other vSphere resource
|
|
146
|
+
that requires a network. This includes standard (host-based) port groups,
|
|
147
|
+
distributed port groups, or opaque networks such as those managed by NSX.
|
|
148
148
|
|
|
149
149
|
## Example Usage
|
|
150
150
|
|
|
@@ -164,8 +164,8 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
164
164
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
165
165
|
:param str distributed_virtual_switch_uuid: For distributed port group type
|
|
166
166
|
network objects, the ID of the distributed virtual switch for which the port
|
|
167
|
-
group belongs. It is useful to differentiate port groups with same name
|
|
168
|
-
the distributed virtual switch ID.
|
|
167
|
+
group belongs. It is useful to differentiate port groups with same name
|
|
168
|
+
using the distributed virtual switch ID.
|
|
169
169
|
:param str name: The name of the network. This can be a name or path.
|
|
170
170
|
"""
|
|
171
171
|
...
|
|
@@ -89,8 +89,8 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
89
89
|
data source.
|
|
90
90
|
|
|
91
91
|
All compute resources in vSphere have a resource pool, even if one has not been
|
|
92
|
-
explicitly created. This resource pool is referred to as the
|
|
93
|
-
pool_ and can be looked up by specifying the path.
|
|
92
|
+
explicitly created. This resource pool is referred to as the
|
|
93
|
+
_root resource pool_ and can be looked up by specifying the path.
|
|
94
94
|
|
|
95
95
|
```python
|
|
96
96
|
import pulumi
|
|
@@ -100,11 +100,9 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
100
100
|
datacenter_id=datacenter["id"])
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
For more information on the root resource pool, see
|
|
104
|
-
[Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
|
|
105
|
-
documentation.
|
|
103
|
+
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
106
104
|
|
|
107
|
-
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
105
|
+
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
108
106
|
|
|
109
107
|
|
|
110
108
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -159,8 +157,8 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
159
157
|
data source.
|
|
160
158
|
|
|
161
159
|
All compute resources in vSphere have a resource pool, even if one has not been
|
|
162
|
-
explicitly created. This resource pool is referred to as the
|
|
163
|
-
pool_ and can be looked up by specifying the path.
|
|
160
|
+
explicitly created. This resource pool is referred to as the
|
|
161
|
+
_root resource pool_ and can be looked up by specifying the path.
|
|
164
162
|
|
|
165
163
|
```python
|
|
166
164
|
import pulumi
|
|
@@ -170,11 +168,9 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
170
168
|
datacenter_id=datacenter["id"])
|
|
171
169
|
```
|
|
172
170
|
|
|
173
|
-
For more information on the root resource pool, see
|
|
174
|
-
[Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
|
|
175
|
-
documentation.
|
|
171
|
+
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
176
172
|
|
|
177
|
-
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
173
|
+
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
178
174
|
|
|
179
175
|
|
|
180
176
|
:param str datacenter_id: The managed object reference ID
|
pulumi_vsphere/get_role.py
CHANGED
|
@@ -95,8 +95,8 @@ def get_role(description: Optional[str] = None,
|
|
|
95
95
|
role_privileges: Optional[Sequence[str]] = None,
|
|
96
96
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRoleResult:
|
|
97
97
|
"""
|
|
98
|
-
The `Role` data source can be used to discover the `id` and privileges
|
|
99
|
-
|
|
98
|
+
The `Role` data source can be used to discover the `id` and privileges associated
|
|
99
|
+
with a role given its name or display label.
|
|
100
100
|
|
|
101
101
|
## Example Usage
|
|
102
102
|
|
|
@@ -135,8 +135,8 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
135
135
|
role_privileges: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
136
136
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleResult]:
|
|
137
137
|
"""
|
|
138
|
-
The `Role` data source can be used to discover the `id` and privileges
|
|
139
|
-
|
|
138
|
+
The `Role` data source can be used to discover the `id` and privileges associated
|
|
139
|
+
with a role given its name or display label.
|
|
140
140
|
|
|
141
141
|
## Example Usage
|
|
142
142
|
|