@pulumi/vsphere 4.16.2 → 4.16.3
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.
- package/computeCluster.d.ts +137 -67
- package/computeCluster.js +92 -46
- package/computeCluster.js.map +1 -1
- package/computeClusterHostGroup.d.ts +45 -25
- package/computeClusterHostGroup.js +21 -13
- package/computeClusterHostGroup.js.map +1 -1
- package/computeClusterVmAffinityRule.d.ts +32 -20
- package/computeClusterVmAffinityRule.js +20 -14
- package/computeClusterVmAffinityRule.js.map +1 -1
- package/computeClusterVmAntiAffinityRule.d.ts +40 -13
- package/computeClusterVmAntiAffinityRule.js +28 -7
- package/computeClusterVmAntiAffinityRule.js.map +1 -1
- package/computeClusterVmDependencyRule.d.ts +32 -24
- package/computeClusterVmDependencyRule.js +20 -18
- package/computeClusterVmDependencyRule.js.map +1 -1
- package/computeClusterVmGroup.d.ts +32 -23
- package/computeClusterVmGroup.js +8 -11
- package/computeClusterVmGroup.js.map +1 -1
- package/computeClusterVmHostRule.d.ts +36 -26
- package/computeClusterVmHostRule.js +24 -20
- package/computeClusterVmHostRule.js.map +1 -1
- package/configurationProfile.d.ts +88 -0
- package/configurationProfile.js +88 -0
- package/configurationProfile.js.map +1 -1
- package/contentLibrary.d.ts +6 -4
- package/contentLibrary.js +3 -1
- package/contentLibrary.js.map +1 -1
- package/contentLibraryItem.d.ts +3 -2
- package/contentLibraryItem.js +3 -2
- package/contentLibraryItem.js.map +1 -1
- package/customAttribute.d.ts +2 -3
- package/customAttribute.js +2 -3
- package/customAttribute.js.map +1 -1
- package/datacenter.d.ts +18 -8
- package/datacenter.js +4 -3
- package/datacenter.js.map +1 -1
- package/datastoreCluster.d.ts +37 -25
- package/datastoreCluster.js +10 -10
- package/datastoreCluster.js.map +1 -1
- package/datastoreClusterVmAntiAffinityRule.d.ts +37 -22
- package/datastoreClusterVmAntiAffinityRule.js +13 -13
- package/datastoreClusterVmAntiAffinityRule.js.map +1 -1
- package/distributedPortGroup.d.ts +19 -9
- package/distributedPortGroup.js +7 -6
- package/distributedPortGroup.js.map +1 -1
- package/distributedVirtualSwitch.d.ts +27 -10
- package/distributedVirtualSwitch.js +3 -4
- package/distributedVirtualSwitch.js.map +1 -1
- package/dpmHostOverride.d.ts +21 -16
- package/dpmHostOverride.js +9 -10
- package/dpmHostOverride.js.map +1 -1
- package/drsVmOverride.d.ts +22 -17
- package/drsVmOverride.js +10 -11
- package/drsVmOverride.js.map +1 -1
- package/entityPermissions.d.ts +58 -0
- package/entityPermissions.js +58 -0
- package/entityPermissions.js.map +1 -1
- package/file.d.ts +15 -0
- package/file.js +15 -0
- package/file.js.map +1 -1
- package/folder.d.ts +37 -19
- package/folder.js +7 -10
- package/folder.js.map +1 -1
- package/getComputeCluster.d.ts +35 -19
- package/getComputeCluster.js +24 -10
- package/getComputeCluster.js.map +1 -1
- package/getCustomAttribute.d.ts +10 -6
- package/getCustomAttribute.js +10 -6
- package/getCustomAttribute.js.map +1 -1
- package/getDatacenter.d.ts +10 -6
- package/getDatacenter.js +10 -6
- package/getDatacenter.js.map +1 -1
- package/getDatastore.d.ts +22 -16
- package/getDatastore.js +12 -8
- package/getDatastore.js.map +1 -1
- package/getDatastoreCluster.d.ts +24 -10
- package/getDatastoreCluster.js +20 -6
- package/getDatastoreCluster.js.map +1 -1
- package/getDistributedVirtualSwitch.d.ts +25 -19
- package/getDistributedVirtualSwitch.js +12 -8
- package/getDistributedVirtualSwitch.js.map +1 -1
- package/getHost.d.ts +23 -13
- package/getHost.js +8 -4
- package/getHost.js.map +1 -1
- package/getNetwork.d.ts +12 -8
- package/getNetwork.js.map +1 -1
- package/getOvfVmTemplate.d.ts +276 -0
- package/getOvfVmTemplate.js +276 -0
- package/getOvfVmTemplate.js.map +1 -1
- package/getResourcePool.d.ts +38 -26
- package/getResourcePool.js +16 -8
- package/getResourcePool.js.map +1 -1
- package/getTag.d.ts +14 -10
- package/getTag.js +14 -10
- package/getTag.js.map +1 -1
- package/getTagCategory.d.ts +8 -4
- package/getTagCategory.js +8 -4
- package/getTagCategory.js.map +1 -1
- package/getVappContainer.d.ts +16 -6
- package/getVappContainer.js +6 -2
- package/getVappContainer.js.map +1 -1
- package/getVirtualMachine.d.ts +58 -36
- package/getVirtualMachine.js +10 -6
- package/getVirtualMachine.js.map +1 -1
- package/getVmfsDisks.d.ts +12 -4
- package/getVmfsDisks.js +6 -2
- package/getVmfsDisks.js.map +1 -1
- package/haVmOverride.d.ts +8 -10
- package/haVmOverride.js +8 -10
- package/haVmOverride.js.map +1 -1
- package/host.d.ts +54 -80
- package/host.js +54 -80
- package/host.js.map +1 -1
- package/hostPortGroup.d.ts +21 -11
- package/hostPortGroup.js +8 -4
- package/hostPortGroup.js.map +1 -1
- package/hostVirtualSwitch.d.ts +21 -17
- package/hostVirtualSwitch.js +9 -11
- package/hostVirtualSwitch.js.map +1 -1
- package/nasDatastore.d.ts +48 -35
- package/nasDatastore.js +9 -8
- package/nasDatastore.js.map +1 -1
- package/package.json +2 -2
- package/resourcePool.d.ts +31 -7
- package/resourcePool.js +13 -1
- package/resourcePool.js.map +1 -1
- package/role.d.ts +31 -2
- package/role.js +31 -2
- package/role.js.map +1 -1
- package/storageDrsVmOverride.d.ts +40 -17
- package/storageDrsVmOverride.js +19 -8
- package/storageDrsVmOverride.js.map +1 -1
- package/tag.d.ts +16 -15
- package/tag.js +16 -15
- package/tag.js.map +1 -1
- package/tagCategory.d.ts +2 -3
- package/tagCategory.js +2 -3
- package/tagCategory.js.map +1 -1
- package/types/input.d.ts +5 -3
- package/types/output.d.ts +5 -3
- package/vappContainer.d.ts +21 -12
- package/vappContainer.js +0 -3
- package/vappContainer.js.map +1 -1
- package/vappEntity.d.ts +14 -11
- package/vappEntity.js +2 -5
- package/vappEntity.js.map +1 -1
- package/virtualDisk.d.ts +18 -10
- package/virtualDisk.js +9 -7
- package/virtualDisk.js.map +1 -1
- package/virtualMachine.d.ts +1102 -10
- package/virtualMachine.js +1056 -6
- package/virtualMachine.js.map +1 -1
- package/virtualMachineSnapshot.d.ts +2 -1
- package/virtualMachineSnapshot.js +2 -1
- package/virtualMachineSnapshot.js.map +1 -1
- package/vmfsDatastore.d.ts +54 -42
- package/vmfsDatastore.js +12 -15
- package/vmfsDatastore.js.map +1 -1
- package/vnic.d.ts +4 -3
- package/vnic.js +4 -3
- package/vnic.js.map +1 -1
package/hostPortGroup.d.ts
CHANGED
|
@@ -4,15 +4,18 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* The `vsphere.HostPortGroup` resource can be used to manage port groups on
|
|
6
6
|
* ESXi hosts. These port groups are connected to standard switches, which
|
|
7
|
-
* can be managed by the `vsphere.HostVirtualSwitch`
|
|
7
|
+
* can be managed by the [`vsphere.HostVirtualSwitch`][host-virtual-switch]
|
|
8
8
|
* resource.
|
|
9
9
|
*
|
|
10
10
|
* For an overview on vSphere networking concepts, see [the product documentation][ref-vsphere-net-concepts].
|
|
11
11
|
*
|
|
12
|
-
* [
|
|
12
|
+
* [host-virtual-switch]: /docs/providers/vsphere/r/host_virtual_switch.html
|
|
13
|
+
* [ref-vsphere-net-concepts]: hhttps://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/introduction-to-vsphere-networking.html
|
|
13
14
|
*
|
|
14
15
|
* ## Example Usage
|
|
15
16
|
*
|
|
17
|
+
* ### S
|
|
18
|
+
*
|
|
16
19
|
* **Create a Virtual Switch and Bind a Port Group:**
|
|
17
20
|
*
|
|
18
21
|
* ```typescript
|
|
@@ -47,7 +50,7 @@ import * as outputs from "./types/output";
|
|
|
47
50
|
*
|
|
48
51
|
* This example sets the trunk mode VLAN (`4095`, which passes through all tags)
|
|
49
52
|
* and sets
|
|
50
|
-
* `allowPromiscuous`
|
|
53
|
+
* [`allowPromiscuous`](https://www.terraform.io/docs/providers/vsphere/r/host_virtual_switch.html#allow_promiscuous)
|
|
51
54
|
* to ensure that all traffic is seen on the port. The setting overrides
|
|
52
55
|
* the implicit default of `false` set on the standard switch.
|
|
53
56
|
*
|
|
@@ -84,9 +87,10 @@ import * as outputs from "./types/output";
|
|
|
84
87
|
* ## Import
|
|
85
88
|
*
|
|
86
89
|
* An existing host port group can be imported into this resource
|
|
87
|
-
*
|
|
88
90
|
* using the host port group's ID. An example is below:
|
|
89
91
|
*
|
|
92
|
+
* [docs-import]: /docs/import/index.html
|
|
93
|
+
*
|
|
90
94
|
* ```sh
|
|
91
95
|
* $ pulumi import vsphere:index/hostPortGroup:HostPortGroup management tf-HostPortGroup:host-123:management
|
|
92
96
|
* ```
|
|
@@ -130,8 +134,8 @@ export declare class HostPortGroup extends pulumi.CustomResource {
|
|
|
130
134
|
*/
|
|
131
135
|
readonly checkBeacon: pulumi.Output<boolean | undefined>;
|
|
132
136
|
/**
|
|
133
|
-
* A map with a full set of the policy
|
|
134
|
-
* options computed from defaults and overrides,
|
|
137
|
+
* A map with a full set of the [policy
|
|
138
|
+
* options][host-vswitch-policy-options] computed from defaults and overrides,
|
|
135
139
|
* explaining the effective policy for this port group.
|
|
136
140
|
*/
|
|
137
141
|
readonly computedPolicy: pulumi.Output<{
|
|
@@ -142,7 +146,7 @@ export declare class HostPortGroup extends pulumi.CustomResource {
|
|
|
142
146
|
*/
|
|
143
147
|
readonly failback: pulumi.Output<boolean | undefined>;
|
|
144
148
|
/**
|
|
145
|
-
* The managed object ID of
|
|
149
|
+
* The [managed object ID][docs-about-morefs] of
|
|
146
150
|
* the host to set the port group up on. Forces a new resource if changed.
|
|
147
151
|
*/
|
|
148
152
|
readonly hostSystemId: pulumi.Output<string>;
|
|
@@ -197,6 +201,8 @@ export declare class HostPortGroup extends pulumi.CustomResource {
|
|
|
197
201
|
* `0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
198
202
|
* ID of `4095` enables trunk mode, allowing the guest to manage its own
|
|
199
203
|
* tagging. Default: `0`.
|
|
204
|
+
*
|
|
205
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
200
206
|
*/
|
|
201
207
|
readonly vlanId: pulumi.Output<number | undefined>;
|
|
202
208
|
/**
|
|
@@ -233,8 +239,8 @@ export interface HostPortGroupState {
|
|
|
233
239
|
*/
|
|
234
240
|
checkBeacon?: pulumi.Input<boolean>;
|
|
235
241
|
/**
|
|
236
|
-
* A map with a full set of the policy
|
|
237
|
-
* options computed from defaults and overrides,
|
|
242
|
+
* A map with a full set of the [policy
|
|
243
|
+
* options][host-vswitch-policy-options] computed from defaults and overrides,
|
|
238
244
|
* explaining the effective policy for this port group.
|
|
239
245
|
*/
|
|
240
246
|
computedPolicy?: pulumi.Input<{
|
|
@@ -245,7 +251,7 @@ export interface HostPortGroupState {
|
|
|
245
251
|
*/
|
|
246
252
|
failback?: pulumi.Input<boolean>;
|
|
247
253
|
/**
|
|
248
|
-
* The managed object ID of
|
|
254
|
+
* The [managed object ID][docs-about-morefs] of
|
|
249
255
|
* the host to set the port group up on. Forces a new resource if changed.
|
|
250
256
|
*/
|
|
251
257
|
hostSystemId?: pulumi.Input<string>;
|
|
@@ -300,6 +306,8 @@ export interface HostPortGroupState {
|
|
|
300
306
|
* `0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
301
307
|
* ID of `4095` enables trunk mode, allowing the guest to manage its own
|
|
302
308
|
* tagging. Default: `0`.
|
|
309
|
+
*
|
|
310
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
303
311
|
*/
|
|
304
312
|
vlanId?: pulumi.Input<number>;
|
|
305
313
|
}
|
|
@@ -332,7 +340,7 @@ export interface HostPortGroupArgs {
|
|
|
332
340
|
*/
|
|
333
341
|
failback?: pulumi.Input<boolean>;
|
|
334
342
|
/**
|
|
335
|
-
* The managed object ID of
|
|
343
|
+
* The [managed object ID][docs-about-morefs] of
|
|
336
344
|
* the host to set the port group up on. Forces a new resource if changed.
|
|
337
345
|
*/
|
|
338
346
|
hostSystemId: pulumi.Input<string>;
|
|
@@ -379,6 +387,8 @@ export interface HostPortGroupArgs {
|
|
|
379
387
|
* `0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
380
388
|
* ID of `4095` enables trunk mode, allowing the guest to manage its own
|
|
381
389
|
* tagging. Default: `0`.
|
|
390
|
+
*
|
|
391
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
382
392
|
*/
|
|
383
393
|
vlanId?: pulumi.Input<number>;
|
|
384
394
|
}
|
package/hostPortGroup.js
CHANGED
|
@@ -8,15 +8,18 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* The `vsphere.HostPortGroup` resource can be used to manage port groups on
|
|
10
10
|
* ESXi hosts. These port groups are connected to standard switches, which
|
|
11
|
-
* can be managed by the `vsphere.HostVirtualSwitch`
|
|
11
|
+
* can be managed by the [`vsphere.HostVirtualSwitch`][host-virtual-switch]
|
|
12
12
|
* resource.
|
|
13
13
|
*
|
|
14
14
|
* For an overview on vSphere networking concepts, see [the product documentation][ref-vsphere-net-concepts].
|
|
15
15
|
*
|
|
16
|
-
* [
|
|
16
|
+
* [host-virtual-switch]: /docs/providers/vsphere/r/host_virtual_switch.html
|
|
17
|
+
* [ref-vsphere-net-concepts]: hhttps://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/introduction-to-vsphere-networking.html
|
|
17
18
|
*
|
|
18
19
|
* ## Example Usage
|
|
19
20
|
*
|
|
21
|
+
* ### S
|
|
22
|
+
*
|
|
20
23
|
* **Create a Virtual Switch and Bind a Port Group:**
|
|
21
24
|
*
|
|
22
25
|
* ```typescript
|
|
@@ -51,7 +54,7 @@ const utilities = require("./utilities");
|
|
|
51
54
|
*
|
|
52
55
|
* This example sets the trunk mode VLAN (`4095`, which passes through all tags)
|
|
53
56
|
* and sets
|
|
54
|
-
* `allowPromiscuous`
|
|
57
|
+
* [`allowPromiscuous`](https://www.terraform.io/docs/providers/vsphere/r/host_virtual_switch.html#allow_promiscuous)
|
|
55
58
|
* to ensure that all traffic is seen on the port. The setting overrides
|
|
56
59
|
* the implicit default of `false` set on the standard switch.
|
|
57
60
|
*
|
|
@@ -88,9 +91,10 @@ const utilities = require("./utilities");
|
|
|
88
91
|
* ## Import
|
|
89
92
|
*
|
|
90
93
|
* An existing host port group can be imported into this resource
|
|
91
|
-
*
|
|
92
94
|
* using the host port group's ID. An example is below:
|
|
93
95
|
*
|
|
96
|
+
* [docs-import]: /docs/import/index.html
|
|
97
|
+
*
|
|
94
98
|
* ```sh
|
|
95
99
|
* $ pulumi import vsphere:index/hostPortGroup:HostPortGroup management tf-HostPortGroup:host-123:management
|
|
96
100
|
* ```
|
package/hostPortGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostPortGroup.js","sourceRoot":"","sources":["../hostPortGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"hostPortGroup.js","sourceRoot":"","sources":["../hostPortGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,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AAI,CAAC;YACpC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,yBAAyB,CAAC,GAAG,IAAI,EAAE,uBAAuB,CAAC;YAC1E,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAvLL,sCAwLC;AA1KG,gBAAgB;AACO,0BAAY,GAAG,2CAA2C,CAAC"}
|
package/hostVirtualSwitch.d.ts
CHANGED
|
@@ -3,16 +3,19 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* The `vsphere.HostVirtualSwitch` resource can be used to manage vSphere
|
|
4
4
|
* standard switches on an ESXi host. These switches can be used as a backing for
|
|
5
5
|
* standard port groups, which can be managed by the
|
|
6
|
-
* `vsphere.HostPortGroup` resource.
|
|
6
|
+
* [`vsphere.HostPortGroup`][host-port-group] resource.
|
|
7
7
|
*
|
|
8
8
|
* For an overview on vSphere networking concepts, see [this
|
|
9
9
|
* page][ref-vsphere-net-concepts].
|
|
10
10
|
*
|
|
11
|
-
* [
|
|
11
|
+
* [host-port-group]: /docs/providers/vsphere/r/host_port_group.html
|
|
12
|
+
* [ref-vsphere-net-concepts]: hhttps://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/introduction-to-vsphere-networking.html
|
|
12
13
|
*
|
|
13
14
|
* ## Example Usage
|
|
14
15
|
*
|
|
15
|
-
* ###
|
|
16
|
+
* ### S
|
|
17
|
+
*
|
|
18
|
+
* **Create a virtual switch with one active and one standby NIC:**
|
|
16
19
|
*
|
|
17
20
|
* ```typescript
|
|
18
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -26,7 +29,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
26
29
|
* datacenterId: datacenter.id,
|
|
27
30
|
* }));
|
|
28
31
|
* const _switch = new vsphere.HostVirtualSwitch("switch", {
|
|
29
|
-
* name: "
|
|
32
|
+
* name: "vSwitchTerraformTest",
|
|
30
33
|
* hostSystemId: host.then(host => host.id),
|
|
31
34
|
* networkAdapters: [
|
|
32
35
|
* "vmnic0",
|
|
@@ -37,7 +40,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
37
40
|
* });
|
|
38
41
|
* ```
|
|
39
42
|
*
|
|
40
|
-
*
|
|
43
|
+
* **Create a virtual switch with extra networking policy options:**
|
|
41
44
|
*
|
|
42
45
|
* ```typescript
|
|
43
46
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -51,7 +54,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
51
54
|
* datacenterId: datacenter.id,
|
|
52
55
|
* }));
|
|
53
56
|
* const _switch = new vsphere.HostVirtualSwitch("switch", {
|
|
54
|
-
* name: "
|
|
57
|
+
* name: "vSwitchTerraformTest",
|
|
55
58
|
* hostSystemId: host.then(host => host.id),
|
|
56
59
|
* networkAdapters: [
|
|
57
60
|
* "vmnic0",
|
|
@@ -73,15 +76,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
73
76
|
* ## Import
|
|
74
77
|
*
|
|
75
78
|
* An existing vSwitch can be imported into this resource by its ID.
|
|
76
|
-
*
|
|
77
79
|
* The convention of the id is a prefix, the host system [managed objectID][docs-about-morefs], and the virtual switch
|
|
78
|
-
*
|
|
79
80
|
* name. An example would be `tf-HostVirtualSwitch:host-10:vSwitchTerraformTest`.
|
|
80
|
-
*
|
|
81
81
|
* Import can the be done via the following command:
|
|
82
82
|
*
|
|
83
83
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
84
|
-
*
|
|
85
84
|
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
86
85
|
*
|
|
87
86
|
* ```sh
|
|
@@ -89,7 +88,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
89
88
|
* ```
|
|
90
89
|
*
|
|
91
90
|
* The above would import the vSwitch named `vSwitchTerraformTest` that is located in the `host-10`
|
|
92
|
-
*
|
|
93
91
|
* vSphere host.
|
|
94
92
|
*/
|
|
95
93
|
export declare class HostVirtualSwitch extends pulumi.CustomResource {
|
|
@@ -137,7 +135,7 @@ export declare class HostVirtualSwitch extends pulumi.CustomResource {
|
|
|
137
135
|
*/
|
|
138
136
|
readonly failback: pulumi.Output<boolean | undefined>;
|
|
139
137
|
/**
|
|
140
|
-
* The managed object ID of
|
|
138
|
+
* The [managed object ID][docs-about-morefs] of
|
|
141
139
|
* the host to set the virtual switch up on. Forces a new resource if changed.
|
|
142
140
|
*/
|
|
143
141
|
readonly hostSystemId: pulumi.Output<string>;
|
|
@@ -171,7 +169,9 @@ export declare class HostVirtualSwitch extends pulumi.CustomResource {
|
|
|
171
169
|
* The number of ports to create with this
|
|
172
170
|
* virtual switch. Default: `128`.
|
|
173
171
|
*
|
|
174
|
-
*
|
|
172
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
173
|
+
*
|
|
174
|
+
* > **NOTE:** Changing the port count requires a reboot of the host. Terraform
|
|
175
175
|
* will not restart the host for you.
|
|
176
176
|
*/
|
|
177
177
|
readonly numberOfPorts: pulumi.Output<number | undefined>;
|
|
@@ -241,7 +241,7 @@ export interface HostVirtualSwitchState {
|
|
|
241
241
|
*/
|
|
242
242
|
failback?: pulumi.Input<boolean>;
|
|
243
243
|
/**
|
|
244
|
-
* The managed object ID of
|
|
244
|
+
* The [managed object ID][docs-about-morefs] of
|
|
245
245
|
* the host to set the virtual switch up on. Forces a new resource if changed.
|
|
246
246
|
*/
|
|
247
247
|
hostSystemId?: pulumi.Input<string>;
|
|
@@ -275,7 +275,9 @@ export interface HostVirtualSwitchState {
|
|
|
275
275
|
* The number of ports to create with this
|
|
276
276
|
* virtual switch. Default: `128`.
|
|
277
277
|
*
|
|
278
|
-
*
|
|
278
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
279
|
+
*
|
|
280
|
+
* > **NOTE:** Changing the port count requires a reboot of the host. Terraform
|
|
279
281
|
* will not restart the host for you.
|
|
280
282
|
*/
|
|
281
283
|
numberOfPorts?: pulumi.Input<number>;
|
|
@@ -337,7 +339,7 @@ export interface HostVirtualSwitchArgs {
|
|
|
337
339
|
*/
|
|
338
340
|
failback?: pulumi.Input<boolean>;
|
|
339
341
|
/**
|
|
340
|
-
* The managed object ID of
|
|
342
|
+
* The [managed object ID][docs-about-morefs] of
|
|
341
343
|
* the host to set the virtual switch up on. Forces a new resource if changed.
|
|
342
344
|
*/
|
|
343
345
|
hostSystemId: pulumi.Input<string>;
|
|
@@ -371,7 +373,9 @@ export interface HostVirtualSwitchArgs {
|
|
|
371
373
|
* The number of ports to create with this
|
|
372
374
|
* virtual switch. Default: `128`.
|
|
373
375
|
*
|
|
374
|
-
*
|
|
376
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
377
|
+
*
|
|
378
|
+
* > **NOTE:** Changing the port count requires a reboot of the host. Terraform
|
|
375
379
|
* will not restart the host for you.
|
|
376
380
|
*/
|
|
377
381
|
numberOfPorts?: pulumi.Input<number>;
|
package/hostVirtualSwitch.js
CHANGED
|
@@ -9,16 +9,19 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The `vsphere.HostVirtualSwitch` resource can be used to manage vSphere
|
|
10
10
|
* standard switches on an ESXi host. These switches can be used as a backing for
|
|
11
11
|
* standard port groups, which can be managed by the
|
|
12
|
-
* `vsphere.HostPortGroup` resource.
|
|
12
|
+
* [`vsphere.HostPortGroup`][host-port-group] resource.
|
|
13
13
|
*
|
|
14
14
|
* For an overview on vSphere networking concepts, see [this
|
|
15
15
|
* page][ref-vsphere-net-concepts].
|
|
16
16
|
*
|
|
17
|
-
* [
|
|
17
|
+
* [host-port-group]: /docs/providers/vsphere/r/host_port_group.html
|
|
18
|
+
* [ref-vsphere-net-concepts]: hhttps://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/introduction-to-vsphere-networking.html
|
|
18
19
|
*
|
|
19
20
|
* ## Example Usage
|
|
20
21
|
*
|
|
21
|
-
* ###
|
|
22
|
+
* ### S
|
|
23
|
+
*
|
|
24
|
+
* **Create a virtual switch with one active and one standby NIC:**
|
|
22
25
|
*
|
|
23
26
|
* ```typescript
|
|
24
27
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -32,7 +35,7 @@ const utilities = require("./utilities");
|
|
|
32
35
|
* datacenterId: datacenter.id,
|
|
33
36
|
* }));
|
|
34
37
|
* const _switch = new vsphere.HostVirtualSwitch("switch", {
|
|
35
|
-
* name: "
|
|
38
|
+
* name: "vSwitchTerraformTest",
|
|
36
39
|
* hostSystemId: host.then(host => host.id),
|
|
37
40
|
* networkAdapters: [
|
|
38
41
|
* "vmnic0",
|
|
@@ -43,7 +46,7 @@ const utilities = require("./utilities");
|
|
|
43
46
|
* });
|
|
44
47
|
* ```
|
|
45
48
|
*
|
|
46
|
-
*
|
|
49
|
+
* **Create a virtual switch with extra networking policy options:**
|
|
47
50
|
*
|
|
48
51
|
* ```typescript
|
|
49
52
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -57,7 +60,7 @@ const utilities = require("./utilities");
|
|
|
57
60
|
* datacenterId: datacenter.id,
|
|
58
61
|
* }));
|
|
59
62
|
* const _switch = new vsphere.HostVirtualSwitch("switch", {
|
|
60
|
-
* name: "
|
|
63
|
+
* name: "vSwitchTerraformTest",
|
|
61
64
|
* hostSystemId: host.then(host => host.id),
|
|
62
65
|
* networkAdapters: [
|
|
63
66
|
* "vmnic0",
|
|
@@ -79,15 +82,11 @@ const utilities = require("./utilities");
|
|
|
79
82
|
* ## Import
|
|
80
83
|
*
|
|
81
84
|
* An existing vSwitch can be imported into this resource by its ID.
|
|
82
|
-
*
|
|
83
85
|
* The convention of the id is a prefix, the host system [managed objectID][docs-about-morefs], and the virtual switch
|
|
84
|
-
*
|
|
85
86
|
* name. An example would be `tf-HostVirtualSwitch:host-10:vSwitchTerraformTest`.
|
|
86
|
-
*
|
|
87
87
|
* Import can the be done via the following command:
|
|
88
88
|
*
|
|
89
89
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
90
|
-
*
|
|
91
90
|
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
92
91
|
*
|
|
93
92
|
* ```sh
|
|
@@ -95,7 +94,6 @@ const utilities = require("./utilities");
|
|
|
95
94
|
* ```
|
|
96
95
|
*
|
|
97
96
|
* The above would import the vSwitch named `vSwitchTerraformTest` that is located in the `host-10`
|
|
98
|
-
*
|
|
99
97
|
* vSphere host.
|
|
100
98
|
*/
|
|
101
99
|
class HostVirtualSwitch extends pulumi.CustomResource {
|
package/hostVirtualSwitch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hostVirtualSwitch.js","sourceRoot":"","sources":["../hostVirtualSwitch.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"hostVirtualSwitch.js","sourceRoot":"","sources":["../hostVirtualSwitch.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAwGD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,KAA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IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,yBAAyB,CAAC,GAAG,IAAI,EAAE,uBAAuB,CAAC;YAC1E,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA/LL,8CAgMC;AAlLG,gBAAgB;AACO,8BAAY,GAAG,mDAAmD,CAAC"}
|
package/nasDatastore.d.ts
CHANGED
|
@@ -4,16 +4,18 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
* datastores on an ESXi host or a set of hosts. The resource supports mounting
|
|
5
5
|
* NFS v3 and v4.1 shares to be used as datastores.
|
|
6
6
|
*
|
|
7
|
-
* > **NOTE:** Unlike `vsphere.VmfsDatastore
|
|
7
|
+
* > **NOTE:** Unlike [`vsphere.VmfsDatastore`][resource-vmfs-datastore], a NAS
|
|
8
8
|
* datastore is only mounted on the hosts you choose to mount it on. To mount on
|
|
9
9
|
* multiple hosts, you must specify each host that you want to add in the
|
|
10
10
|
* `hostSystemIds` argument.
|
|
11
11
|
*
|
|
12
|
+
* [resource-vmfs-datastore]: /docs/providers/vsphere/r/vmfs_datastore.html
|
|
13
|
+
*
|
|
12
14
|
* ## Example Usage
|
|
13
15
|
*
|
|
14
16
|
* The following example would set up a NFS v3 share on 3 hosts connected through
|
|
15
17
|
* vCenter in the same datacenter - `esxi1`, `esxi2`, and `esxi3`. The remote host
|
|
16
|
-
* is named `nfs` and has `/export/test` exported.
|
|
18
|
+
* is named `nfs` and has `/export/terraform-test` exported.
|
|
17
19
|
*
|
|
18
20
|
* ```typescript
|
|
19
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -33,18 +35,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
33
35
|
* datacenterId: _arg0_.id,
|
|
34
36
|
* })));
|
|
35
37
|
* const datastore = new vsphere.NasDatastore("datastore", {
|
|
36
|
-
* name: "test",
|
|
37
|
-
* hostSystemIds: [
|
|
38
|
+
* name: "pulumi-test",
|
|
39
|
+
* hostSystemIds: [hostsGetHost.map(__item => __item.id)],
|
|
38
40
|
* type: "NFS",
|
|
39
41
|
* remoteHosts: ["nfs"],
|
|
40
|
-
* remotePath: "/export/test",
|
|
42
|
+
* remotePath: "/export/terraform-test",
|
|
41
43
|
* });
|
|
42
44
|
* ```
|
|
43
45
|
*
|
|
44
46
|
* ## Import
|
|
45
47
|
*
|
|
46
48
|
* An existing NAS datastore can be imported into this resource via
|
|
47
|
-
*
|
|
48
49
|
* its managed object ID, via the following command:
|
|
49
50
|
*
|
|
50
51
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
@@ -58,12 +59,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
58
59
|
* [ext-govc]: https://github.com/vmware/govmomi/tree/master/govc
|
|
59
60
|
*
|
|
60
61
|
* In the case of govc, you can locate a managed object ID from an inventory path
|
|
61
|
-
*
|
|
62
62
|
* by doing the following:
|
|
63
63
|
*
|
|
64
|
+
* ```sh
|
|
64
65
|
* $ govc ls -i /dc/datastore/terraform-test
|
|
65
|
-
*
|
|
66
66
|
* Datastore:datastore-123
|
|
67
|
+
* ```
|
|
67
68
|
*/
|
|
68
69
|
export declare class NasDatastore extends pulumi.CustomResource {
|
|
69
70
|
/**
|
|
@@ -99,7 +100,10 @@ export declare class NasDatastore extends pulumi.CustomResource {
|
|
|
99
100
|
readonly capacity: pulumi.Output<number>;
|
|
100
101
|
/**
|
|
101
102
|
* Map of custom attribute ids to attribute
|
|
102
|
-
* value strings to set on
|
|
103
|
+
* value strings to set on resource. See [here][docs-setting-custom-attributes]
|
|
104
|
+
* for a reference on how to set values for custom attributes.
|
|
105
|
+
*
|
|
106
|
+
* [docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
103
107
|
*
|
|
104
108
|
* > **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
105
109
|
* and require vCenter.
|
|
@@ -108,8 +112,8 @@ export declare class NasDatastore extends pulumi.CustomResource {
|
|
|
108
112
|
[key: string]: string;
|
|
109
113
|
} | undefined>;
|
|
110
114
|
/**
|
|
111
|
-
* The managed object
|
|
112
|
-
* ID of a datastore cluster to put this datastore in.
|
|
115
|
+
* The [managed object
|
|
116
|
+
* ID][docs-about-morefs] of a datastore cluster to put this datastore in.
|
|
113
117
|
* Conflicts with `folder`.
|
|
114
118
|
*/
|
|
115
119
|
readonly datastoreClusterId: pulumi.Output<string | undefined>;
|
|
@@ -117,9 +121,9 @@ export declare class NasDatastore extends pulumi.CustomResource {
|
|
|
117
121
|
* The relative path to a folder to put this datastore in.
|
|
118
122
|
* This is a path relative to the datacenter you are deploying the datastore to.
|
|
119
123
|
* Example: for the `dc1` datacenter, and a provided `folder` of `foo/bar`,
|
|
120
|
-
*
|
|
124
|
+
* Terraform will place a datastore named `terraform-test` in a datastore folder
|
|
121
125
|
* located at `/dc1/datastore/foo/bar`, with the final inventory path being
|
|
122
|
-
* `/dc1/datastore/foo/bar/test`. Conflicts with
|
|
126
|
+
* `/dc1/datastore/foo/bar/terraform-test`. Conflicts with
|
|
123
127
|
* `datastoreClusterId`.
|
|
124
128
|
*/
|
|
125
129
|
readonly folder: pulumi.Output<string | undefined>;
|
|
@@ -128,7 +132,7 @@ export declare class NasDatastore extends pulumi.CustomResource {
|
|
|
128
132
|
*/
|
|
129
133
|
readonly freeSpace: pulumi.Output<number>;
|
|
130
134
|
/**
|
|
131
|
-
* The managed object IDs of
|
|
135
|
+
* The [managed object IDs][docs-about-morefs] of
|
|
132
136
|
* the hosts to mount the datastore on.
|
|
133
137
|
*/
|
|
134
138
|
readonly hostSystemIds: pulumi.Output<string[]>;
|
|
@@ -169,10 +173,11 @@ export declare class NasDatastore extends pulumi.CustomResource {
|
|
|
169
173
|
*/
|
|
170
174
|
readonly securityType: pulumi.Output<string | undefined>;
|
|
171
175
|
/**
|
|
172
|
-
* The IDs of any tags to attach to this resource.
|
|
176
|
+
* The IDs of any tags to attach to this resource. See
|
|
177
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
173
178
|
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
179
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
180
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
176
181
|
*/
|
|
177
182
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
178
183
|
/**
|
|
@@ -221,7 +226,10 @@ export interface NasDatastoreState {
|
|
|
221
226
|
capacity?: pulumi.Input<number>;
|
|
222
227
|
/**
|
|
223
228
|
* Map of custom attribute ids to attribute
|
|
224
|
-
* value strings to set on
|
|
229
|
+
* value strings to set on resource. See [here][docs-setting-custom-attributes]
|
|
230
|
+
* for a reference on how to set values for custom attributes.
|
|
231
|
+
*
|
|
232
|
+
* [docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
225
233
|
*
|
|
226
234
|
* > **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
227
235
|
* and require vCenter.
|
|
@@ -230,8 +238,8 @@ export interface NasDatastoreState {
|
|
|
230
238
|
[key: string]: pulumi.Input<string>;
|
|
231
239
|
}>;
|
|
232
240
|
/**
|
|
233
|
-
* The managed object
|
|
234
|
-
* ID of a datastore cluster to put this datastore in.
|
|
241
|
+
* The [managed object
|
|
242
|
+
* ID][docs-about-morefs] of a datastore cluster to put this datastore in.
|
|
235
243
|
* Conflicts with `folder`.
|
|
236
244
|
*/
|
|
237
245
|
datastoreClusterId?: pulumi.Input<string>;
|
|
@@ -239,9 +247,9 @@ export interface NasDatastoreState {
|
|
|
239
247
|
* The relative path to a folder to put this datastore in.
|
|
240
248
|
* This is a path relative to the datacenter you are deploying the datastore to.
|
|
241
249
|
* Example: for the `dc1` datacenter, and a provided `folder` of `foo/bar`,
|
|
242
|
-
*
|
|
250
|
+
* Terraform will place a datastore named `terraform-test` in a datastore folder
|
|
243
251
|
* located at `/dc1/datastore/foo/bar`, with the final inventory path being
|
|
244
|
-
* `/dc1/datastore/foo/bar/test`. Conflicts with
|
|
252
|
+
* `/dc1/datastore/foo/bar/terraform-test`. Conflicts with
|
|
245
253
|
* `datastoreClusterId`.
|
|
246
254
|
*/
|
|
247
255
|
folder?: pulumi.Input<string>;
|
|
@@ -250,7 +258,7 @@ export interface NasDatastoreState {
|
|
|
250
258
|
*/
|
|
251
259
|
freeSpace?: pulumi.Input<number>;
|
|
252
260
|
/**
|
|
253
|
-
* The managed object IDs of
|
|
261
|
+
* The [managed object IDs][docs-about-morefs] of
|
|
254
262
|
* the hosts to mount the datastore on.
|
|
255
263
|
*/
|
|
256
264
|
hostSystemIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
@@ -291,10 +299,11 @@ export interface NasDatastoreState {
|
|
|
291
299
|
*/
|
|
292
300
|
securityType?: pulumi.Input<string>;
|
|
293
301
|
/**
|
|
294
|
-
* The IDs of any tags to attach to this resource.
|
|
302
|
+
* The IDs of any tags to attach to this resource. See
|
|
303
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
295
304
|
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
305
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
306
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
298
307
|
*/
|
|
299
308
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
300
309
|
/**
|
|
@@ -326,7 +335,10 @@ export interface NasDatastoreArgs {
|
|
|
326
335
|
accessMode?: pulumi.Input<string>;
|
|
327
336
|
/**
|
|
328
337
|
* Map of custom attribute ids to attribute
|
|
329
|
-
* value strings to set on
|
|
338
|
+
* value strings to set on resource. See [here][docs-setting-custom-attributes]
|
|
339
|
+
* for a reference on how to set values for custom attributes.
|
|
340
|
+
*
|
|
341
|
+
* [docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
330
342
|
*
|
|
331
343
|
* > **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
332
344
|
* and require vCenter.
|
|
@@ -335,8 +347,8 @@ export interface NasDatastoreArgs {
|
|
|
335
347
|
[key: string]: pulumi.Input<string>;
|
|
336
348
|
}>;
|
|
337
349
|
/**
|
|
338
|
-
* The managed object
|
|
339
|
-
* ID of a datastore cluster to put this datastore in.
|
|
350
|
+
* The [managed object
|
|
351
|
+
* ID][docs-about-morefs] of a datastore cluster to put this datastore in.
|
|
340
352
|
* Conflicts with `folder`.
|
|
341
353
|
*/
|
|
342
354
|
datastoreClusterId?: pulumi.Input<string>;
|
|
@@ -344,14 +356,14 @@ export interface NasDatastoreArgs {
|
|
|
344
356
|
* The relative path to a folder to put this datastore in.
|
|
345
357
|
* This is a path relative to the datacenter you are deploying the datastore to.
|
|
346
358
|
* Example: for the `dc1` datacenter, and a provided `folder` of `foo/bar`,
|
|
347
|
-
*
|
|
359
|
+
* Terraform will place a datastore named `terraform-test` in a datastore folder
|
|
348
360
|
* located at `/dc1/datastore/foo/bar`, with the final inventory path being
|
|
349
|
-
* `/dc1/datastore/foo/bar/test`. Conflicts with
|
|
361
|
+
* `/dc1/datastore/foo/bar/terraform-test`. Conflicts with
|
|
350
362
|
* `datastoreClusterId`.
|
|
351
363
|
*/
|
|
352
364
|
folder?: pulumi.Input<string>;
|
|
353
365
|
/**
|
|
354
|
-
* The managed object IDs of
|
|
366
|
+
* The [managed object IDs][docs-about-morefs] of
|
|
355
367
|
* the hosts to mount the datastore on.
|
|
356
368
|
*/
|
|
357
369
|
hostSystemIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
@@ -378,10 +390,11 @@ export interface NasDatastoreArgs {
|
|
|
378
390
|
*/
|
|
379
391
|
securityType?: pulumi.Input<string>;
|
|
380
392
|
/**
|
|
381
|
-
* The IDs of any tags to attach to this resource.
|
|
393
|
+
* The IDs of any tags to attach to this resource. See
|
|
394
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
382
395
|
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
396
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
397
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
385
398
|
*/
|
|
386
399
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
387
400
|
/**
|