@pulumi/vsphere 4.10.0 → 4.10.2-alpha.1720054582
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 +309 -633
- package/computeCluster.js +2 -0
- package/computeCluster.js.map +1 -1
- package/computeClusterVmAffinityRule.d.ts +14 -10
- package/computeClusterVmAffinityRule.js +14 -10
- package/computeClusterVmAffinityRule.js.map +1 -1
- package/datacenter.d.ts +14 -15
- package/datacenter.js +14 -6
- package/datacenter.js.map +1 -1
- package/datastoreCluster.d.ts +72 -162
- package/datastoreCluster.js.map +1 -1
- package/distributedPortGroup.d.ts +54 -78
- package/distributedPortGroup.js.map +1 -1
- package/distributedVirtualSwitch.d.ts +129 -351
- package/distributedVirtualSwitch.js.map +1 -1
- package/entityPermissions.d.ts +24 -15
- package/entityPermissions.js.map +1 -1
- package/file.d.ts +8 -12
- package/file.js +8 -12
- package/file.js.map +1 -1
- package/folder.d.ts +0 -9
- package/folder.js.map +1 -1
- package/getComputeCluster.d.ts +0 -4
- package/getComputeCluster.js +0 -4
- package/getComputeCluster.js.map +1 -1
- package/getComputeClusterHostGroup.d.ts +22 -22
- package/getComputeClusterHostGroup.js +16 -18
- package/getComputeClusterHostGroup.js.map +1 -1
- package/getContentLibrary.d.ts +10 -10
- package/getContentLibrary.js +10 -10
- package/getContentLibraryItem.d.ts +12 -8
- package/getContentLibraryItem.js +4 -4
- package/getContentLibraryItem.js.map +1 -1
- package/getCustomAttribute.d.ts +0 -4
- package/getCustomAttribute.js +0 -4
- package/getCustomAttribute.js.map +1 -1
- package/getDatacenter.d.ts +0 -4
- package/getDatacenter.js +0 -4
- package/getDatacenter.js.map +1 -1
- package/getDatastore.d.ts +9 -13
- package/getDatastore.js +0 -4
- package/getDatastore.js.map +1 -1
- package/getDatastoreCluster.d.ts +0 -4
- package/getDatastoreCluster.js +0 -4
- package/getDatastoreCluster.js.map +1 -1
- package/getDatastoreStats.d.ts +38 -44
- package/getDatastoreStats.js +16 -24
- package/getDatastoreStats.js.map +1 -1
- package/getDistributedVirtualSwitch.d.ts +2 -4
- package/getDistributedVirtualSwitch.js +2 -4
- package/getDistributedVirtualSwitch.js.map +1 -1
- package/getDynamic.d.ts +18 -20
- package/getDynamic.js +12 -14
- package/getDynamic.js.map +1 -1
- package/getFolder.d.ts +10 -6
- package/getFolder.js +10 -6
- package/getFolder.js.map +1 -1
- package/getGuestOsCustomization.d.ts +8 -51
- package/getGuestOsCustomization.js +4 -34
- package/getGuestOsCustomization.js.map +1 -1
- package/getHost.d.ts +0 -4
- package/getHost.js +0 -4
- package/getHost.js.map +1 -1
- package/getHostBaseImages.d.ts +42 -0
- package/getHostBaseImages.js +43 -0
- package/getHostBaseImages.js.map +1 -0
- package/getHostPciDevice.d.ts +14 -20
- package/getHostPciDevice.js +10 -18
- package/getHostPciDevice.js.map +1 -1
- package/getHostThumbprint.d.ts +12 -16
- package/getHostThumbprint.js +8 -12
- package/getHostThumbprint.js.map +1 -1
- package/getHostVgpuProfile.d.ts +4 -10
- package/getHostVgpuProfile.js +0 -8
- package/getHostVgpuProfile.js.map +1 -1
- package/getLicense.d.ts +2 -5
- package/getLicense.js +0 -4
- package/getLicense.js.map +1 -1
- package/getNetwork.d.ts +14 -18
- package/getNetwork.js +10 -14
- package/getNetwork.js.map +1 -1
- package/getPolicy.d.ts +0 -4
- package/getPolicy.js +0 -4
- package/getPolicy.js.map +1 -1
- package/getResourcePool.d.ts +14 -18
- package/getResourcePool.js +14 -18
- package/getResourcePool.js.map +1 -1
- package/getRole.d.ts +4 -8
- package/getRole.js +4 -8
- package/getRole.js.map +1 -1
- package/getTag.d.ts +0 -4
- package/getTag.js +0 -4
- package/getTag.js.map +1 -1
- package/getTagCategory.d.ts +0 -4
- package/getTagCategory.js +0 -4
- package/getTagCategory.js.map +1 -1
- package/getVappContainer.d.ts +0 -4
- package/getVappContainer.js +0 -4
- package/getVappContainer.js.map +1 -1
- package/getVirtualMachine.d.ts +48 -40
- package/getVirtualMachine.js +6 -12
- package/getVirtualMachine.js.map +1 -1
- package/getVmfsDisks.d.ts +0 -4
- package/getVmfsDisks.js +0 -4
- package/getVmfsDisks.js.map +1 -1
- package/guestOsCustomization.d.ts +26 -0
- package/guestOsCustomization.js +26 -0
- package/guestOsCustomization.js.map +1 -1
- package/haVmOverride.d.ts +81 -162
- package/haVmOverride.js.map +1 -1
- package/host.d.ts +0 -10
- package/host.js +0 -10
- package/host.js.map +1 -1
- package/hostPortGroup.d.ts +6 -12
- package/hostPortGroup.js +6 -12
- package/hostPortGroup.js.map +1 -1
- package/hostVirtualSwitch.d.ts +60 -123
- package/hostVirtualSwitch.js.map +1 -1
- package/index.d.ts +12 -0
- package/index.js +21 -2
- package/index.js.map +1 -1
- package/license.d.ts +0 -17
- package/license.js +0 -17
- package/license.js.map +1 -1
- package/nasDatastore.d.ts +3 -3
- package/offlineSoftwareDepot.d.ts +63 -0
- package/offlineSoftwareDepot.js +59 -0
- package/offlineSoftwareDepot.js.map +1 -0
- package/package.json +3 -2
- package/resourcePool.d.ts +28 -12
- package/resourcePool.js +28 -12
- package/resourcePool.js.map +1 -1
- package/supervisor.d.ts +292 -0
- package/supervisor.js +178 -0
- package/supervisor.js.map +1 -0
- package/types/input.d.ts +172 -119
- package/types/output.d.ts +192 -134
- package/virtualDisk.d.ts +6 -6
- package/virtualMachine.d.ts +250 -361
- package/virtualMachine.js.map +1 -1
- package/virtualMachineClass.d.ts +143 -0
- package/virtualMachineClass.js +100 -0
- package/virtualMachineClass.js.map +1 -0
- package/virtualMachineSnapshot.d.ts +4 -6
- package/virtualMachineSnapshot.js +4 -6
- package/virtualMachineSnapshot.js.map +1 -1
- package/vmStoragePolicy.d.ts +29 -35
- package/vmStoragePolicy.js +29 -35
- package/vmStoragePolicy.js.map +1 -1
- package/vnic.d.ts +34 -42
- package/vnic.js +31 -39
- package/vnic.js.map +1 -1
- package/package.json.bak +0 -29
package/getContentLibrary.js
CHANGED
|
@@ -6,22 +6,22 @@ exports.getContentLibraryOutput = exports.getContentLibrary = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* The `vsphere.ContentLibrary` data source can be used to discover the ID of a
|
|
9
|
+
* The `vsphere.ContentLibrary` data source can be used to discover the ID of a
|
|
10
|
+
* content library.
|
|
10
11
|
*
|
|
11
|
-
* > **NOTE:** This resource requires vCenter
|
|
12
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
13
|
+
* host connections.
|
|
12
14
|
*
|
|
13
15
|
* ## Example Usage
|
|
14
16
|
*
|
|
15
|
-
* <!--Start PulumiCodeChooser -->
|
|
16
17
|
* ```typescript
|
|
17
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
19
|
* import * as vsphere from "@pulumi/vsphere";
|
|
19
20
|
*
|
|
20
|
-
* const
|
|
21
|
+
* const contentLibrary = vsphere.getContentLibrary({
|
|
21
22
|
* name: "Content Library",
|
|
22
23
|
* });
|
|
23
24
|
* ```
|
|
24
|
-
* <!--End PulumiCodeChooser -->
|
|
25
25
|
*/
|
|
26
26
|
function getContentLibrary(args, opts) {
|
|
27
27
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -31,22 +31,22 @@ function getContentLibrary(args, opts) {
|
|
|
31
31
|
}
|
|
32
32
|
exports.getContentLibrary = getContentLibrary;
|
|
33
33
|
/**
|
|
34
|
-
* The `vsphere.ContentLibrary` data source can be used to discover the ID of a
|
|
34
|
+
* The `vsphere.ContentLibrary` data source can be used to discover the ID of a
|
|
35
|
+
* content library.
|
|
35
36
|
*
|
|
36
|
-
* > **NOTE:** This resource requires vCenter
|
|
37
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
38
|
+
* host connections.
|
|
37
39
|
*
|
|
38
40
|
* ## Example Usage
|
|
39
41
|
*
|
|
40
|
-
* <!--Start PulumiCodeChooser -->
|
|
41
42
|
* ```typescript
|
|
42
43
|
* import * as pulumi from "@pulumi/pulumi";
|
|
43
44
|
* import * as vsphere from "@pulumi/vsphere";
|
|
44
45
|
*
|
|
45
|
-
* const
|
|
46
|
+
* const contentLibrary = vsphere.getContentLibrary({
|
|
46
47
|
* name: "Content Library",
|
|
47
48
|
* });
|
|
48
49
|
* ```
|
|
49
|
-
* <!--End PulumiCodeChooser -->
|
|
50
50
|
*/
|
|
51
51
|
function getContentLibraryOutput(args, opts) {
|
|
52
52
|
return pulumi.output(args).apply((a) => getContentLibrary(a, opts));
|
|
@@ -3,8 +3,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* The `vsphere.ContentLibraryItem` data source can be used to discover the ID
|
|
4
4
|
* of a content library item.
|
|
5
5
|
*
|
|
6
|
-
* > **NOTE:** This resource requires vCenter
|
|
7
|
-
*
|
|
6
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
7
|
+
* host connections.
|
|
8
8
|
*/
|
|
9
9
|
export declare function getContentLibraryItem(args: GetContentLibraryItemArgs, opts?: pulumi.InvokeOptions): Promise<GetContentLibraryItemResult>;
|
|
10
10
|
/**
|
|
@@ -12,7 +12,8 @@ export declare function getContentLibraryItem(args: GetContentLibraryItemArgs, o
|
|
|
12
12
|
*/
|
|
13
13
|
export interface GetContentLibraryItemArgs {
|
|
14
14
|
/**
|
|
15
|
-
* The ID of the content library in which the item
|
|
15
|
+
* The ID of the content library in which the item
|
|
16
|
+
* exists.
|
|
16
17
|
*/
|
|
17
18
|
libraryId: string;
|
|
18
19
|
/**
|
|
@@ -20,7 +21,8 @@ export interface GetContentLibraryItemArgs {
|
|
|
20
21
|
*/
|
|
21
22
|
name: string;
|
|
22
23
|
/**
|
|
23
|
-
* The type for the content library item. One of `ovf`,
|
|
24
|
+
* The type for the content library item. One of `ovf`,
|
|
25
|
+
* `vm-template`, or `iso`
|
|
24
26
|
*/
|
|
25
27
|
type: string;
|
|
26
28
|
}
|
|
@@ -40,8 +42,8 @@ export interface GetContentLibraryItemResult {
|
|
|
40
42
|
* The `vsphere.ContentLibraryItem` data source can be used to discover the ID
|
|
41
43
|
* of a content library item.
|
|
42
44
|
*
|
|
43
|
-
* > **NOTE:** This resource requires vCenter
|
|
44
|
-
*
|
|
45
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
46
|
+
* host connections.
|
|
45
47
|
*/
|
|
46
48
|
export declare function getContentLibraryItemOutput(args: GetContentLibraryItemOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetContentLibraryItemResult>;
|
|
47
49
|
/**
|
|
@@ -49,7 +51,8 @@ export declare function getContentLibraryItemOutput(args: GetContentLibraryItemO
|
|
|
49
51
|
*/
|
|
50
52
|
export interface GetContentLibraryItemOutputArgs {
|
|
51
53
|
/**
|
|
52
|
-
* The ID of the content library in which the item
|
|
54
|
+
* The ID of the content library in which the item
|
|
55
|
+
* exists.
|
|
53
56
|
*/
|
|
54
57
|
libraryId: pulumi.Input<string>;
|
|
55
58
|
/**
|
|
@@ -57,7 +60,8 @@ export interface GetContentLibraryItemOutputArgs {
|
|
|
57
60
|
*/
|
|
58
61
|
name: pulumi.Input<string>;
|
|
59
62
|
/**
|
|
60
|
-
* The type for the content library item. One of `ovf`,
|
|
63
|
+
* The type for the content library item. One of `ovf`,
|
|
64
|
+
* `vm-template`, or `iso`
|
|
61
65
|
*/
|
|
62
66
|
type: pulumi.Input<string>;
|
|
63
67
|
}
|
package/getContentLibraryItem.js
CHANGED
|
@@ -9,8 +9,8 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* The `vsphere.ContentLibraryItem` data source can be used to discover the ID
|
|
10
10
|
* of a content library item.
|
|
11
11
|
*
|
|
12
|
-
* > **NOTE:** This resource requires vCenter
|
|
13
|
-
*
|
|
12
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
13
|
+
* host connections.
|
|
14
14
|
*/
|
|
15
15
|
function getContentLibraryItem(args, opts) {
|
|
16
16
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -25,8 +25,8 @@ exports.getContentLibraryItem = getContentLibraryItem;
|
|
|
25
25
|
* The `vsphere.ContentLibraryItem` data source can be used to discover the ID
|
|
26
26
|
* of a content library item.
|
|
27
27
|
*
|
|
28
|
-
* > **NOTE:** This resource requires vCenter
|
|
29
|
-
*
|
|
28
|
+
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
29
|
+
* host connections.
|
|
30
30
|
*/
|
|
31
31
|
function getContentLibraryItemOutput(args, opts) {
|
|
32
32
|
return pulumi.output(args).apply((a) => getContentLibraryItem(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContentLibraryItem.js","sourceRoot":"","sources":["../getContentLibraryItem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;
|
|
1
|
+
{"version":3,"file":"getContentLibraryItem.js","sourceRoot":"","sources":["../getContentLibraryItem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sDAQC;AAkCD;;;;;;GAMG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
|
package/getCustomAttribute.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
-
* <!--Start PulumiCodeChooser -->
|
|
15
14
|
* ```typescript
|
|
16
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
16
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -20,7 +19,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
19
|
* name: "test-attribute",
|
|
21
20
|
* });
|
|
22
21
|
* ```
|
|
23
|
-
* <!--End PulumiCodeChooser -->
|
|
24
22
|
*/
|
|
25
23
|
export declare function getCustomAttribute(args: GetCustomAttributeArgs, opts?: pulumi.InvokeOptions): Promise<GetCustomAttributeResult>;
|
|
26
24
|
/**
|
|
@@ -55,7 +53,6 @@ export interface GetCustomAttributeResult {
|
|
|
55
53
|
*
|
|
56
54
|
* ## Example Usage
|
|
57
55
|
*
|
|
58
|
-
* <!--Start PulumiCodeChooser -->
|
|
59
56
|
* ```typescript
|
|
60
57
|
* import * as pulumi from "@pulumi/pulumi";
|
|
61
58
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -64,7 +61,6 @@ export interface GetCustomAttributeResult {
|
|
|
64
61
|
* name: "test-attribute",
|
|
65
62
|
* });
|
|
66
63
|
* ```
|
|
67
|
-
* <!--End PulumiCodeChooser -->
|
|
68
64
|
*/
|
|
69
65
|
export declare function getCustomAttributeOutput(args: GetCustomAttributeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCustomAttributeResult>;
|
|
70
66
|
/**
|
package/getCustomAttribute.js
CHANGED
|
@@ -17,7 +17,6 @@ const utilities = require("./utilities");
|
|
|
17
17
|
*
|
|
18
18
|
* ## Example Usage
|
|
19
19
|
*
|
|
20
|
-
* <!--Start PulumiCodeChooser -->
|
|
21
20
|
* ```typescript
|
|
22
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
23
22
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -26,7 +25,6 @@ const utilities = require("./utilities");
|
|
|
26
25
|
* name: "test-attribute",
|
|
27
26
|
* });
|
|
28
27
|
* ```
|
|
29
|
-
* <!--End PulumiCodeChooser -->
|
|
30
28
|
*/
|
|
31
29
|
function getCustomAttribute(args, opts) {
|
|
32
30
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -47,7 +45,6 @@ exports.getCustomAttribute = getCustomAttribute;
|
|
|
47
45
|
*
|
|
48
46
|
* ## Example Usage
|
|
49
47
|
*
|
|
50
|
-
* <!--Start PulumiCodeChooser -->
|
|
51
48
|
* ```typescript
|
|
52
49
|
* import * as pulumi from "@pulumi/pulumi";
|
|
53
50
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -56,7 +53,6 @@ exports.getCustomAttribute = getCustomAttribute;
|
|
|
56
53
|
* name: "test-attribute",
|
|
57
54
|
* });
|
|
58
55
|
* ```
|
|
59
|
-
* <!--End PulumiCodeChooser -->
|
|
60
56
|
*/
|
|
61
57
|
function getCustomAttributeOutput(args, opts) {
|
|
62
58
|
return pulumi.output(args).apply((a) => getCustomAttribute(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCustomAttribute.js","sourceRoot":"","sources":["../getCustomAttribute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getCustomAttribute.js","sourceRoot":"","sources":["../getCustomAttribute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IAExF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qDAAqD,EAAE;QAChF,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC;AAuBD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
|
package/getDatacenter.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
-
* <!--Start PulumiCodeChooser -->
|
|
11
10
|
* ```typescript
|
|
12
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
12
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -16,7 +15,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
15
|
* name: "dc-01",
|
|
17
16
|
* });
|
|
18
17
|
* ```
|
|
19
|
-
* <!--End PulumiCodeChooser -->
|
|
20
18
|
*/
|
|
21
19
|
export declare function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatacenterResult>;
|
|
22
20
|
/**
|
|
@@ -52,7 +50,6 @@ export interface GetDatacenterResult {
|
|
|
52
50
|
*
|
|
53
51
|
* ## Example Usage
|
|
54
52
|
*
|
|
55
|
-
* <!--Start PulumiCodeChooser -->
|
|
56
53
|
* ```typescript
|
|
57
54
|
* import * as pulumi from "@pulumi/pulumi";
|
|
58
55
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -61,7 +58,6 @@ export interface GetDatacenterResult {
|
|
|
61
58
|
* name: "dc-01",
|
|
62
59
|
* });
|
|
63
60
|
* ```
|
|
64
|
-
* <!--End PulumiCodeChooser -->
|
|
65
61
|
*/
|
|
66
62
|
export declare function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatacenterResult>;
|
|
67
63
|
/**
|
package/getDatacenter.js
CHANGED
|
@@ -13,7 +13,6 @@ const utilities = require("./utilities");
|
|
|
13
13
|
*
|
|
14
14
|
* ## Example Usage
|
|
15
15
|
*
|
|
16
|
-
* <!--Start PulumiCodeChooser -->
|
|
17
16
|
* ```typescript
|
|
18
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
18
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -22,7 +21,6 @@ const utilities = require("./utilities");
|
|
|
22
21
|
* name: "dc-01",
|
|
23
22
|
* });
|
|
24
23
|
* ```
|
|
25
|
-
* <!--End PulumiCodeChooser -->
|
|
26
24
|
*/
|
|
27
25
|
function getDatacenter(args, opts) {
|
|
28
26
|
args = args || {};
|
|
@@ -40,7 +38,6 @@ exports.getDatacenter = getDatacenter;
|
|
|
40
38
|
*
|
|
41
39
|
* ## Example Usage
|
|
42
40
|
*
|
|
43
|
-
* <!--Start PulumiCodeChooser -->
|
|
44
41
|
* ```typescript
|
|
45
42
|
* import * as pulumi from "@pulumi/pulumi";
|
|
46
43
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -49,7 +46,6 @@ exports.getDatacenter = getDatacenter;
|
|
|
49
46
|
* name: "dc-01",
|
|
50
47
|
* });
|
|
51
48
|
* ```
|
|
52
|
-
* <!--End PulumiCodeChooser -->
|
|
53
49
|
*/
|
|
54
50
|
function getDatacenterOutput(args, opts) {
|
|
55
51
|
return pulumi.output(args).apply((a) => getDatacenter(a, opts));
|
package/getDatacenter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatacenter.js","sourceRoot":"","sources":["../getDatacenter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDatacenter.js","sourceRoot":"","sources":["../getDatacenter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2CAA2C,EAAE;QACtE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sCAOC;AA4BD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
package/getDatastore.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
-
* <!--Start PulumiCodeChooser -->
|
|
11
10
|
* ```typescript
|
|
12
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
12
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -20,7 +19,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
19
|
* datacenterId: datacenter.id,
|
|
21
20
|
* }));
|
|
22
21
|
* ```
|
|
23
|
-
* <!--End PulumiCodeChooser -->
|
|
24
22
|
*/
|
|
25
23
|
export declare function getDatastore(args: GetDatastoreArgs, opts?: pulumi.InvokeOptions): Promise<GetDatastoreResult>;
|
|
26
24
|
/**
|
|
@@ -39,9 +37,9 @@ export interface GetDatastoreArgs {
|
|
|
39
37
|
*/
|
|
40
38
|
name: string;
|
|
41
39
|
/**
|
|
42
|
-
* The disk space usage statistics for the specific datastore. The
|
|
43
|
-
* datastore capacity is represented as `capacity` and the free remaining
|
|
44
|
-
* represented as `free`.
|
|
40
|
+
* The disk space usage statistics for the specific datastore. The
|
|
41
|
+
* total datastore capacity is represented as `capacity` and the free remaining
|
|
42
|
+
* disk is represented as `free`.
|
|
45
43
|
*/
|
|
46
44
|
stats?: {
|
|
47
45
|
[key: string]: any;
|
|
@@ -58,9 +56,9 @@ export interface GetDatastoreResult {
|
|
|
58
56
|
readonly id: string;
|
|
59
57
|
readonly name: string;
|
|
60
58
|
/**
|
|
61
|
-
* The disk space usage statistics for the specific datastore. The
|
|
62
|
-
* datastore capacity is represented as `capacity` and the free remaining
|
|
63
|
-
* represented as `free`.
|
|
59
|
+
* The disk space usage statistics for the specific datastore. The
|
|
60
|
+
* total datastore capacity is represented as `capacity` and the free remaining
|
|
61
|
+
* disk is represented as `free`.
|
|
64
62
|
*/
|
|
65
63
|
readonly stats?: {
|
|
66
64
|
[key: string]: any;
|
|
@@ -74,7 +72,6 @@ export interface GetDatastoreResult {
|
|
|
74
72
|
*
|
|
75
73
|
* ## Example Usage
|
|
76
74
|
*
|
|
77
|
-
* <!--Start PulumiCodeChooser -->
|
|
78
75
|
* ```typescript
|
|
79
76
|
* import * as pulumi from "@pulumi/pulumi";
|
|
80
77
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -87,7 +84,6 @@ export interface GetDatastoreResult {
|
|
|
87
84
|
* datacenterId: datacenter.id,
|
|
88
85
|
* }));
|
|
89
86
|
* ```
|
|
90
|
-
* <!--End PulumiCodeChooser -->
|
|
91
87
|
*/
|
|
92
88
|
export declare function getDatastoreOutput(args: GetDatastoreOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatastoreResult>;
|
|
93
89
|
/**
|
|
@@ -106,9 +102,9 @@ export interface GetDatastoreOutputArgs {
|
|
|
106
102
|
*/
|
|
107
103
|
name: pulumi.Input<string>;
|
|
108
104
|
/**
|
|
109
|
-
* The disk space usage statistics for the specific datastore. The
|
|
110
|
-
* datastore capacity is represented as `capacity` and the free remaining
|
|
111
|
-
* represented as `free`.
|
|
105
|
+
* The disk space usage statistics for the specific datastore. The
|
|
106
|
+
* total datastore capacity is represented as `capacity` and the free remaining
|
|
107
|
+
* disk is represented as `free`.
|
|
112
108
|
*/
|
|
113
109
|
stats?: pulumi.Input<{
|
|
114
110
|
[key: string]: any;
|
package/getDatastore.js
CHANGED
|
@@ -13,7 +13,6 @@ const utilities = require("./utilities");
|
|
|
13
13
|
*
|
|
14
14
|
* ## Example Usage
|
|
15
15
|
*
|
|
16
|
-
* <!--Start PulumiCodeChooser -->
|
|
17
16
|
* ```typescript
|
|
18
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
18
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -26,7 +25,6 @@ const utilities = require("./utilities");
|
|
|
26
25
|
* datacenterId: datacenter.id,
|
|
27
26
|
* }));
|
|
28
27
|
* ```
|
|
29
|
-
* <!--End PulumiCodeChooser -->
|
|
30
28
|
*/
|
|
31
29
|
function getDatastore(args, opts) {
|
|
32
30
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -45,7 +43,6 @@ exports.getDatastore = getDatastore;
|
|
|
45
43
|
*
|
|
46
44
|
* ## Example Usage
|
|
47
45
|
*
|
|
48
|
-
* <!--Start PulumiCodeChooser -->
|
|
49
46
|
* ```typescript
|
|
50
47
|
* import * as pulumi from "@pulumi/pulumi";
|
|
51
48
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -58,7 +55,6 @@ exports.getDatastore = getDatastore;
|
|
|
58
55
|
* datacenterId: datacenter.id,
|
|
59
56
|
* }));
|
|
60
57
|
* ```
|
|
61
|
-
* <!--End PulumiCodeChooser -->
|
|
62
58
|
*/
|
|
63
59
|
function getDatastoreOutput(args, opts) {
|
|
64
60
|
return pulumi.output(args).apply((a) => getDatastore(a, opts));
|
package/getDatastore.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatastore.js","sourceRoot":"","sources":["../getDatastore.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDatastore.js","sourceRoot":"","sources":["../getDatastore.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oCAQC;AA0CD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
|
package/getDatastoreCluster.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
-
* <!--Start PulumiCodeChooser -->
|
|
11
10
|
* ```typescript
|
|
12
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
12
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -20,7 +19,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
19
|
* datacenterId: datacenter.id,
|
|
21
20
|
* }));
|
|
22
21
|
* ```
|
|
23
|
-
* <!--End PulumiCodeChooser -->
|
|
24
22
|
*/
|
|
25
23
|
export declare function getDatastoreCluster(args: GetDatastoreClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetDatastoreClusterResult>;
|
|
26
24
|
/**
|
|
@@ -59,7 +57,6 @@ export interface GetDatastoreClusterResult {
|
|
|
59
57
|
*
|
|
60
58
|
* ## Example Usage
|
|
61
59
|
*
|
|
62
|
-
* <!--Start PulumiCodeChooser -->
|
|
63
60
|
* ```typescript
|
|
64
61
|
* import * as pulumi from "@pulumi/pulumi";
|
|
65
62
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -72,7 +69,6 @@ export interface GetDatastoreClusterResult {
|
|
|
72
69
|
* datacenterId: datacenter.id,
|
|
73
70
|
* }));
|
|
74
71
|
* ```
|
|
75
|
-
* <!--End PulumiCodeChooser -->
|
|
76
72
|
*/
|
|
77
73
|
export declare function getDatastoreClusterOutput(args: GetDatastoreClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatastoreClusterResult>;
|
|
78
74
|
/**
|
package/getDatastoreCluster.js
CHANGED
|
@@ -13,7 +13,6 @@ const utilities = require("./utilities");
|
|
|
13
13
|
*
|
|
14
14
|
* ## Example Usage
|
|
15
15
|
*
|
|
16
|
-
* <!--Start PulumiCodeChooser -->
|
|
17
16
|
* ```typescript
|
|
18
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
18
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -26,7 +25,6 @@ const utilities = require("./utilities");
|
|
|
26
25
|
* datacenterId: datacenter.id,
|
|
27
26
|
* }));
|
|
28
27
|
* ```
|
|
29
|
-
* <!--End PulumiCodeChooser -->
|
|
30
28
|
*/
|
|
31
29
|
function getDatastoreCluster(args, opts) {
|
|
32
30
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -44,7 +42,6 @@ exports.getDatastoreCluster = getDatastoreCluster;
|
|
|
44
42
|
*
|
|
45
43
|
* ## Example Usage
|
|
46
44
|
*
|
|
47
|
-
* <!--Start PulumiCodeChooser -->
|
|
48
45
|
* ```typescript
|
|
49
46
|
* import * as pulumi from "@pulumi/pulumi";
|
|
50
47
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -57,7 +54,6 @@ exports.getDatastoreCluster = getDatastoreCluster;
|
|
|
57
54
|
* datacenterId: datacenter.id,
|
|
58
55
|
* }));
|
|
59
56
|
* ```
|
|
60
|
-
* <!--End PulumiCodeChooser -->
|
|
61
57
|
*/
|
|
62
58
|
function getDatastoreClusterOutput(args, opts) {
|
|
63
59
|
return pulumi.output(args).apply((a) => getDatastoreCluster(a, opts));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDatastoreCluster.js","sourceRoot":"","sources":["../getDatastoreCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDatastoreCluster.js","sourceRoot":"","sources":["../getDatastoreCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAE1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AA+BD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
|
package/getDatastoreStats.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* The `vsphere.getDatastoreStats` data source can be used to retrieve the usage
|
|
4
|
-
* of all vSphere datastore objects in a datacenter. This can then be used as
|
|
5
|
-
* standalone
|
|
3
|
+
* The `vsphere.getDatastoreStats` data source can be used to retrieve the usage
|
|
4
|
+
* stats of all vSphere datastore objects in a datacenter. This can then be used as
|
|
5
|
+
* a standalone data source to get information required as input to other data
|
|
6
|
+
* sources.
|
|
6
7
|
*
|
|
7
8
|
* ## Example Usage
|
|
8
9
|
*
|
|
9
|
-
* <!--Start PulumiCodeChooser -->
|
|
10
10
|
* ```typescript
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -18,22 +18,18 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
18
|
* datacenterId: datacenter.id,
|
|
19
19
|
* }));
|
|
20
20
|
* ```
|
|
21
|
-
* <!--End PulumiCodeChooser -->
|
|
22
21
|
*
|
|
23
|
-
* A
|
|
24
|
-
*
|
|
25
|
-
* the above:
|
|
22
|
+
* A useful example of this data source would be to determine the datastore with
|
|
23
|
+
* the most free space. For example, in addition to the above:
|
|
26
24
|
*
|
|
27
25
|
* Create an `outputs.tf` like that:
|
|
28
26
|
*
|
|
29
|
-
* <!--Start PulumiCodeChooser -->
|
|
30
27
|
* ```typescript
|
|
31
28
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
29
|
*
|
|
33
|
-
* export const maxFreeSpaceName =
|
|
34
|
-
* export const maxFreeSpace =
|
|
30
|
+
* export const maxFreeSpaceName = theirMaxFreeSpaceName;
|
|
31
|
+
* export const maxFreeSpace = theirMaxFreeSpace;
|
|
35
32
|
* ```
|
|
36
|
-
* <!--End PulumiCodeChooser -->
|
|
37
33
|
*
|
|
38
34
|
* and a `locals.tf` like that:
|
|
39
35
|
*/
|
|
@@ -43,24 +39,25 @@ export declare function getDatastoreStats(args: GetDatastoreStatsArgs, opts?: pu
|
|
|
43
39
|
*/
|
|
44
40
|
export interface GetDatastoreStatsArgs {
|
|
45
41
|
/**
|
|
46
|
-
* A mapping of the capacity for all datastore in the datacenter
|
|
47
|
-
*
|
|
42
|
+
* A mapping of the capacity for all datastore in the datacenter,
|
|
43
|
+
* where the name of the datastore is used as key and the capacity as value.
|
|
48
44
|
*/
|
|
49
45
|
capacity?: {
|
|
50
46
|
[key: string]: any;
|
|
51
47
|
};
|
|
52
48
|
/**
|
|
53
|
-
* The
|
|
54
|
-
* of the datacenter the
|
|
55
|
-
*
|
|
49
|
+
* The
|
|
50
|
+
* [managed object reference ID][docs-about-morefs] of the datacenter the
|
|
51
|
+
* datastores are located in. For default datacenters, use the `id` attribute
|
|
52
|
+
* from an empty `vsphere.Datacenter` data source.
|
|
56
53
|
*
|
|
57
54
|
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
58
55
|
*/
|
|
59
56
|
datacenterId: string;
|
|
60
57
|
/**
|
|
61
58
|
* A mapping of the free space for each datastore in the
|
|
62
|
-
* datacenter, where the name of the datastore is used as key and the free
|
|
63
|
-
*
|
|
59
|
+
* datacenter, where the name of the datastore is used as key and the free space
|
|
60
|
+
* as value.
|
|
64
61
|
*/
|
|
65
62
|
freeSpace?: {
|
|
66
63
|
[key: string]: any;
|
|
@@ -71,21 +68,21 @@ export interface GetDatastoreStatsArgs {
|
|
|
71
68
|
*/
|
|
72
69
|
export interface GetDatastoreStatsResult {
|
|
73
70
|
/**
|
|
74
|
-
* A mapping of the capacity for all datastore in the datacenter
|
|
75
|
-
*
|
|
71
|
+
* A mapping of the capacity for all datastore in the datacenter,
|
|
72
|
+
* where the name of the datastore is used as key and the capacity as value.
|
|
76
73
|
*/
|
|
77
74
|
readonly capacity?: {
|
|
78
75
|
[key: string]: any;
|
|
79
76
|
};
|
|
80
77
|
/**
|
|
81
|
-
* The [managed object reference ID][docs-about-morefs]
|
|
82
|
-
*
|
|
78
|
+
* The [managed object reference ID][docs-about-morefs] of the
|
|
79
|
+
* datacenter the datastores are located in.
|
|
83
80
|
*/
|
|
84
81
|
readonly datacenterId: string;
|
|
85
82
|
/**
|
|
86
83
|
* A mapping of the free space for each datastore in the
|
|
87
|
-
* datacenter, where the name of the datastore is used as key and the free
|
|
88
|
-
*
|
|
84
|
+
* datacenter, where the name of the datastore is used as key and the free space
|
|
85
|
+
* as value.
|
|
89
86
|
*/
|
|
90
87
|
readonly freeSpace?: {
|
|
91
88
|
[key: string]: any;
|
|
@@ -96,13 +93,13 @@ export interface GetDatastoreStatsResult {
|
|
|
96
93
|
readonly id: string;
|
|
97
94
|
}
|
|
98
95
|
/**
|
|
99
|
-
* The `vsphere.getDatastoreStats` data source can be used to retrieve the usage
|
|
100
|
-
* of all vSphere datastore objects in a datacenter. This can then be used as
|
|
101
|
-
* standalone
|
|
96
|
+
* The `vsphere.getDatastoreStats` data source can be used to retrieve the usage
|
|
97
|
+
* stats of all vSphere datastore objects in a datacenter. This can then be used as
|
|
98
|
+
* a standalone data source to get information required as input to other data
|
|
99
|
+
* sources.
|
|
102
100
|
*
|
|
103
101
|
* ## Example Usage
|
|
104
102
|
*
|
|
105
|
-
* <!--Start PulumiCodeChooser -->
|
|
106
103
|
* ```typescript
|
|
107
104
|
* import * as pulumi from "@pulumi/pulumi";
|
|
108
105
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -114,22 +111,18 @@ export interface GetDatastoreStatsResult {
|
|
|
114
111
|
* datacenterId: datacenter.id,
|
|
115
112
|
* }));
|
|
116
113
|
* ```
|
|
117
|
-
* <!--End PulumiCodeChooser -->
|
|
118
114
|
*
|
|
119
|
-
* A
|
|
120
|
-
*
|
|
121
|
-
* the above:
|
|
115
|
+
* A useful example of this data source would be to determine the datastore with
|
|
116
|
+
* the most free space. For example, in addition to the above:
|
|
122
117
|
*
|
|
123
118
|
* Create an `outputs.tf` like that:
|
|
124
119
|
*
|
|
125
|
-
* <!--Start PulumiCodeChooser -->
|
|
126
120
|
* ```typescript
|
|
127
121
|
* import * as pulumi from "@pulumi/pulumi";
|
|
128
122
|
*
|
|
129
|
-
* export const maxFreeSpaceName =
|
|
130
|
-
* export const maxFreeSpace =
|
|
123
|
+
* export const maxFreeSpaceName = theirMaxFreeSpaceName;
|
|
124
|
+
* export const maxFreeSpace = theirMaxFreeSpace;
|
|
131
125
|
* ```
|
|
132
|
-
* <!--End PulumiCodeChooser -->
|
|
133
126
|
*
|
|
134
127
|
* and a `locals.tf` like that:
|
|
135
128
|
*/
|
|
@@ -139,24 +132,25 @@ export declare function getDatastoreStatsOutput(args: GetDatastoreStatsOutputArg
|
|
|
139
132
|
*/
|
|
140
133
|
export interface GetDatastoreStatsOutputArgs {
|
|
141
134
|
/**
|
|
142
|
-
* A mapping of the capacity for all datastore in the datacenter
|
|
143
|
-
*
|
|
135
|
+
* A mapping of the capacity for all datastore in the datacenter,
|
|
136
|
+
* where the name of the datastore is used as key and the capacity as value.
|
|
144
137
|
*/
|
|
145
138
|
capacity?: pulumi.Input<{
|
|
146
139
|
[key: string]: any;
|
|
147
140
|
}>;
|
|
148
141
|
/**
|
|
149
|
-
* The
|
|
150
|
-
* of the datacenter the
|
|
151
|
-
*
|
|
142
|
+
* The
|
|
143
|
+
* [managed object reference ID][docs-about-morefs] of the datacenter the
|
|
144
|
+
* datastores are located in. For default datacenters, use the `id` attribute
|
|
145
|
+
* from an empty `vsphere.Datacenter` data source.
|
|
152
146
|
*
|
|
153
147
|
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
154
148
|
*/
|
|
155
149
|
datacenterId: pulumi.Input<string>;
|
|
156
150
|
/**
|
|
157
151
|
* A mapping of the free space for each datastore in the
|
|
158
|
-
* datacenter, where the name of the datastore is used as key and the free
|
|
159
|
-
*
|
|
152
|
+
* datacenter, where the name of the datastore is used as key and the free space
|
|
153
|
+
* as value.
|
|
160
154
|
*/
|
|
161
155
|
freeSpace?: pulumi.Input<{
|
|
162
156
|
[key: string]: any;
|