@pulumi/vsphere 4.11.2 → 4.11.3-alpha.1727724971
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 +89 -0
- package/computeCluster.js +89 -0
- package/computeCluster.js.map +1 -1
- package/computeClusterHostGroup.d.ts +32 -0
- package/computeClusterHostGroup.js +32 -0
- package/computeClusterHostGroup.js.map +1 -1
- package/computeClusterVmAffinityRule.d.ts +12 -1
- package/computeClusterVmAffinityRule.js +12 -1
- package/computeClusterVmAffinityRule.js.map +1 -1
- package/computeClusterVmAntiAffinityRule.d.ts +19 -0
- package/computeClusterVmAntiAffinityRule.js +19 -0
- package/computeClusterVmAntiAffinityRule.js.map +1 -1
- package/computeClusterVmDependencyRule.d.ts +114 -0
- package/computeClusterVmDependencyRule.js +114 -0
- package/computeClusterVmDependencyRule.js.map +1 -1
- package/computeClusterVmGroup.d.ts +91 -0
- package/computeClusterVmGroup.js +91 -0
- package/computeClusterVmGroup.js.map +1 -1
- package/computeClusterVmHostRule.d.ts +35 -0
- package/computeClusterVmHostRule.js +35 -0
- package/computeClusterVmHostRule.js.map +1 -1
- package/contentLibrary.d.ts +60 -0
- package/contentLibrary.js +60 -0
- package/contentLibrary.js.map +1 -1
- package/contentLibraryItem.d.ts +85 -0
- package/contentLibraryItem.js +85 -0
- package/contentLibraryItem.js.map +1 -1
- package/customAttribute.d.ts +38 -0
- package/customAttribute.js +38 -0
- package/customAttribute.js.map +1 -1
- package/datacenter.d.ts +7 -2
- package/datacenter.js +7 -2
- package/datacenter.js.map +1 -1
- package/datastoreCluster.d.ts +30 -0
- package/datastoreCluster.js +30 -0
- package/datastoreCluster.js.map +1 -1
- package/datastoreClusterVmAntiAffinityRule.d.ts +89 -0
- package/datastoreClusterVmAntiAffinityRule.js +89 -0
- package/datastoreClusterVmAntiAffinityRule.js.map +1 -1
- package/distributedPortGroup.d.ts +145 -0
- package/distributedPortGroup.js +145 -0
- package/distributedPortGroup.js.map +1 -1
- package/distributedVirtualSwitch.d.ts +131 -0
- package/distributedVirtualSwitch.js +131 -0
- package/distributedVirtualSwitch.js.map +1 -1
- package/dpmHostOverride.d.ts +30 -0
- package/dpmHostOverride.js +30 -0
- package/dpmHostOverride.js.map +1 -1
- package/drsVmOverride.d.ts +32 -0
- package/drsVmOverride.js +32 -0
- package/drsVmOverride.js.map +1 -1
- package/folder.d.ts +72 -0
- package/folder.js +72 -0
- package/folder.js.map +1 -1
- package/getComputeCluster.js +5 -1
- package/getComputeCluster.js.map +1 -1
- package/getComputeClusterHostGroup.d.ts +2 -2
- package/getComputeClusterHostGroup.js +7 -3
- package/getComputeClusterHostGroup.js.map +1 -1
- package/getContentLibrary.js +4 -1
- package/getContentLibrary.js.map +1 -1
- package/getContentLibraryItem.js +6 -1
- package/getContentLibraryItem.js.map +1 -1
- package/getCustomAttribute.js +4 -1
- package/getCustomAttribute.js.map +1 -1
- package/getDatacenter.js +5 -1
- package/getDatacenter.js.map +1 -1
- package/getDatastore.js +6 -1
- package/getDatastore.js.map +1 -1
- package/getDatastoreCluster.js +5 -1
- package/getDatastoreCluster.js.map +1 -1
- package/getDatastoreStats.js +6 -1
- package/getDatastoreStats.js.map +1 -1
- package/getDistributedVirtualSwitch.js +5 -1
- package/getDistributedVirtualSwitch.js.map +1 -1
- package/getDynamic.js +6 -1
- package/getDynamic.js.map +1 -1
- package/getFolder.js +4 -1
- package/getFolder.js.map +1 -1
- package/getGuestOsCustomization.js +4 -1
- package/getGuestOsCustomization.js.map +1 -1
- package/getHost.js +5 -1
- package/getHost.js.map +1 -1
- package/getHostBaseImages.js +2 -1
- package/getHostBaseImages.js.map +1 -1
- package/getHostPciDevice.js +7 -1
- package/getHostPciDevice.js.map +1 -1
- package/getHostThumbprint.js +6 -1
- package/getHostThumbprint.js.map +1 -1
- package/getHostVgpuProfile.js +5 -1
- package/getHostVgpuProfile.js.map +1 -1
- package/getLicense.js +4 -1
- package/getLicense.js.map +1 -1
- package/getNetwork.js +6 -1
- package/getNetwork.js.map +1 -1
- package/getOvfVmTemplate.js +17 -1
- package/getOvfVmTemplate.js.map +1 -1
- package/getPolicy.js +4 -1
- package/getPolicy.js.map +1 -1
- package/getResourcePool.js +6 -1
- package/getResourcePool.js.map +1 -1
- package/getRole.js +7 -1
- package/getRole.js.map +1 -1
- package/getTag.js +5 -1
- package/getTag.js.map +1 -1
- package/getTagCategory.js +4 -1
- package/getTagCategory.js.map +1 -1
- package/getVappContainer.js +5 -1
- package/getVappContainer.js.map +1 -1
- package/getVirtualMachine.js +59 -1
- package/getVirtualMachine.js.map +1 -1
- package/getVmfsDisks.js +6 -1
- package/getVmfsDisks.js.map +1 -1
- package/haVmOverride.d.ts +90 -0
- package/haVmOverride.js +90 -0
- package/haVmOverride.js.map +1 -1
- package/host.d.ts +131 -0
- package/host.js +131 -0
- package/host.js.map +1 -1
- package/hostPortGroup.d.ts +6 -1
- package/hostPortGroup.js +6 -1
- package/hostPortGroup.js.map +1 -1
- package/hostVirtualSwitch.d.ts +33 -0
- package/hostVirtualSwitch.js +33 -0
- package/hostVirtualSwitch.js.map +1 -1
- package/nasDatastore.d.ts +32 -0
- package/nasDatastore.js +32 -0
- package/nasDatastore.js.map +1 -1
- package/package.json +2 -2
- package/resourcePool.d.ts +2 -8
- package/resourcePool.js +2 -8
- package/resourcePool.js.map +1 -1
- package/role.d.ts +15 -0
- package/role.js +15 -0
- package/role.js.map +1 -1
- package/storageDrsVmOverride.d.ts +77 -0
- package/storageDrsVmOverride.js +77 -0
- package/storageDrsVmOverride.js.map +1 -1
- package/tag.d.ts +82 -0
- package/tag.js +82 -0
- package/tag.js.map +1 -1
- package/tagCategory.d.ts +41 -0
- package/tagCategory.js +41 -0
- package/tagCategory.js.map +1 -1
- package/vappContainer.d.ts +95 -0
- package/vappContainer.js +95 -0
- package/vappContainer.js.map +1 -1
- package/vappEntity.d.ts +79 -0
- package/vappEntity.js +79 -0
- package/vappEntity.js.map +1 -1
- package/virtualDisk.d.ts +44 -0
- package/virtualDisk.js +44 -0
- package/virtualDisk.js.map +1 -1
- package/virtualMachine.d.ts +25 -0
- package/virtualMachine.js +25 -0
- package/virtualMachine.js.map +1 -1
- package/vmfsDatastore.d.ts +144 -0
- package/vmfsDatastore.js +144 -0
- package/vmfsDatastore.js.map +1 -1
- package/vnic.d.ts +7 -2
- package/vnic.js +7 -2
- package/vnic.js.map +1 -1
|
@@ -5,6 +5,120 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ComputeClusterVmDependencyRule = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `vsphere.ComputeClusterVmDependencyRule` resource can be used to manage
|
|
10
|
+
* VM dependency rules in a cluster, either created by the
|
|
11
|
+
* `vsphere.ComputeCluster` resource or looked up
|
|
12
|
+
* by the `vsphere.ComputeCluster` data source.
|
|
13
|
+
*
|
|
14
|
+
* A virtual machine dependency rule applies to vSphere HA, and allows
|
|
15
|
+
* user-defined startup orders for virtual machines in the case of host failure.
|
|
16
|
+
* Virtual machines are supplied via groups, which can be managed via the
|
|
17
|
+
* `vsphere.ComputeClusterVmGroup`
|
|
18
|
+
* resource.
|
|
19
|
+
*
|
|
20
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
21
|
+
* connections.
|
|
22
|
+
*
|
|
23
|
+
* ## Example Usage
|
|
24
|
+
*
|
|
25
|
+
* The example below creates two virtual machine in a cluster using the
|
|
26
|
+
* `vsphere.VirtualMachine` resource in a cluster
|
|
27
|
+
* looked up by the `vsphere.ComputeCluster`
|
|
28
|
+
* data source. It then creates a group with this virtual machine. Two groups are created, each with one of the created VMs. Finally, a rule is created to ensure that `vm1` starts before `vm2`.
|
|
29
|
+
*
|
|
30
|
+
* > Note how `dependencyVmGroupName` and
|
|
31
|
+
* `vmGroupName` are sourced off of the `name` attributes from
|
|
32
|
+
* the `vsphere.ComputeClusterVmGroup`
|
|
33
|
+
* resource. This is to ensure that the rule is not created before the groups
|
|
34
|
+
* exist, which may not possibly happen in the event that the names came from a
|
|
35
|
+
* "static" source such as a variable.
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
40
|
+
*
|
|
41
|
+
* const datacenter = vsphere.getDatacenter({
|
|
42
|
+
* name: "dc-01",
|
|
43
|
+
* });
|
|
44
|
+
* const datastore = datacenter.then(datacenter => vsphere.getDatastore({
|
|
45
|
+
* name: "datastore1",
|
|
46
|
+
* datacenterId: datacenter.id,
|
|
47
|
+
* }));
|
|
48
|
+
* const cluster = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
49
|
+
* name: "cluster-01",
|
|
50
|
+
* datacenterId: datacenter.id,
|
|
51
|
+
* }));
|
|
52
|
+
* const network = datacenter.then(datacenter => vsphere.getNetwork({
|
|
53
|
+
* name: "network1",
|
|
54
|
+
* datacenterId: datacenter.id,
|
|
55
|
+
* }));
|
|
56
|
+
* const vm1 = new vsphere.VirtualMachine("vm1", {
|
|
57
|
+
* name: "test1",
|
|
58
|
+
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
59
|
+
* datastoreId: datastore.then(datastore => datastore.id),
|
|
60
|
+
* numCpus: 2,
|
|
61
|
+
* memory: 2048,
|
|
62
|
+
* guestId: "otherLinux64Guest",
|
|
63
|
+
* networkInterfaces: [{
|
|
64
|
+
* networkId: network.then(network => network.id),
|
|
65
|
+
* }],
|
|
66
|
+
* disks: [{
|
|
67
|
+
* label: "disk0",
|
|
68
|
+
* size: 20,
|
|
69
|
+
* }],
|
|
70
|
+
* });
|
|
71
|
+
* const vm2 = new vsphere.VirtualMachine("vm2", {
|
|
72
|
+
* name: "test2",
|
|
73
|
+
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
74
|
+
* datastoreId: datastore.then(datastore => datastore.id),
|
|
75
|
+
* numCpus: 2,
|
|
76
|
+
* memory: 2048,
|
|
77
|
+
* guestId: "otherLinux64Guest",
|
|
78
|
+
* networkInterfaces: [{
|
|
79
|
+
* networkId: network.then(network => network.id),
|
|
80
|
+
* }],
|
|
81
|
+
* disks: [{
|
|
82
|
+
* label: "disk0",
|
|
83
|
+
* size: 20,
|
|
84
|
+
* }],
|
|
85
|
+
* });
|
|
86
|
+
* const clusterVmGroup1 = new vsphere.ComputeClusterVmGroup("cluster_vm_group1", {
|
|
87
|
+
* name: "test-cluster-vm-group1",
|
|
88
|
+
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
89
|
+
* virtualMachineIds: [vm1.id],
|
|
90
|
+
* });
|
|
91
|
+
* const clusterVmGroup2 = new vsphere.ComputeClusterVmGroup("cluster_vm_group2", {
|
|
92
|
+
* name: "test-cluster-vm-group2",
|
|
93
|
+
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
94
|
+
* virtualMachineIds: [vm2.id],
|
|
95
|
+
* });
|
|
96
|
+
* const clusterVmDependencyRule = new vsphere.ComputeClusterVmDependencyRule("cluster_vm_dependency_rule", {
|
|
97
|
+
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
98
|
+
* name: "test-cluster-vm-dependency-rule",
|
|
99
|
+
* dependencyVmGroupName: clusterVmGroup1.name,
|
|
100
|
+
* vmGroupName: clusterVmGroup2.name,
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* ## Import
|
|
105
|
+
*
|
|
106
|
+
* An existing rule can be imported into this resource by supplying
|
|
107
|
+
*
|
|
108
|
+
* both the path to the cluster, and the name the rule. If the name or cluster is
|
|
109
|
+
*
|
|
110
|
+
* not found, or if the rule is of a different type, an error will be returned. An
|
|
111
|
+
*
|
|
112
|
+
* example is below:
|
|
113
|
+
*
|
|
114
|
+
* ```sh
|
|
115
|
+
* $ pulumi import vsphere:index/computeClusterVmDependencyRule:ComputeClusterVmDependencyRule cluster_vm_dependency_rule \
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
119
|
+
*
|
|
120
|
+
* "name": "pulumi-test-cluster-vm-dependency-rule"}'
|
|
121
|
+
*/
|
|
8
122
|
class ComputeClusterVmDependencyRule extends pulumi.CustomResource {
|
|
9
123
|
/**
|
|
10
124
|
* Get an existing ComputeClusterVmDependencyRule resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeClusterVmDependencyRule.js","sourceRoot":"","sources":["../computeClusterVmDependencyRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrF,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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;IAiDD,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8D,CAAC;YAC7E,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CA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,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;;AA1GL,wEA2GC;AA7FG,gBAAgB;AACO,2CAAY,GAAG,6EAA6E,CAAC"}
|
|
@@ -1,4 +1,95 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `vsphere.ComputeClusterVmGroup` resource can be used to manage groups of
|
|
4
|
+
* virtual machines in a cluster, either created by the
|
|
5
|
+
* [`vsphere.ComputeCluster`][tf-vsphere-cluster-resource] resource or looked up
|
|
6
|
+
* by the [`vsphere.ComputeCluster`][tf-vsphere-cluster-data-source] data source.
|
|
7
|
+
*
|
|
8
|
+
* [tf-vsphere-cluster-resource]: /docs/providers/vsphere/r/compute_cluster.html
|
|
9
|
+
* [tf-vsphere-cluster-data-source]: /docs/providers/vsphere/d/compute_cluster.html
|
|
10
|
+
*
|
|
11
|
+
* This resource mainly serves as an input to the
|
|
12
|
+
* [`vsphere.ComputeClusterVmDependencyRule`][tf-vsphere-cluster-vm-dependency-rule-resource]
|
|
13
|
+
* and
|
|
14
|
+
* [`vsphere.ComputeClusterVmHostRule`][tf-vsphere-cluster-vm-host-rule-resource]
|
|
15
|
+
* resources. See the individual resource documentation pages for more information.
|
|
16
|
+
*
|
|
17
|
+
* [tf-vsphere-cluster-vm-dependency-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_dependency_rule.html
|
|
18
|
+
* [tf-vsphere-cluster-vm-host-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_host_rule.html
|
|
19
|
+
*
|
|
20
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
21
|
+
* connections.
|
|
22
|
+
*
|
|
23
|
+
* ## Example Usage
|
|
24
|
+
*
|
|
25
|
+
* The example below creates two virtual machines in a cluster using the
|
|
26
|
+
* `vsphere.VirtualMachine` resource, creating the
|
|
27
|
+
* virtual machine in the cluster looked up by the
|
|
28
|
+
* `vsphere.ComputeCluster` data source. It
|
|
29
|
+
* then creates a group from these two virtual machines.
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
34
|
+
*
|
|
35
|
+
* const datacenter = vsphere.getDatacenter({
|
|
36
|
+
* name: "dc-01",
|
|
37
|
+
* });
|
|
38
|
+
* const datastore = datacenter.then(datacenter => vsphere.getDatastore({
|
|
39
|
+
* name: "datastore1",
|
|
40
|
+
* datacenterId: datacenter.id,
|
|
41
|
+
* }));
|
|
42
|
+
* const cluster = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
43
|
+
* name: "cluster-01",
|
|
44
|
+
* datacenterId: datacenter.id,
|
|
45
|
+
* }));
|
|
46
|
+
* const network = datacenter.then(datacenter => vsphere.getNetwork({
|
|
47
|
+
* name: "network1",
|
|
48
|
+
* datacenterId: datacenter.id,
|
|
49
|
+
* }));
|
|
50
|
+
* const vm: vsphere.VirtualMachine[] = [];
|
|
51
|
+
* for (const range = {value: 0}; range.value < 2; range.value++) {
|
|
52
|
+
* vm.push(new vsphere.VirtualMachine(`vm-${range.value}`, {
|
|
53
|
+
* name: `test-${range.value}`,
|
|
54
|
+
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
55
|
+
* datastoreId: datastore.then(datastore => datastore.id),
|
|
56
|
+
* numCpus: 2,
|
|
57
|
+
* memory: 2048,
|
|
58
|
+
* guestId: "otherLinux64Guest",
|
|
59
|
+
* networkInterfaces: [{
|
|
60
|
+
* networkId: network.then(network => network.id),
|
|
61
|
+
* }],
|
|
62
|
+
* disks: [{
|
|
63
|
+
* label: "disk0",
|
|
64
|
+
* size: 20,
|
|
65
|
+
* }],
|
|
66
|
+
* }));
|
|
67
|
+
* }
|
|
68
|
+
* const clusterVmGroup = new vsphere.ComputeClusterVmGroup("cluster_vm_group", {
|
|
69
|
+
* name: "test-cluster-vm-group",
|
|
70
|
+
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
71
|
+
* virtualMachineIds: [vm.map(__item => __item.id)],
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* ## Import
|
|
76
|
+
*
|
|
77
|
+
* An existing group can be imported into this resource by
|
|
78
|
+
*
|
|
79
|
+
* supplying both the path to the cluster, and the name of the VM group. If the
|
|
80
|
+
*
|
|
81
|
+
* name or cluster is not found, or if the group is of a different type, an error
|
|
82
|
+
*
|
|
83
|
+
* will be returned. An example is below:
|
|
84
|
+
*
|
|
85
|
+
* ```sh
|
|
86
|
+
* $ pulumi import vsphere:index/computeClusterVmGroup:ComputeClusterVmGroup cluster_vm_group \
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
90
|
+
*
|
|
91
|
+
* "name": "pulumi-test-cluster-vm-group"}'
|
|
92
|
+
*/
|
|
2
93
|
export declare class ComputeClusterVmGroup extends pulumi.CustomResource {
|
|
3
94
|
/**
|
|
4
95
|
* Get an existing ComputeClusterVmGroup resource's state with the given name, ID, and optional extra
|
package/computeClusterVmGroup.js
CHANGED
|
@@ -5,6 +5,97 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ComputeClusterVmGroup = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `vsphere.ComputeClusterVmGroup` resource can be used to manage groups of
|
|
10
|
+
* virtual machines in a cluster, either created by the
|
|
11
|
+
* [`vsphere.ComputeCluster`][tf-vsphere-cluster-resource] resource or looked up
|
|
12
|
+
* by the [`vsphere.ComputeCluster`][tf-vsphere-cluster-data-source] data source.
|
|
13
|
+
*
|
|
14
|
+
* [tf-vsphere-cluster-resource]: /docs/providers/vsphere/r/compute_cluster.html
|
|
15
|
+
* [tf-vsphere-cluster-data-source]: /docs/providers/vsphere/d/compute_cluster.html
|
|
16
|
+
*
|
|
17
|
+
* This resource mainly serves as an input to the
|
|
18
|
+
* [`vsphere.ComputeClusterVmDependencyRule`][tf-vsphere-cluster-vm-dependency-rule-resource]
|
|
19
|
+
* and
|
|
20
|
+
* [`vsphere.ComputeClusterVmHostRule`][tf-vsphere-cluster-vm-host-rule-resource]
|
|
21
|
+
* resources. See the individual resource documentation pages for more information.
|
|
22
|
+
*
|
|
23
|
+
* [tf-vsphere-cluster-vm-dependency-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_dependency_rule.html
|
|
24
|
+
* [tf-vsphere-cluster-vm-host-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_host_rule.html
|
|
25
|
+
*
|
|
26
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
27
|
+
* connections.
|
|
28
|
+
*
|
|
29
|
+
* ## Example Usage
|
|
30
|
+
*
|
|
31
|
+
* The example below creates two virtual machines in a cluster using the
|
|
32
|
+
* `vsphere.VirtualMachine` resource, creating the
|
|
33
|
+
* virtual machine in the cluster looked up by the
|
|
34
|
+
* `vsphere.ComputeCluster` data source. It
|
|
35
|
+
* then creates a group from these two virtual machines.
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
40
|
+
*
|
|
41
|
+
* const datacenter = vsphere.getDatacenter({
|
|
42
|
+
* name: "dc-01",
|
|
43
|
+
* });
|
|
44
|
+
* const datastore = datacenter.then(datacenter => vsphere.getDatastore({
|
|
45
|
+
* name: "datastore1",
|
|
46
|
+
* datacenterId: datacenter.id,
|
|
47
|
+
* }));
|
|
48
|
+
* const cluster = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
49
|
+
* name: "cluster-01",
|
|
50
|
+
* datacenterId: datacenter.id,
|
|
51
|
+
* }));
|
|
52
|
+
* const network = datacenter.then(datacenter => vsphere.getNetwork({
|
|
53
|
+
* name: "network1",
|
|
54
|
+
* datacenterId: datacenter.id,
|
|
55
|
+
* }));
|
|
56
|
+
* const vm: vsphere.VirtualMachine[] = [];
|
|
57
|
+
* for (const range = {value: 0}; range.value < 2; range.value++) {
|
|
58
|
+
* vm.push(new vsphere.VirtualMachine(`vm-${range.value}`, {
|
|
59
|
+
* name: `test-${range.value}`,
|
|
60
|
+
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
61
|
+
* datastoreId: datastore.then(datastore => datastore.id),
|
|
62
|
+
* numCpus: 2,
|
|
63
|
+
* memory: 2048,
|
|
64
|
+
* guestId: "otherLinux64Guest",
|
|
65
|
+
* networkInterfaces: [{
|
|
66
|
+
* networkId: network.then(network => network.id),
|
|
67
|
+
* }],
|
|
68
|
+
* disks: [{
|
|
69
|
+
* label: "disk0",
|
|
70
|
+
* size: 20,
|
|
71
|
+
* }],
|
|
72
|
+
* }));
|
|
73
|
+
* }
|
|
74
|
+
* const clusterVmGroup = new vsphere.ComputeClusterVmGroup("cluster_vm_group", {
|
|
75
|
+
* name: "test-cluster-vm-group",
|
|
76
|
+
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
77
|
+
* virtualMachineIds: [vm.map(__item => __item.id)],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* ## Import
|
|
82
|
+
*
|
|
83
|
+
* An existing group can be imported into this resource by
|
|
84
|
+
*
|
|
85
|
+
* supplying both the path to the cluster, and the name of the VM group. If the
|
|
86
|
+
*
|
|
87
|
+
* name or cluster is not found, or if the group is of a different type, an error
|
|
88
|
+
*
|
|
89
|
+
* will be returned. An example is below:
|
|
90
|
+
*
|
|
91
|
+
* ```sh
|
|
92
|
+
* $ pulumi import vsphere:index/computeClusterVmGroup:ComputeClusterVmGroup cluster_vm_group \
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
96
|
+
*
|
|
97
|
+
* "name": "pulumi-test-cluster-vm-group"}'
|
|
98
|
+
*/
|
|
8
99
|
class ComputeClusterVmGroup extends pulumi.CustomResource {
|
|
9
100
|
/**
|
|
10
101
|
* Get an existing ComputeClusterVmGroup resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeClusterVmGroup.js","sourceRoot":"","sources":["../computeClusterVmGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAqCD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;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AAG,EAAE;gBAC7D,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;aACnE;YACD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;SACnF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAlFL,sDAmFC;AArEG,gBAAgB;AACO,kCAAY,GAAG,2DAA2D,CAAC"}
|
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `vsphere.ComputeClusterVmHostRule` resource can be used to manage
|
|
4
|
+
* VM-to-host rules in a cluster, either created by the
|
|
5
|
+
* `vsphere.ComputeCluster` resource or looked up
|
|
6
|
+
* by the `vsphere.ComputeCluster` data source.
|
|
7
|
+
*
|
|
8
|
+
* This resource can create both _affinity rules_, where virtual machines run on
|
|
9
|
+
* specified hosts, or _anti-affinity_ rules, where virtual machines run on hosts
|
|
10
|
+
* outside of the ones specified in the rule. Virtual machines and hosts are
|
|
11
|
+
* supplied via groups, which can be managed via the
|
|
12
|
+
* `vsphere.ComputeClusterVmGroup` and
|
|
13
|
+
* `vsphere.ComputeClusterHostGroup`
|
|
14
|
+
* resources.
|
|
15
|
+
*
|
|
16
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
17
|
+
* connections.
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* An existing rule can be imported into this resource by supplying
|
|
22
|
+
*
|
|
23
|
+
* both the path to the cluster, and the name the rule. If the name or cluster is
|
|
24
|
+
*
|
|
25
|
+
* not found, or if the rule is of a different type, an error will be returned. An
|
|
26
|
+
*
|
|
27
|
+
* example is below:
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import vsphere:index/computeClusterVmHostRule:ComputeClusterVmHostRule cluster_vm_host_rule \
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
34
|
+
*
|
|
35
|
+
* "name": "pulumi-test-cluster-vm-host-rule"}'
|
|
36
|
+
*/
|
|
2
37
|
export declare class ComputeClusterVmHostRule extends pulumi.CustomResource {
|
|
3
38
|
/**
|
|
4
39
|
* Get an existing ComputeClusterVmHostRule resource's state with the given name, ID, and optional extra
|
|
@@ -5,6 +5,41 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ComputeClusterVmHostRule = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `vsphere.ComputeClusterVmHostRule` resource can be used to manage
|
|
10
|
+
* VM-to-host rules in a cluster, either created by the
|
|
11
|
+
* `vsphere.ComputeCluster` resource or looked up
|
|
12
|
+
* by the `vsphere.ComputeCluster` data source.
|
|
13
|
+
*
|
|
14
|
+
* This resource can create both _affinity rules_, where virtual machines run on
|
|
15
|
+
* specified hosts, or _anti-affinity_ rules, where virtual machines run on hosts
|
|
16
|
+
* outside of the ones specified in the rule. Virtual machines and hosts are
|
|
17
|
+
* supplied via groups, which can be managed via the
|
|
18
|
+
* `vsphere.ComputeClusterVmGroup` and
|
|
19
|
+
* `vsphere.ComputeClusterHostGroup`
|
|
20
|
+
* resources.
|
|
21
|
+
*
|
|
22
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
23
|
+
* connections.
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* An existing rule can be imported into this resource by supplying
|
|
28
|
+
*
|
|
29
|
+
* both the path to the cluster, and the name the rule. If the name or cluster is
|
|
30
|
+
*
|
|
31
|
+
* not found, or if the rule is of a different type, an error will be returned. An
|
|
32
|
+
*
|
|
33
|
+
* example is below:
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import vsphere:index/computeClusterVmHostRule:ComputeClusterVmHostRule cluster_vm_host_rule \
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
40
|
+
*
|
|
41
|
+
* "name": "pulumi-test-cluster-vm-host-rule"}'
|
|
42
|
+
*/
|
|
8
43
|
class ComputeClusterVmHostRule extends pulumi.CustomResource {
|
|
9
44
|
/**
|
|
10
45
|
* Get an existing ComputeClusterVmHostRule resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeClusterVmHostRule.js","sourceRoot":"","sources":["../computeClusterVmHostRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG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,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AAhHL,4DAiHC;AAnGG,gBAAgB;AACO,qCAAY,GAAG,iEAAiE,CAAC"}
|
package/contentLibrary.d.ts
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* The `vsphere.ContentLibrary` resource can be used to manage content libraries.
|
|
6
|
+
*
|
|
7
|
+
* > **NOTE:** This resource requires a vCenter Server instance and is not available on direct ESXi host connections.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
16
|
+
*
|
|
17
|
+
* const datacenterA = vsphere.getDatacenter({
|
|
18
|
+
* name: "dc-01-a",
|
|
19
|
+
* });
|
|
20
|
+
* const publisherDatastore = datacenterA.then(datacenterA => vsphere.getDatastore({
|
|
21
|
+
* name: "publisher-datastore",
|
|
22
|
+
* datacenterId: datacenterA.id,
|
|
23
|
+
* }));
|
|
24
|
+
* const publisherContentLibrary = new vsphere.ContentLibrary("publisher_content_library", {
|
|
25
|
+
* name: "Publisher Content Library",
|
|
26
|
+
* description: "A publishing content library.",
|
|
27
|
+
* storageBackings: [publisherDatastore.then(publisherDatastore => publisherDatastore.id)],
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* The next example creates a subscribed content library using the URL of the publisher content library as the source and the datastore named `subscriber-datastore` as the storage backing.
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
36
|
+
*
|
|
37
|
+
* const datacenterB = vsphere.getDatacenter({
|
|
38
|
+
* name: "dc-01-b",
|
|
39
|
+
* });
|
|
40
|
+
* const subscriberDatastore = datacenterB.then(datacenterB => vsphere.getDatastore({
|
|
41
|
+
* name: "subscriber-datastore",
|
|
42
|
+
* datacenterId: datacenterB.id,
|
|
43
|
+
* }));
|
|
44
|
+
* const subscriberContentLibrary = new vsphere.ContentLibrary("subscriber_content_library", {
|
|
45
|
+
* name: "Subscriber Content Library",
|
|
46
|
+
* description: "A subscribing content library.",
|
|
47
|
+
* storageBackings: [subscriberDatastore.then(subscriberDatastore => subscriberDatastore.id)],
|
|
48
|
+
* subscription: {
|
|
49
|
+
* subscriptionUrl: "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
|
|
50
|
+
* automaticSync: true,
|
|
51
|
+
* onDemand: false,
|
|
52
|
+
* },
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ## Import
|
|
57
|
+
*
|
|
58
|
+
* An existing content library can be imported into this resource by supplying the content library ID. For example:
|
|
59
|
+
*
|
|
60
|
+
* ```sh
|
|
61
|
+
* $ pulumi import vsphere:index/contentLibrary:ContentLibrary vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
4
64
|
export declare class ContentLibrary extends pulumi.CustomResource {
|
|
5
65
|
/**
|
|
6
66
|
* Get an existing ContentLibrary resource's state with the given name, ID, and optional extra
|
package/contentLibrary.js
CHANGED
|
@@ -5,6 +5,66 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ContentLibrary = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `vsphere.ContentLibrary` resource can be used to manage content libraries.
|
|
10
|
+
*
|
|
11
|
+
* > **NOTE:** This resource requires a vCenter Server instance and is not available on direct ESXi host connections.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
20
|
+
*
|
|
21
|
+
* const datacenterA = vsphere.getDatacenter({
|
|
22
|
+
* name: "dc-01-a",
|
|
23
|
+
* });
|
|
24
|
+
* const publisherDatastore = datacenterA.then(datacenterA => vsphere.getDatastore({
|
|
25
|
+
* name: "publisher-datastore",
|
|
26
|
+
* datacenterId: datacenterA.id,
|
|
27
|
+
* }));
|
|
28
|
+
* const publisherContentLibrary = new vsphere.ContentLibrary("publisher_content_library", {
|
|
29
|
+
* name: "Publisher Content Library",
|
|
30
|
+
* description: "A publishing content library.",
|
|
31
|
+
* storageBackings: [publisherDatastore.then(publisherDatastore => publisherDatastore.id)],
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* The next example creates a subscribed content library using the URL of the publisher content library as the source and the datastore named `subscriber-datastore` as the storage backing.
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
40
|
+
*
|
|
41
|
+
* const datacenterB = vsphere.getDatacenter({
|
|
42
|
+
* name: "dc-01-b",
|
|
43
|
+
* });
|
|
44
|
+
* const subscriberDatastore = datacenterB.then(datacenterB => vsphere.getDatastore({
|
|
45
|
+
* name: "subscriber-datastore",
|
|
46
|
+
* datacenterId: datacenterB.id,
|
|
47
|
+
* }));
|
|
48
|
+
* const subscriberContentLibrary = new vsphere.ContentLibrary("subscriber_content_library", {
|
|
49
|
+
* name: "Subscriber Content Library",
|
|
50
|
+
* description: "A subscribing content library.",
|
|
51
|
+
* storageBackings: [subscriberDatastore.then(subscriberDatastore => subscriberDatastore.id)],
|
|
52
|
+
* subscription: {
|
|
53
|
+
* subscriptionUrl: "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
|
|
54
|
+
* automaticSync: true,
|
|
55
|
+
* onDemand: false,
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ## Import
|
|
61
|
+
*
|
|
62
|
+
* An existing content library can be imported into this resource by supplying the content library ID. For example:
|
|
63
|
+
*
|
|
64
|
+
* ```sh
|
|
65
|
+
* $ pulumi import vsphere:index/contentLibrary:ContentLibrary vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
8
68
|
class ContentLibrary extends pulumi.CustomResource {
|
|
9
69
|
/**
|
|
10
70
|
* Get an existing ContentLibrary resource's state with the given name, ID, and optional extra
|
package/contentL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