@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/datastoreCluster.d.ts
CHANGED
|
@@ -19,9 +19,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
*
|
|
20
20
|
* The following example sets up a datastore cluster and enables Storage DRS with
|
|
21
21
|
* the default settings. It then creates two NAS datastores using the
|
|
22
|
-
* `vsphere.NasDatastore` resource and assigns them to
|
|
22
|
+
* [`vsphere.NasDatastore` resource][ref-tf-nas-datastore] and assigns them to
|
|
23
23
|
* the datastore cluster.
|
|
24
24
|
*
|
|
25
|
+
* [ref-tf-nas-datastore]: /docs/providers/vsphere/r/nas_datastore.html
|
|
26
|
+
*
|
|
25
27
|
* ```typescript
|
|
26
28
|
* import * as pulumi from "@pulumi/pulumi";
|
|
27
29
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -38,32 +40,31 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
38
40
|
* datacenterId: _arg0_.id,
|
|
39
41
|
* })));
|
|
40
42
|
* const datastoreCluster = new vsphere.DatastoreCluster("datastore_cluster", {
|
|
41
|
-
* name: "datastore-cluster-test",
|
|
43
|
+
* name: "pulumi-datastore-cluster-test",
|
|
42
44
|
* datacenterId: datacenter.then(datacenter => datacenter.id),
|
|
43
45
|
* sdrsEnabled: true,
|
|
44
46
|
* });
|
|
45
47
|
* const datastore1 = new vsphere.NasDatastore("datastore1", {
|
|
46
|
-
* name: "datastore-test1",
|
|
47
|
-
* hostSystemIds: [
|
|
48
|
+
* name: "pulumi-datastore-test1",
|
|
49
|
+
* hostSystemIds: [hostsGetHost.map(__item => __item.id)],
|
|
48
50
|
* datastoreClusterId: datastoreCluster.id,
|
|
49
51
|
* type: "NFS",
|
|
50
52
|
* remoteHosts: ["nfs"],
|
|
51
|
-
* remotePath: "/export/test1",
|
|
53
|
+
* remotePath: "/export/terraform-test1",
|
|
52
54
|
* });
|
|
53
55
|
* const datastore2 = new vsphere.NasDatastore("datastore2", {
|
|
54
|
-
* name: "datastore-test2",
|
|
55
|
-
* hostSystemIds: [
|
|
56
|
+
* name: "pulumi-datastore-test2",
|
|
57
|
+
* hostSystemIds: [hostsGetHost.map(__item => __item.id)],
|
|
56
58
|
* datastoreClusterId: datastoreCluster.id,
|
|
57
59
|
* type: "NFS",
|
|
58
60
|
* remoteHosts: ["nfs"],
|
|
59
|
-
* remotePath: "/export/test2",
|
|
61
|
+
* remotePath: "/export/terraform-test2",
|
|
60
62
|
* });
|
|
61
63
|
* ```
|
|
62
64
|
*
|
|
63
65
|
* ## Import
|
|
64
66
|
*
|
|
65
67
|
* An existing datastore cluster can be imported into this resource
|
|
66
|
-
*
|
|
67
68
|
* via the path to the cluster, via the following command:
|
|
68
69
|
*
|
|
69
70
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
@@ -73,7 +74,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
73
74
|
* ```
|
|
74
75
|
*
|
|
75
76
|
* The above would import the datastore cluster named `ds-cluster` that is located
|
|
76
|
-
*
|
|
77
77
|
* in the `dc1` datacenter.
|
|
78
78
|
*/
|
|
79
79
|
export declare class DatastoreCluster extends pulumi.CustomResource {
|
|
@@ -107,7 +107,7 @@ export declare class DatastoreCluster extends pulumi.CustomResource {
|
|
|
107
107
|
[key: string]: string;
|
|
108
108
|
} | undefined>;
|
|
109
109
|
/**
|
|
110
|
-
* The managed object ID of
|
|
110
|
+
* The [managed object ID][docs-about-morefs] of
|
|
111
111
|
* the datacenter to create the datastore cluster in. Forces a new resource if
|
|
112
112
|
* changed.
|
|
113
113
|
*/
|
|
@@ -116,10 +116,10 @@ export declare class DatastoreCluster extends pulumi.CustomResource {
|
|
|
116
116
|
* The relative path to a folder to put this datastore
|
|
117
117
|
* cluster in. This is a path relative to the datacenter you are deploying the
|
|
118
118
|
* datastore to. Example: for the `dc1` datacenter, and a provided `folder` of
|
|
119
|
-
* `foo/bar`,
|
|
120
|
-
* `datastore-cluster-test` in a datastore folder located at
|
|
119
|
+
* `foo/bar`, Terraform will place a datastore cluster named
|
|
120
|
+
* `terraform-datastore-cluster-test` in a datastore folder located at
|
|
121
121
|
* `/dc1/datastore/foo/bar`, with the final inventory path being
|
|
122
|
-
* `/dc1/datastore/foo/bar/datastore-cluster-test`.
|
|
122
|
+
* `/dc1/datastore/foo/bar/terraform-datastore-cluster-test`.
|
|
123
123
|
*/
|
|
124
124
|
readonly folder: pulumi.Output<string | undefined>;
|
|
125
125
|
/**
|
|
@@ -210,7 +210,11 @@ export declare class DatastoreCluster extends pulumi.CustomResource {
|
|
|
210
210
|
*/
|
|
211
211
|
readonly sdrsVmEvacuationAutomationLevel: pulumi.Output<string | undefined>;
|
|
212
212
|
/**
|
|
213
|
-
* The IDs of any tags to attach to this resource.
|
|
213
|
+
* The IDs of any tags to attach to this resource. See
|
|
214
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
215
|
+
*
|
|
216
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
217
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
214
218
|
*/
|
|
215
219
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
216
220
|
/**
|
|
@@ -241,7 +245,7 @@ export interface DatastoreClusterState {
|
|
|
241
245
|
[key: string]: pulumi.Input<string>;
|
|
242
246
|
}>;
|
|
243
247
|
/**
|
|
244
|
-
* The managed object ID of
|
|
248
|
+
* The [managed object ID][docs-about-morefs] of
|
|
245
249
|
* the datacenter to create the datastore cluster in. Forces a new resource if
|
|
246
250
|
* changed.
|
|
247
251
|
*/
|
|
@@ -250,10 +254,10 @@ export interface DatastoreClusterState {
|
|
|
250
254
|
* The relative path to a folder to put this datastore
|
|
251
255
|
* cluster in. This is a path relative to the datacenter you are deploying the
|
|
252
256
|
* datastore to. Example: for the `dc1` datacenter, and a provided `folder` of
|
|
253
|
-
* `foo/bar`,
|
|
254
|
-
* `datastore-cluster-test` in a datastore folder located at
|
|
257
|
+
* `foo/bar`, Terraform will place a datastore cluster named
|
|
258
|
+
* `terraform-datastore-cluster-test` in a datastore folder located at
|
|
255
259
|
* `/dc1/datastore/foo/bar`, with the final inventory path being
|
|
256
|
-
* `/dc1/datastore/foo/bar/datastore-cluster-test`.
|
|
260
|
+
* `/dc1/datastore/foo/bar/terraform-datastore-cluster-test`.
|
|
257
261
|
*/
|
|
258
262
|
folder?: pulumi.Input<string>;
|
|
259
263
|
/**
|
|
@@ -344,7 +348,11 @@ export interface DatastoreClusterState {
|
|
|
344
348
|
*/
|
|
345
349
|
sdrsVmEvacuationAutomationLevel?: pulumi.Input<string>;
|
|
346
350
|
/**
|
|
347
|
-
* The IDs of any tags to attach to this resource.
|
|
351
|
+
* The IDs of any tags to attach to this resource. See
|
|
352
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
353
|
+
*
|
|
354
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
355
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
348
356
|
*/
|
|
349
357
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
350
358
|
}
|
|
@@ -367,7 +375,7 @@ export interface DatastoreClusterArgs {
|
|
|
367
375
|
[key: string]: pulumi.Input<string>;
|
|
368
376
|
}>;
|
|
369
377
|
/**
|
|
370
|
-
* The managed object ID of
|
|
378
|
+
* The [managed object ID][docs-about-morefs] of
|
|
371
379
|
* the datacenter to create the datastore cluster in. Forces a new resource if
|
|
372
380
|
* changed.
|
|
373
381
|
*/
|
|
@@ -376,10 +384,10 @@ export interface DatastoreClusterArgs {
|
|
|
376
384
|
* The relative path to a folder to put this datastore
|
|
377
385
|
* cluster in. This is a path relative to the datacenter you are deploying the
|
|
378
386
|
* datastore to. Example: for the `dc1` datacenter, and a provided `folder` of
|
|
379
|
-
* `foo/bar`,
|
|
380
|
-
* `datastore-cluster-test` in a datastore folder located at
|
|
387
|
+
* `foo/bar`, Terraform will place a datastore cluster named
|
|
388
|
+
* `terraform-datastore-cluster-test` in a datastore folder located at
|
|
381
389
|
* `/dc1/datastore/foo/bar`, with the final inventory path being
|
|
382
|
-
* `/dc1/datastore/foo/bar/datastore-cluster-test`.
|
|
390
|
+
* `/dc1/datastore/foo/bar/terraform-datastore-cluster-test`.
|
|
383
391
|
*/
|
|
384
392
|
folder?: pulumi.Input<string>;
|
|
385
393
|
/**
|
|
@@ -470,7 +478,11 @@ export interface DatastoreClusterArgs {
|
|
|
470
478
|
*/
|
|
471
479
|
sdrsVmEvacuationAutomationLevel?: pulumi.Input<string>;
|
|
472
480
|
/**
|
|
473
|
-
* The IDs of any tags to attach to this resource.
|
|
481
|
+
* The IDs of any tags to attach to this resource. See
|
|
482
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
483
|
+
*
|
|
484
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
485
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
474
486
|
*/
|
|
475
487
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
476
488
|
}
|
package/datastoreCluster.js
CHANGED
|
@@ -25,9 +25,11 @@ const utilities = require("./utilities");
|
|
|
25
25
|
*
|
|
26
26
|
* The following example sets up a datastore cluster and enables Storage DRS with
|
|
27
27
|
* the default settings. It then creates two NAS datastores using the
|
|
28
|
-
* `vsphere.NasDatastore` resource and assigns them to
|
|
28
|
+
* [`vsphere.NasDatastore` resource][ref-tf-nas-datastore] and assigns them to
|
|
29
29
|
* the datastore cluster.
|
|
30
30
|
*
|
|
31
|
+
* [ref-tf-nas-datastore]: /docs/providers/vsphere/r/nas_datastore.html
|
|
32
|
+
*
|
|
31
33
|
* ```typescript
|
|
32
34
|
* import * as pulumi from "@pulumi/pulumi";
|
|
33
35
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -44,32 +46,31 @@ const utilities = require("./utilities");
|
|
|
44
46
|
* datacenterId: _arg0_.id,
|
|
45
47
|
* })));
|
|
46
48
|
* const datastoreCluster = new vsphere.DatastoreCluster("datastore_cluster", {
|
|
47
|
-
* name: "datastore-cluster-test",
|
|
49
|
+
* name: "pulumi-datastore-cluster-test",
|
|
48
50
|
* datacenterId: datacenter.then(datacenter => datacenter.id),
|
|
49
51
|
* sdrsEnabled: true,
|
|
50
52
|
* });
|
|
51
53
|
* const datastore1 = new vsphere.NasDatastore("datastore1", {
|
|
52
|
-
* name: "datastore-test1",
|
|
53
|
-
* hostSystemIds: [
|
|
54
|
+
* name: "pulumi-datastore-test1",
|
|
55
|
+
* hostSystemIds: [hostsGetHost.map(__item => __item.id)],
|
|
54
56
|
* datastoreClusterId: datastoreCluster.id,
|
|
55
57
|
* type: "NFS",
|
|
56
58
|
* remoteHosts: ["nfs"],
|
|
57
|
-
* remotePath: "/export/test1",
|
|
59
|
+
* remotePath: "/export/terraform-test1",
|
|
58
60
|
* });
|
|
59
61
|
* const datastore2 = new vsphere.NasDatastore("datastore2", {
|
|
60
|
-
* name: "datastore-test2",
|
|
61
|
-
* hostSystemIds: [
|
|
62
|
+
* name: "pulumi-datastore-test2",
|
|
63
|
+
* hostSystemIds: [hostsGetHost.map(__item => __item.id)],
|
|
62
64
|
* datastoreClusterId: datastoreCluster.id,
|
|
63
65
|
* type: "NFS",
|
|
64
66
|
* remoteHosts: ["nfs"],
|
|
65
|
-
* remotePath: "/export/test2",
|
|
67
|
+
* remotePath: "/export/terraform-test2",
|
|
66
68
|
* });
|
|
67
69
|
* ```
|
|
68
70
|
*
|
|
69
71
|
* ## Import
|
|
70
72
|
*
|
|
71
73
|
* An existing datastore cluster can be imported into this resource
|
|
72
|
-
*
|
|
73
74
|
* via the path to the cluster, via the following command:
|
|
74
75
|
*
|
|
75
76
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
@@ -79,7 +80,6 @@ const utilities = require("./utilities");
|
|
|
79
80
|
* ```
|
|
80
81
|
*
|
|
81
82
|
* The above would import the datastore cluster named `ds-cluster` that is located
|
|
82
|
-
*
|
|
83
83
|
* in the `dc1` datacenter.
|
|
84
84
|
*/
|
|
85
85
|
class DatastoreCluster extends pulumi.CustomResource {
|
package/datastoreCluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datastoreCluster.js","sourceRoot":"","sources":["../datastoreCluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;
|
|
1
|
+
{"version":3,"file":"datastoreCluster.js","sourceRoot":"","sources":["../datastoreCluster.ts"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Ac,CAAC,kCAAkC,CAAC,GAAG,IAAI,EAAE,gCAAgC,CAAC;YAC5F,cAAc,CAAC,+BAA+B,CAAC,GAAG,IAAI,EAAE,6BAA6B,CAAC;YACtF,cAAc,CAAC,yBAAyB,CAAC,GAAG,IAAI,EAAE,uBAAuB,CAAC;YAC1E,cAAc,CAAC,sCAAsC,CAAC,GAAG,IAAI,EAAE,oCAAoC,CAAC;YACpG,cAAc,CAAC,oCAAoC,CAAC,GAAG,IAAI,EAAE,kCAAkC,CAAC;YAChG,cAAc,CAAC,iCAAiC,CAAC,GAAG,IAAI,EAAE,+BAA+B,CAAC;YAC1F,cAAc,CAAC,+BAA+B,CAAC,GAAG,IAAI,EAAE,6BAA6B,CAAC;YACtF,cAAc,CAAC,iCAAiC,CAAC,GAAG,IAAI,EAAE,+BAA+B,CAAC;YAC1F,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA7NL,4CA8NC;AAhNG,gBAAgB;AACO,6BAAY,GAAG,iDAAiD,CAAC"}
|
|
@@ -2,8 +2,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* The `vsphere.DatastoreClusterVmAntiAffinityRule` resource can be used to
|
|
4
4
|
* manage VM anti-affinity rules in a datastore cluster, either created by the
|
|
5
|
-
* `vsphere.DatastoreCluster` resource or looked up
|
|
6
|
-
* by the `vsphere.DatastoreCluster` data source.
|
|
5
|
+
* [`vsphere.DatastoreCluster`][tf-vsphere-datastore-cluster-resource] resource or looked up
|
|
6
|
+
* by the [`vsphere.DatastoreCluster`][tf-vsphere-datastore-cluster-data-source] data source.
|
|
7
|
+
*
|
|
8
|
+
* [tf-vsphere-datastore-cluster-resource]: /docs/providers/vsphere/r/datastore_cluster.html
|
|
9
|
+
* [tf-vsphere-datastore-cluster-data-source]: /docs/providers/vsphere/d/datastore_cluster.html
|
|
7
10
|
*
|
|
8
11
|
* This rule can be used to tell a set to virtual machines to run on different
|
|
9
12
|
* datastores within a cluster, useful for preventing single points of failure in
|
|
@@ -20,12 +23,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
23
|
* ## Example Usage
|
|
21
24
|
*
|
|
22
25
|
* The example below creates two virtual machines in a cluster using the
|
|
23
|
-
* `vsphere.VirtualMachine` resource, creating the
|
|
26
|
+
* [`vsphere.VirtualMachine`][tf-vsphere-vm-resource] resource, creating the
|
|
24
27
|
* virtual machines in the datastore cluster looked up by the
|
|
25
|
-
* `vsphere.DatastoreCluster` data
|
|
28
|
+
* [`vsphere.DatastoreCluster`][tf-vsphere-datastore-cluster-data-source] data
|
|
26
29
|
* source. It then creates an anti-affinity rule for these two virtual machines,
|
|
27
30
|
* ensuring they will run on different datastores whenever possible.
|
|
28
31
|
*
|
|
32
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
33
|
+
*
|
|
29
34
|
* ```typescript
|
|
30
35
|
* import * as pulumi from "@pulumi/pulumi";
|
|
31
36
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -48,7 +53,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
48
53
|
* const vm: vsphere.VirtualMachine[] = [];
|
|
49
54
|
* for (const range = {value: 0}; range.value < 2; range.value++) {
|
|
50
55
|
* vm.push(new vsphere.VirtualMachine(`vm-${range.value}`, {
|
|
51
|
-
* name: `test-${range.value}`,
|
|
56
|
+
* name: `pulumi-test-${range.value}`,
|
|
52
57
|
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
53
58
|
* datastoreClusterId: datastoreCluster.then(datastoreCluster => datastoreCluster.id),
|
|
54
59
|
* numCpus: 2,
|
|
@@ -64,7 +69,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
64
69
|
* }));
|
|
65
70
|
* }
|
|
66
71
|
* const clusterVmAntiAffinityRule = new vsphere.DatastoreClusterVmAntiAffinityRule("cluster_vm_anti_affinity_rule", {
|
|
67
|
-
* name: "test-datastore-cluster-vm-anti-affinity-rule",
|
|
72
|
+
* name: "pulumi-test-datastore-cluster-vm-anti-affinity-rule",
|
|
68
73
|
* datastoreClusterId: datastoreCluster.then(datastoreCluster => datastoreCluster.id),
|
|
69
74
|
* virtualMachineIds: [vm.map(__item => __item.id)],
|
|
70
75
|
* });
|
|
@@ -73,22 +78,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
73
78
|
* ## Import
|
|
74
79
|
*
|
|
75
80
|
* An existing rule can be imported into this resource by supplying
|
|
76
|
-
*
|
|
77
81
|
* both the path to the cluster, and the name the rule. If the name or cluster is
|
|
78
|
-
*
|
|
79
82
|
* not found, or if the rule is of a different type, an error will be returned. An
|
|
80
|
-
*
|
|
81
83
|
* example is below:
|
|
82
84
|
*
|
|
83
85
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
84
86
|
*
|
|
85
87
|
* ```sh
|
|
86
|
-
*
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
88
|
+
* terraform import vsphere_datastore_cluster_vm_anti_affinity_rule.cluster_vm_anti_affinity_rule \
|
|
89
89
|
* '{"compute_cluster_path": "/dc1/datastore/cluster1", \
|
|
90
|
-
*
|
|
91
90
|
* "name": "pulumi-test-datastore-cluster-vm-anti-affinity-rule"}'
|
|
91
|
+
* ```
|
|
92
92
|
*/
|
|
93
93
|
export declare class DatastoreClusterVmAntiAffinityRule extends pulumi.CustomResource {
|
|
94
94
|
/**
|
|
@@ -107,9 +107,11 @@ export declare class DatastoreClusterVmAntiAffinityRule extends pulumi.CustomRes
|
|
|
107
107
|
*/
|
|
108
108
|
static isInstance(obj: any): obj is DatastoreClusterVmAntiAffinityRule;
|
|
109
109
|
/**
|
|
110
|
-
* The managed object reference
|
|
111
|
-
* ID of the datastore cluster to put the group in. Forces
|
|
110
|
+
* The [managed object reference
|
|
111
|
+
* ID][docs-about-morefs] of the datastore cluster to put the group in. Forces
|
|
112
112
|
* a new resource if changed.
|
|
113
|
+
*
|
|
114
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
113
115
|
*/
|
|
114
116
|
readonly datastoreClusterId: pulumi.Output<string>;
|
|
115
117
|
/**
|
|
@@ -129,7 +131,10 @@ export declare class DatastoreClusterVmAntiAffinityRule extends pulumi.CustomRes
|
|
|
129
131
|
* The UUIDs of the virtual machines to run
|
|
130
132
|
* on different datastores from each other.
|
|
131
133
|
*
|
|
132
|
-
* > **NOTE:** The minimum length of `virtualMachineIds` is 2
|
|
134
|
+
* > **NOTE:** The minimum length of `virtualMachineIds` is 2, and due to
|
|
135
|
+
* current limitations in Terraform Core, the value is currently checked during
|
|
136
|
+
* the apply phase, not the validation or plan phases. Ensure proper length of
|
|
137
|
+
* this value to prevent failures mid-apply.
|
|
133
138
|
*/
|
|
134
139
|
readonly virtualMachineIds: pulumi.Output<string[]>;
|
|
135
140
|
/**
|
|
@@ -146,9 +151,11 @@ export declare class DatastoreClusterVmAntiAffinityRule extends pulumi.CustomRes
|
|
|
146
151
|
*/
|
|
147
152
|
export interface DatastoreClusterVmAntiAffinityRuleState {
|
|
148
153
|
/**
|
|
149
|
-
* The managed object reference
|
|
150
|
-
* ID of the datastore cluster to put the group in. Forces
|
|
154
|
+
* The [managed object reference
|
|
155
|
+
* ID][docs-about-morefs] of the datastore cluster to put the group in. Forces
|
|
151
156
|
* a new resource if changed.
|
|
157
|
+
*
|
|
158
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
152
159
|
*/
|
|
153
160
|
datastoreClusterId?: pulumi.Input<string>;
|
|
154
161
|
/**
|
|
@@ -168,7 +175,10 @@ export interface DatastoreClusterVmAntiAffinityRuleState {
|
|
|
168
175
|
* The UUIDs of the virtual machines to run
|
|
169
176
|
* on different datastores from each other.
|
|
170
177
|
*
|
|
171
|
-
* > **NOTE:** The minimum length of `virtualMachineIds` is 2
|
|
178
|
+
* > **NOTE:** The minimum length of `virtualMachineIds` is 2, and due to
|
|
179
|
+
* current limitations in Terraform Core, the value is currently checked during
|
|
180
|
+
* the apply phase, not the validation or plan phases. Ensure proper length of
|
|
181
|
+
* this value to prevent failures mid-apply.
|
|
172
182
|
*/
|
|
173
183
|
virtualMachineIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
174
184
|
}
|
|
@@ -177,9 +187,11 @@ export interface DatastoreClusterVmAntiAffinityRuleState {
|
|
|
177
187
|
*/
|
|
178
188
|
export interface DatastoreClusterVmAntiAffinityRuleArgs {
|
|
179
189
|
/**
|
|
180
|
-
* The managed object reference
|
|
181
|
-
* ID of the datastore cluster to put the group in. Forces
|
|
190
|
+
* The [managed object reference
|
|
191
|
+
* ID][docs-about-morefs] of the datastore cluster to put the group in. Forces
|
|
182
192
|
* a new resource if changed.
|
|
193
|
+
*
|
|
194
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
183
195
|
*/
|
|
184
196
|
datastoreClusterId: pulumi.Input<string>;
|
|
185
197
|
/**
|
|
@@ -199,7 +211,10 @@ export interface DatastoreClusterVmAntiAffinityRuleArgs {
|
|
|
199
211
|
* The UUIDs of the virtual machines to run
|
|
200
212
|
* on different datastores from each other.
|
|
201
213
|
*
|
|
202
|
-
* > **NOTE:** The minimum length of `virtualMachineIds` is 2
|
|
214
|
+
* > **NOTE:** The minimum length of `virtualMachineIds` is 2, and due to
|
|
215
|
+
* current limitations in Terraform Core, the value is currently checked during
|
|
216
|
+
* the apply phase, not the validation or plan phases. Ensure proper length of
|
|
217
|
+
* this value to prevent failures mid-apply.
|
|
203
218
|
*/
|
|
204
219
|
virtualMachineIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
205
220
|
}
|
|
@@ -8,8 +8,11 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* The `vsphere.DatastoreClusterVmAntiAffinityRule` resource can be used to
|
|
10
10
|
* manage VM anti-affinity rules in a datastore cluster, either created by the
|
|
11
|
-
* `vsphere.DatastoreCluster` resource or looked up
|
|
12
|
-
* by the `vsphere.DatastoreCluster` data source.
|
|
11
|
+
* [`vsphere.DatastoreCluster`][tf-vsphere-datastore-cluster-resource] resource or looked up
|
|
12
|
+
* by the [`vsphere.DatastoreCluster`][tf-vsphere-datastore-cluster-data-source] data source.
|
|
13
|
+
*
|
|
14
|
+
* [tf-vsphere-datastore-cluster-resource]: /docs/providers/vsphere/r/datastore_cluster.html
|
|
15
|
+
* [tf-vsphere-datastore-cluster-data-source]: /docs/providers/vsphere/d/datastore_cluster.html
|
|
13
16
|
*
|
|
14
17
|
* This rule can be used to tell a set to virtual machines to run on different
|
|
15
18
|
* datastores within a cluster, useful for preventing single points of failure in
|
|
@@ -26,12 +29,14 @@ const utilities = require("./utilities");
|
|
|
26
29
|
* ## Example Usage
|
|
27
30
|
*
|
|
28
31
|
* The example below creates two virtual machines in a cluster using the
|
|
29
|
-
* `vsphere.VirtualMachine` resource, creating the
|
|
32
|
+
* [`vsphere.VirtualMachine`][tf-vsphere-vm-resource] resource, creating the
|
|
30
33
|
* virtual machines in the datastore cluster looked up by the
|
|
31
|
-
* `vsphere.DatastoreCluster` data
|
|
34
|
+
* [`vsphere.DatastoreCluster`][tf-vsphere-datastore-cluster-data-source] data
|
|
32
35
|
* source. It then creates an anti-affinity rule for these two virtual machines,
|
|
33
36
|
* ensuring they will run on different datastores whenever possible.
|
|
34
37
|
*
|
|
38
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
39
|
+
*
|
|
35
40
|
* ```typescript
|
|
36
41
|
* import * as pulumi from "@pulumi/pulumi";
|
|
37
42
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -54,7 +59,7 @@ const utilities = require("./utilities");
|
|
|
54
59
|
* const vm: vsphere.VirtualMachine[] = [];
|
|
55
60
|
* for (const range = {value: 0}; range.value < 2; range.value++) {
|
|
56
61
|
* vm.push(new vsphere.VirtualMachine(`vm-${range.value}`, {
|
|
57
|
-
* name: `test-${range.value}`,
|
|
62
|
+
* name: `pulumi-test-${range.value}`,
|
|
58
63
|
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
59
64
|
* datastoreClusterId: datastoreCluster.then(datastoreCluster => datastoreCluster.id),
|
|
60
65
|
* numCpus: 2,
|
|
@@ -70,7 +75,7 @@ const utilities = require("./utilities");
|
|
|
70
75
|
* }));
|
|
71
76
|
* }
|
|
72
77
|
* const clusterVmAntiAffinityRule = new vsphere.DatastoreClusterVmAntiAffinityRule("cluster_vm_anti_affinity_rule", {
|
|
73
|
-
* name: "test-datastore-cluster-vm-anti-affinity-rule",
|
|
78
|
+
* name: "pulumi-test-datastore-cluster-vm-anti-affinity-rule",
|
|
74
79
|
* datastoreClusterId: datastoreCluster.then(datastoreCluster => datastoreCluster.id),
|
|
75
80
|
* virtualMachineIds: [vm.map(__item => __item.id)],
|
|
76
81
|
* });
|
|
@@ -79,22 +84,17 @@ const utilities = require("./utilities");
|
|
|
79
84
|
* ## Import
|
|
80
85
|
*
|
|
81
86
|
* An existing rule can be imported into this resource by supplying
|
|
82
|
-
*
|
|
83
87
|
* both the path to the cluster, and the name the rule. If the name or cluster is
|
|
84
|
-
*
|
|
85
88
|
* not found, or if the rule is of a different type, an error will be returned. An
|
|
86
|
-
*
|
|
87
89
|
* example is below:
|
|
88
90
|
*
|
|
89
91
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
90
92
|
*
|
|
91
93
|
* ```sh
|
|
92
|
-
*
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
94
|
+
* terraform import vsphere_datastore_cluster_vm_anti_affinity_rule.cluster_vm_anti_affinity_rule \
|
|
95
95
|
* '{"compute_cluster_path": "/dc1/datastore/cluster1", \
|
|
96
|
-
*
|
|
97
96
|
* "name": "pulumi-test-datastore-cluster-vm-anti-affinity-rule"}'
|
|
97
|
+
* ```
|
|
98
98
|
*/
|
|
99
99
|
class DatastoreClusterVmAntiAffinityRule extends pulumi.CustomResource {
|
|
100
100
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datastoreClusterVmAntiAffinityRule.js","sourceRoot":"","sources":["../datastoreClusterVmAntiAffinityRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,MAAa,kCAAmC,SAAQ,MAAM,CAAC,cAAc;IACzE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+C,EAAE,IAAmC;QAC7I,OAAO,IAAI,kCAAkC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzF,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,kCAAkC,CAAC,YAAY,CAAC;IACnF,CAAC;
|
|
1
|
+
{"version":3,"file":"datastoreClusterVmAntiAffinityRule.js","sourceRoot":"","sources":["../datastoreClusterVmAntiAffinityRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;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D,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACrE;YACD,IAAI,IAAI,EAAE,iBAAiB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;aACpE;YACD,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kCAAkC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvF,CAAC;;AA9FL,gFA+FC;AAjFG,gBAAgB;AACO,+CAAY,GAAG,qFAAqF,CAAC"}
|
|
@@ -5,7 +5,7 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
* The `vsphere.DistributedPortGroup` resource can be used to manage
|
|
6
6
|
* distributed port groups connected to vSphere Distributed Switches (VDS).
|
|
7
7
|
* A vSphere Distributed Switch can be managed by the
|
|
8
|
-
* `vsphere.DistributedVirtualSwitch` resource.
|
|
8
|
+
* [`vsphere.DistributedVirtualSwitch`][distributed-virtual-switch] resource.
|
|
9
9
|
*
|
|
10
10
|
* Distributed port groups can be used as networks for virtual machines, allowing
|
|
11
11
|
* the virtual machines to use the networking supplied by a vSphere Distributed
|
|
@@ -18,7 +18,8 @@ import * as outputs from "./types/output";
|
|
|
18
18
|
* * For more information on distributed port groups, refer to the vSphere
|
|
19
19
|
* [product documentation][ref-vsphere-dvportgroup].
|
|
20
20
|
*
|
|
21
|
-
* [
|
|
21
|
+
* [distributed-virtual-switch]: /docs/providers/vsphere/r/distributed_virtual_switch.html
|
|
22
|
+
* [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
|
|
22
23
|
* [ref-vsphere-dvportgroup]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/basic-networking-with-vnetwork-distributed-switches/dvport-groups.html
|
|
23
24
|
*
|
|
24
25
|
* > **NOTE:** This resource requires vCenter and is not available on
|
|
@@ -27,7 +28,7 @@ import * as outputs from "./types/output";
|
|
|
27
28
|
* ## Example Usage
|
|
28
29
|
*
|
|
29
30
|
* The configuration below builds on the example given in the
|
|
30
|
-
* `vsphere.DistributedVirtualSwitch` resource by
|
|
31
|
+
* [`vsphere.DistributedVirtualSwitch`][distributed-virtual-switch] resource by
|
|
31
32
|
* adding the `vsphere.DistributedPortGroup` resource, attaching itself to the
|
|
32
33
|
* vSphere Distributed Switch and assigning VLAN ID 1000.
|
|
33
34
|
*
|
|
@@ -95,10 +96,12 @@ import * as outputs from "./types/output";
|
|
|
95
96
|
*
|
|
96
97
|
* ### Overriding VDS policies
|
|
97
98
|
*
|
|
98
|
-
* All of the default port policies available in the
|
|
99
|
+
* All of the [default port policies][vds-default-port-policies] available in the
|
|
99
100
|
* `vsphere.DistributedVirtualSwitch` resource can be overridden on the port
|
|
100
101
|
* group level by specifying new settings for them.
|
|
101
102
|
*
|
|
103
|
+
* [vds-default-port-policies]: /docs/providers/vsphere/r/distributed_virtual_switch.html#default-port-group-policy-arguments
|
|
104
|
+
*
|
|
102
105
|
* As an example, we also take this example from the
|
|
103
106
|
* `vsphere.DistributedVirtualSwitch` resource where we manually specify our
|
|
104
107
|
* uplink count and uplink order. While the vSphere Distributed Switch has a
|
|
@@ -135,7 +138,6 @@ import * as outputs from "./types/output";
|
|
|
135
138
|
* ## Import
|
|
136
139
|
*
|
|
137
140
|
* An existing port group can be imported into this resource using
|
|
138
|
-
*
|
|
139
141
|
* the managed object id of the port group, via the following command:
|
|
140
142
|
*
|
|
141
143
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
@@ -145,7 +147,6 @@ import * as outputs from "./types/output";
|
|
|
145
147
|
* ```
|
|
146
148
|
*
|
|
147
149
|
* The above would import the port group named `pg-01` that is located in the `dc-01`
|
|
148
|
-
*
|
|
149
150
|
* datacenter.
|
|
150
151
|
*/
|
|
151
152
|
export declare class DistributedPortGroup extends pulumi.CustomResource {
|
|
@@ -208,7 +209,10 @@ export declare class DistributedPortGroup extends pulumi.CustomResource {
|
|
|
208
209
|
readonly configVersion: pulumi.Output<string>;
|
|
209
210
|
/**
|
|
210
211
|
* Map of custom attribute ids to attribute
|
|
211
|
-
* value string to set for port group.
|
|
212
|
+
* value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
213
|
+
* for a reference on how to set values for custom attributes.
|
|
214
|
+
*
|
|
215
|
+
* [docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
212
216
|
*
|
|
213
217
|
* > **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
214
218
|
* connections and require vCenter Server.
|
|
@@ -434,7 +438,10 @@ export interface DistributedPortGroupState {
|
|
|
434
438
|
configVersion?: pulumi.Input<string>;
|
|
435
439
|
/**
|
|
436
440
|
* Map of custom attribute ids to attribute
|
|
437
|
-
* value string to set for port group.
|
|
441
|
+
* value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
442
|
+
* for a reference on how to set values for custom attributes.
|
|
443
|
+
*
|
|
444
|
+
* [docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
438
445
|
*
|
|
439
446
|
* > **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
440
447
|
* connections and require vCenter Server.
|
|
@@ -647,7 +654,10 @@ export interface DistributedPortGroupArgs {
|
|
|
647
654
|
checkBeacon?: pulumi.Input<boolean>;
|
|
648
655
|
/**
|
|
649
656
|
* Map of custom attribute ids to attribute
|
|
650
|
-
* value string to set for port group.
|
|
657
|
+
* value string to set for port group. See [here][docs-setting-custom-attributes]
|
|
658
|
+
* for a reference on how to set values for custom attributes.
|
|
659
|
+
*
|
|
660
|
+
* [docs-setting-custom-attributes]: /docs/providers/vsphere/r/custom_attribute.html#using-custom-attributes-in-a-supported-resource
|
|
651
661
|
*
|
|
652
662
|
* > **NOTE:** Custom attributes are not supported on direct ESXi host
|
|
653
663
|
* connections and require vCenter Server.
|
package/distributedPortGroup.js
CHANGED
|
@@ -9,7 +9,7 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The `vsphere.DistributedPortGroup` resource can be used to manage
|
|
10
10
|
* distributed port groups connected to vSphere Distributed Switches (VDS).
|
|
11
11
|
* A vSphere Distributed Switch can be managed by the
|
|
12
|
-
* `vsphere.DistributedVirtualSwitch` resource.
|
|
12
|
+
* [`vsphere.DistributedVirtualSwitch`][distributed-virtual-switch] resource.
|
|
13
13
|
*
|
|
14
14
|
* Distributed port groups can be used as networks for virtual machines, allowing
|
|
15
15
|
* the virtual machines to use the networking supplied by a vSphere Distributed
|
|
@@ -22,7 +22,8 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* * For more information on distributed port groups, refer to the vSphere
|
|
23
23
|
* [product documentation][ref-vsphere-dvportgroup].
|
|
24
24
|
*
|
|
25
|
-
* [
|
|
25
|
+
* [distributed-virtual-switch]: /docs/providers/vsphere/r/distributed_virtual_switch.html
|
|
26
|
+
* [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
|
|
26
27
|
* [ref-vsphere-dvportgroup]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/basic-networking-with-vnetwork-distributed-switches/dvport-groups.html
|
|
27
28
|
*
|
|
28
29
|
* > **NOTE:** This resource requires vCenter and is not available on
|
|
@@ -31,7 +32,7 @@ const utilities = require("./utilities");
|
|
|
31
32
|
* ## Example Usage
|
|
32
33
|
*
|
|
33
34
|
* The configuration below builds on the example given in the
|
|
34
|
-
* `vsphere.DistributedVirtualSwitch` resource by
|
|
35
|
+
* [`vsphere.DistributedVirtualSwitch`][distributed-virtual-switch] resource by
|
|
35
36
|
* adding the `vsphere.DistributedPortGroup` resource, attaching itself to the
|
|
36
37
|
* vSphere Distributed Switch and assigning VLAN ID 1000.
|
|
37
38
|
*
|
|
@@ -99,10 +100,12 @@ const utilities = require("./utilities");
|
|
|
99
100
|
*
|
|
100
101
|
* ### Overriding VDS policies
|
|
101
102
|
*
|
|
102
|
-
* All of the default port policies available in the
|
|
103
|
+
* All of the [default port policies][vds-default-port-policies] available in the
|
|
103
104
|
* `vsphere.DistributedVirtualSwitch` resource can be overridden on the port
|
|
104
105
|
* group level by specifying new settings for them.
|
|
105
106
|
*
|
|
107
|
+
* [vds-default-port-policies]: /docs/providers/vsphere/r/distributed_virtual_switch.html#default-port-group-policy-arguments
|
|
108
|
+
*
|
|
106
109
|
* As an example, we also take this example from the
|
|
107
110
|
* `vsphere.DistributedVirtualSwitch` resource where we manually specify our
|
|
108
111
|
* uplink count and uplink order. While the vSphere Distributed Switch has a
|
|
@@ -139,7 +142,6 @@ const utilities = require("./utilities");
|
|
|
139
142
|
* ## Import
|
|
140
143
|
*
|
|
141
144
|
* An existing port group can be imported into this resource using
|
|
142
|
-
*
|
|
143
145
|
* the managed object id of the port group, via the following command:
|
|
144
146
|
*
|
|
145
147
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
@@ -149,7 +151,6 @@ const utilities = require("./utilities");
|
|
|
149
151
|
* ```
|
|
150
152
|
*
|
|
151
153
|
* The above would import the port group named `pg-01` that is located in the `dc-01`
|
|
152
|
-
*
|
|
153
154
|
* datacenter.
|
|
154
155
|
*/
|
|
155
156
|
class DistributedPortGroup extends pulumi.CustomResource {
|