@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/nasDatastore.js
CHANGED
|
@@ -10,16 +10,18 @@ const utilities = require("./utilities");
|
|
|
10
10
|
* datastores on an ESXi host or a set of hosts. The resource supports mounting
|
|
11
11
|
* NFS v3 and v4.1 shares to be used as datastores.
|
|
12
12
|
*
|
|
13
|
-
* > **NOTE:** Unlike `vsphere.VmfsDatastore
|
|
13
|
+
* > **NOTE:** Unlike [`vsphere.VmfsDatastore`][resource-vmfs-datastore], a NAS
|
|
14
14
|
* datastore is only mounted on the hosts you choose to mount it on. To mount on
|
|
15
15
|
* multiple hosts, you must specify each host that you want to add in the
|
|
16
16
|
* `hostSystemIds` argument.
|
|
17
17
|
*
|
|
18
|
+
* [resource-vmfs-datastore]: /docs/providers/vsphere/r/vmfs_datastore.html
|
|
19
|
+
*
|
|
18
20
|
* ## Example Usage
|
|
19
21
|
*
|
|
20
22
|
* The following example would set up a NFS v3 share on 3 hosts connected through
|
|
21
23
|
* vCenter in the same datacenter - `esxi1`, `esxi2`, and `esxi3`. The remote host
|
|
22
|
-
* is named `nfs` and has `/export/test` exported.
|
|
24
|
+
* is named `nfs` and has `/export/terraform-test` exported.
|
|
23
25
|
*
|
|
24
26
|
* ```typescript
|
|
25
27
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -39,18 +41,17 @@ const utilities = require("./utilities");
|
|
|
39
41
|
* datacenterId: _arg0_.id,
|
|
40
42
|
* })));
|
|
41
43
|
* const datastore = new vsphere.NasDatastore("datastore", {
|
|
42
|
-
* name: "test",
|
|
43
|
-
* hostSystemIds: [
|
|
44
|
+
* name: "pulumi-test",
|
|
45
|
+
* hostSystemIds: [hostsGetHost.map(__item => __item.id)],
|
|
44
46
|
* type: "NFS",
|
|
45
47
|
* remoteHosts: ["nfs"],
|
|
46
|
-
* remotePath: "/export/test",
|
|
48
|
+
* remotePath: "/export/terraform-test",
|
|
47
49
|
* });
|
|
48
50
|
* ```
|
|
49
51
|
*
|
|
50
52
|
* ## Import
|
|
51
53
|
*
|
|
52
54
|
* An existing NAS datastore can be imported into this resource via
|
|
53
|
-
*
|
|
54
55
|
* its managed object ID, via the following command:
|
|
55
56
|
*
|
|
56
57
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
@@ -64,12 +65,12 @@ const utilities = require("./utilities");
|
|
|
64
65
|
* [ext-govc]: https://github.com/vmware/govmomi/tree/master/govc
|
|
65
66
|
*
|
|
66
67
|
* In the case of govc, you can locate a managed object ID from an inventory path
|
|
67
|
-
*
|
|
68
68
|
* by doing the following:
|
|
69
69
|
*
|
|
70
|
+
* ```sh
|
|
70
71
|
* $ govc ls -i /dc/datastore/terraform-test
|
|
71
|
-
*
|
|
72
72
|
* Datastore:datastore-123
|
|
73
|
+
* ```
|
|
73
74
|
*/
|
|
74
75
|
class NasDatastore extends pulumi.CustomResource {
|
|
75
76
|
/**
|
package/nasDatastore.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nasDatastore.js","sourceRoot":"","sources":["../nasDatastore.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"nasDatastore.js","sourceRoot":"","sources":["../nasDatastore.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IAC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GED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/vsphere",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.3",
|
|
4
4
|
"description": "A Pulumi package for creating vsphere resources",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"pulumi": {
|
|
23
23
|
"resource": true,
|
|
24
24
|
"name": "vsphere",
|
|
25
|
-
"version": "4.16.
|
|
25
|
+
"version": "4.16.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/resourcePool.d.ts
CHANGED
|
@@ -107,11 +107,23 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
107
107
|
*
|
|
108
108
|
* ## Import
|
|
109
109
|
*
|
|
110
|
+
* An existing resource pool can be imported into this resource via
|
|
111
|
+
* the path to the resource pool, using the following command:
|
|
112
|
+
*
|
|
113
|
+
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
114
|
+
*
|
|
115
|
+
* ```sh
|
|
116
|
+
* $ pulumi import vsphere:index/resourcePool:ResourcePool resource_pool /dc-01/host/cluster-01/Resources/resource-pool-01
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* The above would import the resource pool named `resource-pool-01` that is located
|
|
120
|
+
* in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
121
|
+
*
|
|
110
122
|
* ### Settings that Require vSphere 7.0 or higher
|
|
111
123
|
*
|
|
112
124
|
* These settings require vSphere 7.0 or higher:
|
|
113
125
|
*
|
|
114
|
-
* *
|
|
126
|
+
* * `scaleDescendantsShares`
|
|
115
127
|
*/
|
|
116
128
|
export declare class ResourcePool extends pulumi.CustomResource {
|
|
117
129
|
/**
|
|
@@ -202,7 +214,7 @@ export declare class ResourcePool extends pulumi.CustomResource {
|
|
|
202
214
|
*/
|
|
203
215
|
readonly name: pulumi.Output<string>;
|
|
204
216
|
/**
|
|
205
|
-
* The managed object ID
|
|
217
|
+
* The [managed object ID][docs-about-morefs]
|
|
206
218
|
* of the parent resource pool. This can be the root resource pool for a cluster
|
|
207
219
|
* or standalone host, or a resource pool itself. When moving a resource pool
|
|
208
220
|
* from one parent resource pool to another, both must share a common root
|
|
@@ -217,7 +229,11 @@ export declare class ResourcePool extends pulumi.CustomResource {
|
|
|
217
229
|
*/
|
|
218
230
|
readonly scaleDescendantsShares: pulumi.Output<string | undefined>;
|
|
219
231
|
/**
|
|
220
|
-
* The IDs of any tags to attach to this resource.
|
|
232
|
+
* The IDs of any tags to attach to this resource. See
|
|
233
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
234
|
+
*
|
|
235
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
236
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
221
237
|
*/
|
|
222
238
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
223
239
|
/**
|
|
@@ -306,7 +322,7 @@ export interface ResourcePoolState {
|
|
|
306
322
|
*/
|
|
307
323
|
name?: pulumi.Input<string>;
|
|
308
324
|
/**
|
|
309
|
-
* The managed object ID
|
|
325
|
+
* The [managed object ID][docs-about-morefs]
|
|
310
326
|
* of the parent resource pool. This can be the root resource pool for a cluster
|
|
311
327
|
* or standalone host, or a resource pool itself. When moving a resource pool
|
|
312
328
|
* from one parent resource pool to another, both must share a common root
|
|
@@ -321,7 +337,11 @@ export interface ResourcePoolState {
|
|
|
321
337
|
*/
|
|
322
338
|
scaleDescendantsShares?: pulumi.Input<string>;
|
|
323
339
|
/**
|
|
324
|
-
* The IDs of any tags to attach to this resource.
|
|
340
|
+
* The IDs of any tags to attach to this resource. See
|
|
341
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
342
|
+
*
|
|
343
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
344
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
325
345
|
*/
|
|
326
346
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
327
347
|
}
|
|
@@ -402,7 +422,7 @@ export interface ResourcePoolArgs {
|
|
|
402
422
|
*/
|
|
403
423
|
name?: pulumi.Input<string>;
|
|
404
424
|
/**
|
|
405
|
-
* The managed object ID
|
|
425
|
+
* The [managed object ID][docs-about-morefs]
|
|
406
426
|
* of the parent resource pool. This can be the root resource pool for a cluster
|
|
407
427
|
* or standalone host, or a resource pool itself. When moving a resource pool
|
|
408
428
|
* from one parent resource pool to another, both must share a common root
|
|
@@ -417,7 +437,11 @@ export interface ResourcePoolArgs {
|
|
|
417
437
|
*/
|
|
418
438
|
scaleDescendantsShares?: pulumi.Input<string>;
|
|
419
439
|
/**
|
|
420
|
-
* The IDs of any tags to attach to this resource.
|
|
440
|
+
* The IDs of any tags to attach to this resource. See
|
|
441
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
442
|
+
*
|
|
443
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
444
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
421
445
|
*/
|
|
422
446
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
423
447
|
}
|
package/resourcePool.js
CHANGED
|
@@ -113,11 +113,23 @@ const utilities = require("./utilities");
|
|
|
113
113
|
*
|
|
114
114
|
* ## Import
|
|
115
115
|
*
|
|
116
|
+
* An existing resource pool can be imported into this resource via
|
|
117
|
+
* the path to the resource pool, using the following command:
|
|
118
|
+
*
|
|
119
|
+
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
120
|
+
*
|
|
121
|
+
* ```sh
|
|
122
|
+
* $ pulumi import vsphere:index/resourcePool:ResourcePool resource_pool /dc-01/host/cluster-01/Resources/resource-pool-01
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* The above would import the resource pool named `resource-pool-01` that is located
|
|
126
|
+
* in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
127
|
+
*
|
|
116
128
|
* ### Settings that Require vSphere 7.0 or higher
|
|
117
129
|
*
|
|
118
130
|
* These settings require vSphere 7.0 or higher:
|
|
119
131
|
*
|
|
120
|
-
* *
|
|
132
|
+
* * `scaleDescendantsShares`
|
|
121
133
|
*/
|
|
122
134
|
class ResourcePool extends pulumi.CustomResource {
|
|
123
135
|
/**
|
package/resourcePool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourcePool.js","sourceRoot":"","sources":["../resourcePool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"resourcePool.js","sourceRoot":"","sources":["../resourcePool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6HG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SACh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,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA7KL,oCA8KC;AAhKG,gBAAgB;AACO,yBAAY,GAAG,yCAAyC,CAAC"}
|
package/role.d.ts
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* The `vsphere.Role` resource can be used to create and manage roles. Using this resource, privileges can be
|
|
4
|
+
* associated with the roles. The role can be used while granting permissions to an entity.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* This example creates a role with name myTerraformRole and privileges create, acknowledge for Alarm and
|
|
9
|
+
* create, move for Datacenter. While providing `rolePrivileges`, the id of the privilege has to be provided.
|
|
10
|
+
* The format of the privilege id is privilege name preceded by its categories joined by a `.`.
|
|
11
|
+
* For example a privilege with path `category->subcategory->privilege` should be provided as
|
|
12
|
+
* `category.subcategory.privilege`. Keep the `rolePrivileges` sorted alphabetically for a better user experience.
|
|
13
|
+
*
|
|
14
|
+
* > **NOTE:** While providing `rolePrivileges`, the id of the privilege and its categories are to be provided
|
|
15
|
+
* joined by a `.` .
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
20
|
+
*
|
|
21
|
+
* const role1 = new vsphere.Role("role1", {
|
|
22
|
+
* name: "my_terraform_role",
|
|
23
|
+
* rolePrivileges: [
|
|
24
|
+
* "Alarm.Acknowledge",
|
|
25
|
+
* "Alarm.Create",
|
|
26
|
+
* "Datacenter.Create",
|
|
27
|
+
* "Datacenter.Move",
|
|
28
|
+
* ],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
3
32
|
* ## Import
|
|
4
33
|
*
|
|
5
34
|
* An existing role can be imported into this resource by supplying the role id. An example is below:
|
|
@@ -8,8 +37,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
37
|
* $ pulumi import vsphere:index/role:Role role1 -709298051
|
|
9
38
|
* ```
|
|
10
39
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
40
|
+
* > **NOTE:** System roles can't be imported because they can't be modified or deleted.
|
|
41
|
+
* Use [`vsphere.Role` data source][ref-vsphere-role-data-source]
|
|
13
42
|
* to read information about system roles.
|
|
14
43
|
*
|
|
15
44
|
* [ref-vsphere-role-data-source]: /docs/providers/vsphere/d/vsphere_role.html
|
package/role.js
CHANGED
|
@@ -6,6 +6,35 @@ exports.Role = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* The `vsphere.Role` resource can be used to create and manage roles. Using this resource, privileges can be
|
|
10
|
+
* associated with the roles. The role can be used while granting permissions to an entity.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* This example creates a role with name myTerraformRole and privileges create, acknowledge for Alarm and
|
|
15
|
+
* create, move for Datacenter. While providing `rolePrivileges`, the id of the privilege has to be provided.
|
|
16
|
+
* The format of the privilege id is privilege name preceded by its categories joined by a `.`.
|
|
17
|
+
* For example a privilege with path `category->subcategory->privilege` should be provided as
|
|
18
|
+
* `category.subcategory.privilege`. Keep the `rolePrivileges` sorted alphabetically for a better user experience.
|
|
19
|
+
*
|
|
20
|
+
* > **NOTE:** While providing `rolePrivileges`, the id of the privilege and its categories are to be provided
|
|
21
|
+
* joined by a `.` .
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
26
|
+
*
|
|
27
|
+
* const role1 = new vsphere.Role("role1", {
|
|
28
|
+
* name: "my_terraform_role",
|
|
29
|
+
* rolePrivileges: [
|
|
30
|
+
* "Alarm.Acknowledge",
|
|
31
|
+
* "Alarm.Create",
|
|
32
|
+
* "Datacenter.Create",
|
|
33
|
+
* "Datacenter.Move",
|
|
34
|
+
* ],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
9
38
|
* ## Import
|
|
10
39
|
*
|
|
11
40
|
* An existing role can be imported into this resource by supplying the role id. An example is below:
|
|
@@ -14,8 +43,8 @@ const utilities = require("./utilities");
|
|
|
14
43
|
* $ pulumi import vsphere:index/role:Role role1 -709298051
|
|
15
44
|
* ```
|
|
16
45
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
46
|
+
* > **NOTE:** System roles can't be imported because they can't be modified or deleted.
|
|
47
|
+
* Use [`vsphere.Role` data source][ref-vsphere-role-data-source]
|
|
19
48
|
* to read information about system roles.
|
|
20
49
|
*
|
|
21
50
|
* [ref-vsphere-role-data-source]: /docs/providers/vsphere/d/vsphere_role.html
|
package/role.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;SAC5D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmC,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,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,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAjEL,oBAkEC;AApDG,gBAAgB;AACO,iBAAY,GAAG,yBAAyB,CAAC"}
|
|
@@ -13,6 +13,22 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
*
|
|
14
14
|
* ## Example Usage
|
|
15
15
|
*
|
|
16
|
+
* The example below builds on the [Storage DRS
|
|
17
|
+
* example][tf-vsphere-vm-storage-drs-example] in the `vsphere.VirtualMachine`
|
|
18
|
+
* resource. However, rather than use the output of the
|
|
19
|
+
* [`vsphere.DatastoreCluster` data
|
|
20
|
+
* source][tf-vsphere-datastore-cluster-data-source] for the location of the
|
|
21
|
+
* virtual machine, we instead get what is assumed to be a member datastore using
|
|
22
|
+
* the [`vsphere.getDatastore` data source][tf-vsphere-datastore-data-source] and put
|
|
23
|
+
* the virtual machine there instead. We then use the
|
|
24
|
+
* `vsphere.StorageDrsVmOverride` resource to ensure that Storage DRS does not
|
|
25
|
+
* apply to this virtual machine, and hence the VM will never be migrated off of
|
|
26
|
+
* the datastore.
|
|
27
|
+
*
|
|
28
|
+
* [tf-vsphere-vm-storage-drs-example]: /docs/providers/vsphere/r/virtual_machine.html#using-storage-drs
|
|
29
|
+
* [tf-vsphere-datastore-cluster-data-source]: /docs/providers/vsphere/d/datastore_cluster.html
|
|
30
|
+
* [tf-vsphere-datastore-data-source]: /docs/providers/vsphere/d/datastore.html
|
|
31
|
+
*
|
|
16
32
|
* ```typescript
|
|
17
33
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
34
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -37,7 +53,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
37
53
|
* datacenterId: datacenter.id,
|
|
38
54
|
* }));
|
|
39
55
|
* const vm = new vsphere.VirtualMachine("vm", {
|
|
40
|
-
* name: "test",
|
|
56
|
+
* name: "pulumi-test",
|
|
41
57
|
* resourcePoolId: pool.then(pool => pool.id),
|
|
42
58
|
* datastoreId: memberDatastore.then(memberDatastore => memberDatastore.id),
|
|
43
59
|
* numCpus: 2,
|
|
@@ -61,22 +77,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
61
77
|
* ## Import
|
|
62
78
|
*
|
|
63
79
|
* An existing override can be imported into this resource by
|
|
64
|
-
*
|
|
65
80
|
* supplying both the path to the datastore cluster and the path to the virtual
|
|
66
|
-
*
|
|
67
81
|
* machine to `pulumi import`. If no override exists, an error will be given.
|
|
68
|
-
*
|
|
69
82
|
* An example is below:
|
|
70
83
|
*
|
|
71
84
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
72
85
|
*
|
|
73
86
|
* ```sh
|
|
74
|
-
*
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
87
|
+
* terraform import vsphere_storage_drs_vm_override.drs_vm_override \
|
|
77
88
|
* '{"datastore_cluster_path": "/dc1/datastore/ds-cluster", \
|
|
78
|
-
*
|
|
79
89
|
* "virtual_machine_path": "/dc1/vm/srv1"}'
|
|
90
|
+
* ```
|
|
80
91
|
*/
|
|
81
92
|
export declare class StorageDrsVmOverride extends pulumi.CustomResource {
|
|
82
93
|
/**
|
|
@@ -95,16 +106,20 @@ export declare class StorageDrsVmOverride extends pulumi.CustomResource {
|
|
|
95
106
|
*/
|
|
96
107
|
static isInstance(obj: any): obj is StorageDrsVmOverride;
|
|
97
108
|
/**
|
|
98
|
-
* The managed object reference
|
|
99
|
-
* ID of the datastore cluster to put the override in.
|
|
109
|
+
* The [managed object reference
|
|
110
|
+
* ID][docs-about-morefs] of the datastore cluster to put the override in.
|
|
100
111
|
* Forces a new resource if changed.
|
|
112
|
+
*
|
|
113
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
101
114
|
*/
|
|
102
115
|
readonly datastoreClusterId: pulumi.Output<string>;
|
|
103
116
|
/**
|
|
104
117
|
* Overrides any Storage DRS automation
|
|
105
118
|
* levels for this virtual machine. Can be one of `automated` or `manual`. When
|
|
106
119
|
* not specified, the datastore cluster's settings are used according to the
|
|
107
|
-
* specific SDRS subsystem.
|
|
120
|
+
* [specific SDRS subsystem][tf-vsphere-datastore-cluster-sdrs-levels].
|
|
121
|
+
*
|
|
122
|
+
* [tf-vsphere-datastore-cluster-sdrs-levels]: /docs/providers/vsphere/r/datastore_cluster.html#storage-drs-automation-options
|
|
108
123
|
*/
|
|
109
124
|
readonly sdrsAutomationLevel: pulumi.Output<string | undefined>;
|
|
110
125
|
/**
|
|
@@ -140,16 +155,20 @@ export declare class StorageDrsVmOverride extends pulumi.CustomResource {
|
|
|
140
155
|
*/
|
|
141
156
|
export interface StorageDrsVmOverrideState {
|
|
142
157
|
/**
|
|
143
|
-
* The managed object reference
|
|
144
|
-
* ID of the datastore cluster to put the override in.
|
|
158
|
+
* The [managed object reference
|
|
159
|
+
* ID][docs-about-morefs] of the datastore cluster to put the override in.
|
|
145
160
|
* Forces a new resource if changed.
|
|
161
|
+
*
|
|
162
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
146
163
|
*/
|
|
147
164
|
datastoreClusterId?: pulumi.Input<string>;
|
|
148
165
|
/**
|
|
149
166
|
* Overrides any Storage DRS automation
|
|
150
167
|
* levels for this virtual machine. Can be one of `automated` or `manual`. When
|
|
151
168
|
* not specified, the datastore cluster's settings are used according to the
|
|
152
|
-
* specific SDRS subsystem.
|
|
169
|
+
* [specific SDRS subsystem][tf-vsphere-datastore-cluster-sdrs-levels].
|
|
170
|
+
*
|
|
171
|
+
* [tf-vsphere-datastore-cluster-sdrs-levels]: /docs/providers/vsphere/r/datastore_cluster.html#storage-drs-automation-options
|
|
153
172
|
*/
|
|
154
173
|
sdrsAutomationLevel?: pulumi.Input<string>;
|
|
155
174
|
/**
|
|
@@ -177,16 +196,20 @@ export interface StorageDrsVmOverrideState {
|
|
|
177
196
|
*/
|
|
178
197
|
export interface StorageDrsVmOverrideArgs {
|
|
179
198
|
/**
|
|
180
|
-
* The managed object reference
|
|
181
|
-
* ID of the datastore cluster to put the override in.
|
|
199
|
+
* The [managed object reference
|
|
200
|
+
* ID][docs-about-morefs] of the datastore cluster to put the override in.
|
|
182
201
|
* Forces a new resource if changed.
|
|
202
|
+
*
|
|
203
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
183
204
|
*/
|
|
184
205
|
datastoreClusterId: pulumi.Input<string>;
|
|
185
206
|
/**
|
|
186
207
|
* Overrides any Storage DRS automation
|
|
187
208
|
* levels for this virtual machine. Can be one of `automated` or `manual`. When
|
|
188
209
|
* not specified, the datastore cluster's settings are used according to the
|
|
189
|
-
* specific SDRS subsystem.
|
|
210
|
+
* [specific SDRS subsystem][tf-vsphere-datastore-cluster-sdrs-levels].
|
|
211
|
+
*
|
|
212
|
+
* [tf-vsphere-datastore-cluster-sdrs-levels]: /docs/providers/vsphere/r/datastore_cluster.html#storage-drs-automation-options
|
|
190
213
|
*/
|
|
191
214
|
sdrsAutomationLevel?: pulumi.Input<string>;
|
|
192
215
|
/**
|
package/storageDrsVmOverride.js
CHANGED
|
@@ -19,6 +19,22 @@ const utilities = require("./utilities");
|
|
|
19
19
|
*
|
|
20
20
|
* ## Example Usage
|
|
21
21
|
*
|
|
22
|
+
* The example below builds on the [Storage DRS
|
|
23
|
+
* example][tf-vsphere-vm-storage-drs-example] in the `vsphere.VirtualMachine`
|
|
24
|
+
* resource. However, rather than use the output of the
|
|
25
|
+
* [`vsphere.DatastoreCluster` data
|
|
26
|
+
* source][tf-vsphere-datastore-cluster-data-source] for the location of the
|
|
27
|
+
* virtual machine, we instead get what is assumed to be a member datastore using
|
|
28
|
+
* the [`vsphere.getDatastore` data source][tf-vsphere-datastore-data-source] and put
|
|
29
|
+
* the virtual machine there instead. We then use the
|
|
30
|
+
* `vsphere.StorageDrsVmOverride` resource to ensure that Storage DRS does not
|
|
31
|
+
* apply to this virtual machine, and hence the VM will never be migrated off of
|
|
32
|
+
* the datastore.
|
|
33
|
+
*
|
|
34
|
+
* [tf-vsphere-vm-storage-drs-example]: /docs/providers/vsphere/r/virtual_machine.html#using-storage-drs
|
|
35
|
+
* [tf-vsphere-datastore-cluster-data-source]: /docs/providers/vsphere/d/datastore_cluster.html
|
|
36
|
+
* [tf-vsphere-datastore-data-source]: /docs/providers/vsphere/d/datastore.html
|
|
37
|
+
*
|
|
22
38
|
* ```typescript
|
|
23
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
24
40
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -43,7 +59,7 @@ const utilities = require("./utilities");
|
|
|
43
59
|
* datacenterId: datacenter.id,
|
|
44
60
|
* }));
|
|
45
61
|
* const vm = new vsphere.VirtualMachine("vm", {
|
|
46
|
-
* name: "test",
|
|
62
|
+
* name: "pulumi-test",
|
|
47
63
|
* resourcePoolId: pool.then(pool => pool.id),
|
|
48
64
|
* datastoreId: memberDatastore.then(memberDatastore => memberDatastore.id),
|
|
49
65
|
* numCpus: 2,
|
|
@@ -67,22 +83,17 @@ const utilities = require("./utilities");
|
|
|
67
83
|
* ## Import
|
|
68
84
|
*
|
|
69
85
|
* An existing override can be imported into this resource by
|
|
70
|
-
*
|
|
71
86
|
* supplying both the path to the datastore cluster and the path to the virtual
|
|
72
|
-
*
|
|
73
87
|
* machine to `pulumi import`. If no override exists, an error will be given.
|
|
74
|
-
*
|
|
75
88
|
* An example is below:
|
|
76
89
|
*
|
|
77
90
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
78
91
|
*
|
|
79
92
|
* ```sh
|
|
80
|
-
*
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
93
|
+
* terraform import vsphere_storage_drs_vm_override.drs_vm_override \
|
|
83
94
|
* '{"datastore_cluster_path": "/dc1/datastore/ds-cluster", \
|
|
84
|
-
*
|
|
85
95
|
* "virtual_machine_path": "/dc1/vm/srv1"}'
|
|
96
|
+
* ```
|
|
86
97
|
*/
|
|
87
98
|
class StorageDrsVmOverride extends pulumi.CustomResource {
|
|
88
99
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageDrsVmOverride.js","sourceRoot":"","sources":["../storageDrsVmOverride.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"storageDrsVmOverride.js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AgB,CAAC;SAChE;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,IAAI,EAAE,kBAAkB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACrE;YACD,IAAI,IAAI,EAAE,gBAAgB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;aACnE;YACD,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAnGL,oDAoGC;AAtFG,gBAAgB;AACO,iCAAY,GAAG,yDAAyD,CAAC"}
|
package/tag.d.ts
CHANGED
|
@@ -10,19 +10,21 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
-
* This example creates a tag named `test-tag`. This tag is assigned the
|
|
14
|
-
* `test-category` category, which was created by the
|
|
15
|
-
* `vsphere.TagCategory` resource. The resulting
|
|
13
|
+
* This example creates a tag named `terraform-test-tag`. This tag is assigned the
|
|
14
|
+
* `terraform-test-category` category, which was created by the
|
|
15
|
+
* [`vsphere.TagCategory` resource][docs-tag-category-resource]. The resulting
|
|
16
16
|
* tag can be assigned to VMs and datastores only, and can be the only value in
|
|
17
17
|
* the category that can be assigned, as per the restrictions defined by the
|
|
18
18
|
* category.
|
|
19
19
|
*
|
|
20
|
+
* [docs-tag-category-resource]: /docs/providers/vsphere/r/tag_category.html
|
|
21
|
+
*
|
|
20
22
|
* ```typescript
|
|
21
23
|
* import * as pulumi from "@pulumi/pulumi";
|
|
22
24
|
* import * as vsphere from "@pulumi/vsphere";
|
|
23
25
|
*
|
|
24
26
|
* const category = new vsphere.TagCategory("category", {
|
|
25
|
-
* name: "test-category",
|
|
27
|
+
* name: "pulumi-test-category",
|
|
26
28
|
* cardinality: "SINGLE",
|
|
27
29
|
* description: "Managed by Pulumi",
|
|
28
30
|
* associableTypes: [
|
|
@@ -31,27 +33,29 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
33
|
* ],
|
|
32
34
|
* });
|
|
33
35
|
* const tag = new vsphere.Tag("tag", {
|
|
34
|
-
* name: "test-tag",
|
|
36
|
+
* name: "pulumi-test-tag",
|
|
35
37
|
* categoryId: category.id,
|
|
36
38
|
* description: "Managed by Pulumi",
|
|
37
39
|
* });
|
|
38
40
|
* ```
|
|
39
41
|
*
|
|
40
|
-
*
|
|
42
|
+
* ## Using Tags in a Supported Resource
|
|
41
43
|
*
|
|
42
|
-
* Tags can be applied to vSphere resources via the `tags` argument
|
|
44
|
+
* Tags can be applied to vSphere resources in Terraform via the `tags` argument
|
|
43
45
|
* in any supported resource.
|
|
44
46
|
*
|
|
45
47
|
* The following example builds on the above example by creating a
|
|
46
|
-
* `vsphere.VirtualMachine` and applying the
|
|
48
|
+
* [`vsphere.VirtualMachine`][docs-virtual-machine-resource] and applying the
|
|
47
49
|
* created tag to it:
|
|
48
50
|
*
|
|
51
|
+
* [docs-virtual-machine-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
52
|
+
*
|
|
49
53
|
* ```typescript
|
|
50
54
|
* import * as pulumi from "@pulumi/pulumi";
|
|
51
55
|
* import * as vsphere from "@pulumi/vsphere";
|
|
52
56
|
*
|
|
53
57
|
* const category = new vsphere.TagCategory("category", {
|
|
54
|
-
* name: "test-category",
|
|
58
|
+
* name: "pulumi-test-category",
|
|
55
59
|
* cardinality: "SINGLE",
|
|
56
60
|
* description: "Managed by Pulumi",
|
|
57
61
|
* associableTypes: [
|
|
@@ -60,7 +64,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
60
64
|
* ],
|
|
61
65
|
* });
|
|
62
66
|
* const tag = new vsphere.Tag("tag", {
|
|
63
|
-
* name: "test-tag",
|
|
67
|
+
* name: "pulumi-test-tag",
|
|
64
68
|
* categoryId: category.id,
|
|
65
69
|
* description: "Managed by Pulumi",
|
|
66
70
|
* });
|
|
@@ -70,18 +74,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
70
74
|
* ## Import
|
|
71
75
|
*
|
|
72
76
|
* An existing tag can be imported into this resource by supplying
|
|
73
|
-
*
|
|
74
77
|
* both the tag's category name and the name of the tag as a JSON string to
|
|
75
|
-
*
|
|
76
78
|
* `pulumi import`, as per the example below:
|
|
77
79
|
*
|
|
78
80
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
79
81
|
*
|
|
80
82
|
* ```sh
|
|
81
|
-
*
|
|
82
|
-
* ```
|
|
83
|
-
*
|
|
83
|
+
* terraform import vsphere_tag.tag \
|
|
84
84
|
* '{"category_name": "pulumi-test-category", "tag_name": "pulumi-test-tag"}'
|
|
85
|
+
* ```
|
|
85
86
|
*/
|
|
86
87
|
export declare class Tag extends pulumi.CustomResource {
|
|
87
88
|
/**
|