@pulumi/vsphere 4.10.1 → 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 +12 -0
- package/computeCluster.js +2 -0
- package/computeCluster.js.map +1 -1
- package/computeClusterVmAffinityRule.d.ts +0 -2
- package/computeClusterVmAffinityRule.js +0 -2
- package/computeClusterVmAffinityRule.js.map +1 -1
- package/datacenter.d.ts +0 -9
- package/datacenter.js.map +1 -1
- package/datastoreCluster.d.ts +0 -6
- package/datastoreCluster.js.map +1 -1
- package/distributedPortGroup.d.ts +24 -3
- package/distributedPortGroup.js.map +1 -1
- package/distributedVirtualSwitch.d.ts +3 -12
- package/distributedVirtualSwitch.js.map +1 -1
- package/entityPermissions.d.ts +24 -15
- package/entityPermissions.js.map +1 -1
- package/folder.d.ts +0 -9
- package/folder.js.map +1 -1
- package/getComputeClusterHostGroup.d.ts +20 -18
- package/getComputeClusterHostGroup.js +14 -14
- package/getComputeClusterHostGroup.js.map +1 -1
- package/getContentLibrary.d.ts +10 -6
- package/getContentLibrary.js +10 -6
- package/getContentLibrary.js.map +1 -1
- package/getContentLibraryItem.d.ts +12 -8
- package/getContentLibraryItem.js +4 -4
- package/getContentLibraryItem.js.map +1 -1
- package/getDatastore.d.ts +9 -9
- package/getDatastoreStats.d.ts +34 -32
- package/getDatastoreStats.js +12 -12
- package/getDatastoreStats.js.map +1 -1
- package/getDynamic.d.ts +14 -12
- package/getDynamic.js +8 -6
- package/getDynamic.js.map +1 -1
- package/getFolder.d.ts +10 -2
- package/getFolder.js +10 -2
- package/getFolder.js.map +1 -1
- package/getGuestOsCustomization.d.ts +8 -47
- package/getGuestOsCustomization.js +4 -30
- package/getGuestOsCustomization.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 +4 -2
- package/getHostPciDevice.js.map +1 -1
- package/getHostThumbprint.d.ts +12 -12
- package/getHostThumbprint.js +8 -8
- package/getHostVgpuProfile.d.ts +4 -2
- package/getHostVgpuProfile.js.map +1 -1
- package/getLicense.d.ts +2 -1
- package/getLicense.js.map +1 -1
- package/getNetwork.d.ts +14 -14
- package/getNetwork.js +10 -10
- package/getResourcePool.d.ts +12 -8
- package/getResourcePool.js +12 -8
- package/getResourcePool.js.map +1 -1
- package/getRole.d.ts +4 -4
- package/getRole.js +4 -4
- package/getVirtualMachine.d.ts +48 -32
- package/getVirtualMachine.js +6 -4
- package/getVirtualMachine.js.map +1 -1
- package/guestOsCustomization.d.ts +2 -2
- package/guestOsCustomization.js +2 -2
- package/index.d.ts +12 -0
- package/index.js +21 -2
- package/index.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 +1 -1
- package/resourcePool.js +1 -1
- package/supervisor.d.ts +292 -0
- package/supervisor.js +178 -0
- package/supervisor.js.map +1 -0
- package/types/input.d.ts +124 -3
- package/types/output.d.ts +144 -18
- package/virtualDisk.d.ts +3 -3
- package/virtualMachine.d.ts +2 -2
- package/virtualMachineClass.d.ts +143 -0
- package/virtualMachineClass.js +100 -0
- package/virtualMachineClass.js.map +1 -0
- package/virtualMachineSnapshot.d.ts +1 -1
- package/virtualMachineSnapshot.js +1 -1
- package/vmStoragePolicy.d.ts +1 -1
- package/vmStoragePolicy.js +1 -1
- package/vnic.d.ts +34 -36
- package/vnic.js +31 -33
- package/vnic.js.map +1 -1
- package/package.json.bak +0 -29
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a resource for configuring a Virtual Machine class.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ### S
|
|
8
|
+
*
|
|
9
|
+
* **Create a basic class**
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
14
|
+
*
|
|
15
|
+
* const basicClass = new vsphere.VirtualMachineClass("basic_class", {
|
|
16
|
+
* name: "basic-class",
|
|
17
|
+
* cpus: 4,
|
|
18
|
+
* memory: 4096,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* **Create a class with a vGPU**
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
27
|
+
*
|
|
28
|
+
* const vgpClass = new vsphere.VirtualMachineClass("vgp_class", {
|
|
29
|
+
* name: "vgpu-class",
|
|
30
|
+
* cpus: 4,
|
|
31
|
+
* memory: 4096,
|
|
32
|
+
* memoryReservation: 100,
|
|
33
|
+
* vgpuDevices: ["vgpu1"],
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class VirtualMachineClass extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing VirtualMachineClass resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VirtualMachineClassState, opts?: pulumi.CustomResourceOptions): VirtualMachineClass;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of VirtualMachineClass. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is VirtualMachineClass;
|
|
53
|
+
/**
|
|
54
|
+
* The percentage of the available CPU capacity which will be reserved.
|
|
55
|
+
*/
|
|
56
|
+
readonly cpuReservation: pulumi.Output<number | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* The number of CPUs.
|
|
59
|
+
*/
|
|
60
|
+
readonly cpus: pulumi.Output<number>;
|
|
61
|
+
/**
|
|
62
|
+
* The amount of memory in MB.
|
|
63
|
+
*/
|
|
64
|
+
readonly memory: pulumi.Output<number>;
|
|
65
|
+
/**
|
|
66
|
+
* The percentage of memory reservation.
|
|
67
|
+
*/
|
|
68
|
+
readonly memoryReservation: pulumi.Output<number | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The name for the class.
|
|
71
|
+
*/
|
|
72
|
+
readonly name: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
|
|
75
|
+
*/
|
|
76
|
+
readonly vgpuDevices: pulumi.Output<string[] | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Create a VirtualMachineClass resource with the given unique name, arguments, and options.
|
|
79
|
+
*
|
|
80
|
+
* @param name The _unique_ name of the resource.
|
|
81
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
82
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
83
|
+
*/
|
|
84
|
+
constructor(name: string, args: VirtualMachineClassArgs, opts?: pulumi.CustomResourceOptions);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Input properties used for looking up and filtering VirtualMachineClass resources.
|
|
88
|
+
*/
|
|
89
|
+
export interface VirtualMachineClassState {
|
|
90
|
+
/**
|
|
91
|
+
* The percentage of the available CPU capacity which will be reserved.
|
|
92
|
+
*/
|
|
93
|
+
cpuReservation?: pulumi.Input<number>;
|
|
94
|
+
/**
|
|
95
|
+
* The number of CPUs.
|
|
96
|
+
*/
|
|
97
|
+
cpus?: pulumi.Input<number>;
|
|
98
|
+
/**
|
|
99
|
+
* The amount of memory in MB.
|
|
100
|
+
*/
|
|
101
|
+
memory?: pulumi.Input<number>;
|
|
102
|
+
/**
|
|
103
|
+
* The percentage of memory reservation.
|
|
104
|
+
*/
|
|
105
|
+
memoryReservation?: pulumi.Input<number>;
|
|
106
|
+
/**
|
|
107
|
+
* The name for the class.
|
|
108
|
+
*/
|
|
109
|
+
name?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
|
|
112
|
+
*/
|
|
113
|
+
vgpuDevices?: pulumi.Input<pulumi.Input<string>[]>;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The set of arguments for constructing a VirtualMachineClass resource.
|
|
117
|
+
*/
|
|
118
|
+
export interface VirtualMachineClassArgs {
|
|
119
|
+
/**
|
|
120
|
+
* The percentage of the available CPU capacity which will be reserved.
|
|
121
|
+
*/
|
|
122
|
+
cpuReservation?: pulumi.Input<number>;
|
|
123
|
+
/**
|
|
124
|
+
* The number of CPUs.
|
|
125
|
+
*/
|
|
126
|
+
cpus: pulumi.Input<number>;
|
|
127
|
+
/**
|
|
128
|
+
* The amount of memory in MB.
|
|
129
|
+
*/
|
|
130
|
+
memory: pulumi.Input<number>;
|
|
131
|
+
/**
|
|
132
|
+
* The percentage of memory reservation.
|
|
133
|
+
*/
|
|
134
|
+
memoryReservation?: pulumi.Input<number>;
|
|
135
|
+
/**
|
|
136
|
+
* The name for the class.
|
|
137
|
+
*/
|
|
138
|
+
name?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
|
|
141
|
+
*/
|
|
142
|
+
vgpuDevices?: pulumi.Input<pulumi.Input<string>[]>;
|
|
143
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.VirtualMachineClass = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a resource for configuring a Virtual Machine class.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### S
|
|
14
|
+
*
|
|
15
|
+
* **Create a basic class**
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
20
|
+
*
|
|
21
|
+
* const basicClass = new vsphere.VirtualMachineClass("basic_class", {
|
|
22
|
+
* name: "basic-class",
|
|
23
|
+
* cpus: 4,
|
|
24
|
+
* memory: 4096,
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* **Create a class with a vGPU**
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
33
|
+
*
|
|
34
|
+
* const vgpClass = new vsphere.VirtualMachineClass("vgp_class", {
|
|
35
|
+
* name: "vgpu-class",
|
|
36
|
+
* cpus: 4,
|
|
37
|
+
* memory: 4096,
|
|
38
|
+
* memoryReservation: 100,
|
|
39
|
+
* vgpuDevices: ["vgpu1"],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
class VirtualMachineClass extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing VirtualMachineClass resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name, id, state, opts) {
|
|
54
|
+
return new VirtualMachineClass(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of VirtualMachineClass. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj) {
|
|
61
|
+
if (obj === undefined || obj === null) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
return obj['__pulumiType'] === VirtualMachineClass.__pulumiType;
|
|
65
|
+
}
|
|
66
|
+
constructor(name, argsOrState, opts) {
|
|
67
|
+
let resourceInputs = {};
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
if (opts.id) {
|
|
70
|
+
const state = argsOrState;
|
|
71
|
+
resourceInputs["cpuReservation"] = state ? state.cpuReservation : undefined;
|
|
72
|
+
resourceInputs["cpus"] = state ? state.cpus : undefined;
|
|
73
|
+
resourceInputs["memory"] = state ? state.memory : undefined;
|
|
74
|
+
resourceInputs["memoryReservation"] = state ? state.memoryReservation : undefined;
|
|
75
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
76
|
+
resourceInputs["vgpuDevices"] = state ? state.vgpuDevices : undefined;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
const args = argsOrState;
|
|
80
|
+
if ((!args || args.cpus === undefined) && !opts.urn) {
|
|
81
|
+
throw new Error("Missing required property 'cpus'");
|
|
82
|
+
}
|
|
83
|
+
if ((!args || args.memory === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'memory'");
|
|
85
|
+
}
|
|
86
|
+
resourceInputs["cpuReservation"] = args ? args.cpuReservation : undefined;
|
|
87
|
+
resourceInputs["cpus"] = args ? args.cpus : undefined;
|
|
88
|
+
resourceInputs["memory"] = args ? args.memory : undefined;
|
|
89
|
+
resourceInputs["memoryReservation"] = args ? args.memoryReservation : undefined;
|
|
90
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
91
|
+
resourceInputs["vgpuDevices"] = args ? args.vgpuDevices : undefined;
|
|
92
|
+
}
|
|
93
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
94
|
+
super(VirtualMachineClass.__pulumiType, name, resourceInputs, opts);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.VirtualMachineClass = VirtualMachineClass;
|
|
98
|
+
/** @internal */
|
|
99
|
+
VirtualMachineClass.__pulumiType = 'vsphere:index/virtualMachineClass:VirtualMachineClass';
|
|
100
|
+
//# sourceMappingURL=virtualMachineClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualMachineClass.js","sourceRoot":"","sources":["../virtualMachineClass.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,Y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C,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,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,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAzFL,kDA0FC;AA5EG,gBAAgB;AACO,gCAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -6,7 +6,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* For more information on managing snapshots and how they work in VMware, see
|
|
7
7
|
* [here][ext-vm-snapshot-management].
|
|
8
8
|
*
|
|
9
|
-
* [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/
|
|
9
|
+
* [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-esxi-host-client/GUID-CA948C69-7F58-4519-AEB1-739545EA94E5.html
|
|
10
10
|
*
|
|
11
11
|
* > **NOTE:** A snapshot in VMware differs from traditional disk snapshots, and
|
|
12
12
|
* can contain the actual running state of the virtual machine, data for all disks
|
|
@@ -12,7 +12,7 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* For more information on managing snapshots and how they work in VMware, see
|
|
13
13
|
* [here][ext-vm-snapshot-management].
|
|
14
14
|
*
|
|
15
|
-
* [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/
|
|
15
|
+
* [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-esxi-host-client/GUID-CA948C69-7F58-4519-AEB1-739545EA94E5.html
|
|
16
16
|
*
|
|
17
17
|
* > **NOTE:** A snapshot in VMware differs from traditional disk snapshots, and
|
|
18
18
|
* can contain the actual running state of the virtual machine, data for all disks
|
package/vmStoragePolicy.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ import * as outputs from "./types/output";
|
|
|
119
119
|
* });
|
|
120
120
|
* ```
|
|
121
121
|
*
|
|
122
|
-
*
|
|
122
|
+
* Lastly, when creating a virtual machine resource, a storage policy can be specified to direct virtual machine placement to a datastore which matches the policy's `tagsRules`.
|
|
123
123
|
*
|
|
124
124
|
* ```typescript
|
|
125
125
|
* import * as pulumi from "@pulumi/pulumi";
|
package/vmStoragePolicy.js
CHANGED
|
@@ -123,7 +123,7 @@ const utilities = require("./utilities");
|
|
|
123
123
|
* });
|
|
124
124
|
* ```
|
|
125
125
|
*
|
|
126
|
-
*
|
|
126
|
+
* Lastly, when creating a virtual machine resource, a storage policy can be specified to direct virtual machine placement to a datastore which matches the policy's `tagsRules`.
|
|
127
127
|
*
|
|
128
128
|
* ```typescript
|
|
129
129
|
* import * as pulumi from "@pulumi/pulumi";
|
package/vnic.d.ts
CHANGED
|
@@ -6,38 +6,36 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
-
* ### S
|
|
10
|
-
*
|
|
11
9
|
* ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack
|
|
12
10
|
*
|
|
13
11
|
* ```typescript
|
|
14
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
13
|
* import * as vsphere from "@pulumi/vsphere";
|
|
16
14
|
*
|
|
17
|
-
* const
|
|
18
|
-
* name: "
|
|
15
|
+
* const datacenter = vsphere.getDatacenter({
|
|
16
|
+
* name: "dc-01",
|
|
19
17
|
* });
|
|
20
|
-
* const
|
|
21
|
-
* name: "
|
|
22
|
-
* datacenterId:
|
|
18
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
19
|
+
* name: "esxi-01.example.com",
|
|
20
|
+
* datacenterId: datacenter.id,
|
|
23
21
|
* }));
|
|
24
|
-
* const
|
|
25
|
-
* name: "
|
|
26
|
-
* datacenterId:
|
|
22
|
+
* const vds = new vsphere.DistributedVirtualSwitch("vds", {
|
|
23
|
+
* name: "vds-01",
|
|
24
|
+
* datacenterId: datacenter.then(datacenter => datacenter.id),
|
|
27
25
|
* hosts: [{
|
|
28
|
-
* hostSystemId:
|
|
26
|
+
* hostSystemId: host.then(host => host.id),
|
|
29
27
|
* devices: ["vnic3"],
|
|
30
28
|
* }],
|
|
31
29
|
* });
|
|
32
|
-
* const
|
|
33
|
-
* name: "
|
|
30
|
+
* const pg = new vsphere.DistributedPortGroup("pg", {
|
|
31
|
+
* name: "pg-01",
|
|
34
32
|
* vlanId: 1234,
|
|
35
|
-
* distributedVirtualSwitchUuid:
|
|
33
|
+
* distributedVirtualSwitchUuid: vds.id,
|
|
36
34
|
* });
|
|
37
|
-
* const
|
|
38
|
-
* host:
|
|
39
|
-
* distributedSwitchPort:
|
|
40
|
-
* distributedPortGroup:
|
|
35
|
+
* const vnic = new vsphere.Vnic("vnic", {
|
|
36
|
+
* host: host.then(host => host.id),
|
|
37
|
+
* distributedSwitchPort: vds.id,
|
|
38
|
+
* distributedPortGroup: pg.id,
|
|
41
39
|
* ipv4: {
|
|
42
40
|
* dhcp: true,
|
|
43
41
|
* },
|
|
@@ -51,16 +49,16 @@ import * as outputs from "./types/output";
|
|
|
51
49
|
* import * as pulumi from "@pulumi/pulumi";
|
|
52
50
|
* import * as vsphere from "@pulumi/vsphere";
|
|
53
51
|
*
|
|
54
|
-
* const
|
|
55
|
-
* name: "
|
|
52
|
+
* const datacenter = vsphere.getDatacenter({
|
|
53
|
+
* name: "dc-01",
|
|
56
54
|
* });
|
|
57
|
-
* const
|
|
58
|
-
* name: "
|
|
59
|
-
* datacenterId:
|
|
55
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
56
|
+
* name: "esxi-01.example.com",
|
|
57
|
+
* datacenterId: datacenter.id,
|
|
60
58
|
* }));
|
|
61
|
-
* const
|
|
62
|
-
* name: "
|
|
63
|
-
* hostSystemId:
|
|
59
|
+
* const hvs = new vsphere.HostVirtualSwitch("hvs", {
|
|
60
|
+
* name: "hvs-01",
|
|
61
|
+
* hostSystemId: host.then(host => host.id),
|
|
64
62
|
* networkAdapters: [
|
|
65
63
|
* "vmnic3",
|
|
66
64
|
* "vmnic4",
|
|
@@ -68,14 +66,14 @@ import * as outputs from "./types/output";
|
|
|
68
66
|
* activeNics: ["vmnic3"],
|
|
69
67
|
* standbyNics: ["vmnic4"],
|
|
70
68
|
* });
|
|
71
|
-
* const
|
|
72
|
-
* name: "
|
|
73
|
-
* virtualSwitchName:
|
|
74
|
-
* hostSystemId:
|
|
69
|
+
* const pg = new vsphere.HostPortGroup("pg", {
|
|
70
|
+
* name: "pg-01",
|
|
71
|
+
* virtualSwitchName: hvs.name,
|
|
72
|
+
* hostSystemId: host.then(host => host.id),
|
|
75
73
|
* });
|
|
76
|
-
* const
|
|
77
|
-
* host:
|
|
78
|
-
* portgroup:
|
|
74
|
+
* const vnic = new vsphere.Vnic("vnic", {
|
|
75
|
+
* host: host.then(host => host.id),
|
|
76
|
+
* portgroup: pg.name,
|
|
79
77
|
* ipv4: {
|
|
80
78
|
* dhcp: true,
|
|
81
79
|
* },
|
|
@@ -116,7 +114,7 @@ export declare class Vnic extends pulumi.CustomResource {
|
|
|
116
114
|
*/
|
|
117
115
|
readonly distributedPortGroup: pulumi.Output<string | undefined>;
|
|
118
116
|
/**
|
|
119
|
-
* UUID of the
|
|
117
|
+
* UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
120
118
|
*/
|
|
121
119
|
readonly distributedSwitchPort: pulumi.Output<string | undefined>;
|
|
122
120
|
/**
|
|
@@ -169,7 +167,7 @@ export interface VnicState {
|
|
|
169
167
|
*/
|
|
170
168
|
distributedPortGroup?: pulumi.Input<string>;
|
|
171
169
|
/**
|
|
172
|
-
* UUID of the
|
|
170
|
+
* UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
173
171
|
*/
|
|
174
172
|
distributedSwitchPort?: pulumi.Input<string>;
|
|
175
173
|
/**
|
|
@@ -214,7 +212,7 @@ export interface VnicArgs {
|
|
|
214
212
|
*/
|
|
215
213
|
distributedPortGroup?: pulumi.Input<string>;
|
|
216
214
|
/**
|
|
217
|
-
* UUID of the
|
|
215
|
+
* UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
|
|
218
216
|
*/
|
|
219
217
|
distributedSwitchPort?: pulumi.Input<string>;
|
|
220
218
|
/**
|
package/vnic.js
CHANGED
|
@@ -10,38 +10,36 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
-
* ### S
|
|
14
|
-
*
|
|
15
13
|
* ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack
|
|
16
14
|
*
|
|
17
15
|
* ```typescript
|
|
18
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
17
|
* import * as vsphere from "@pulumi/vsphere";
|
|
20
18
|
*
|
|
21
|
-
* const
|
|
22
|
-
* name: "
|
|
19
|
+
* const datacenter = vsphere.getDatacenter({
|
|
20
|
+
* name: "dc-01",
|
|
23
21
|
* });
|
|
24
|
-
* const
|
|
25
|
-
* name: "
|
|
26
|
-
* datacenterId:
|
|
22
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
23
|
+
* name: "esxi-01.example.com",
|
|
24
|
+
* datacenterId: datacenter.id,
|
|
27
25
|
* }));
|
|
28
|
-
* const
|
|
29
|
-
* name: "
|
|
30
|
-
* datacenterId:
|
|
26
|
+
* const vds = new vsphere.DistributedVirtualSwitch("vds", {
|
|
27
|
+
* name: "vds-01",
|
|
28
|
+
* datacenterId: datacenter.then(datacenter => datacenter.id),
|
|
31
29
|
* hosts: [{
|
|
32
|
-
* hostSystemId:
|
|
30
|
+
* hostSystemId: host.then(host => host.id),
|
|
33
31
|
* devices: ["vnic3"],
|
|
34
32
|
* }],
|
|
35
33
|
* });
|
|
36
|
-
* const
|
|
37
|
-
* name: "
|
|
34
|
+
* const pg = new vsphere.DistributedPortGroup("pg", {
|
|
35
|
+
* name: "pg-01",
|
|
38
36
|
* vlanId: 1234,
|
|
39
|
-
* distributedVirtualSwitchUuid:
|
|
37
|
+
* distributedVirtualSwitchUuid: vds.id,
|
|
40
38
|
* });
|
|
41
|
-
* const
|
|
42
|
-
* host:
|
|
43
|
-
* distributedSwitchPort:
|
|
44
|
-
* distributedPortGroup:
|
|
39
|
+
* const vnic = new vsphere.Vnic("vnic", {
|
|
40
|
+
* host: host.then(host => host.id),
|
|
41
|
+
* distributedSwitchPort: vds.id,
|
|
42
|
+
* distributedPortGroup: pg.id,
|
|
45
43
|
* ipv4: {
|
|
46
44
|
* dhcp: true,
|
|
47
45
|
* },
|
|
@@ -55,16 +53,16 @@ const utilities = require("./utilities");
|
|
|
55
53
|
* import * as pulumi from "@pulumi/pulumi";
|
|
56
54
|
* import * as vsphere from "@pulumi/vsphere";
|
|
57
55
|
*
|
|
58
|
-
* const
|
|
59
|
-
* name: "
|
|
56
|
+
* const datacenter = vsphere.getDatacenter({
|
|
57
|
+
* name: "dc-01",
|
|
60
58
|
* });
|
|
61
|
-
* const
|
|
62
|
-
* name: "
|
|
63
|
-
* datacenterId:
|
|
59
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
60
|
+
* name: "esxi-01.example.com",
|
|
61
|
+
* datacenterId: datacenter.id,
|
|
64
62
|
* }));
|
|
65
|
-
* const
|
|
66
|
-
* name: "
|
|
67
|
-
* hostSystemId:
|
|
63
|
+
* const hvs = new vsphere.HostVirtualSwitch("hvs", {
|
|
64
|
+
* name: "hvs-01",
|
|
65
|
+
* hostSystemId: host.then(host => host.id),
|
|
68
66
|
* networkAdapters: [
|
|
69
67
|
* "vmnic3",
|
|
70
68
|
* "vmnic4",
|
|
@@ -72,14 +70,14 @@ const utilities = require("./utilities");
|
|
|
72
70
|
* activeNics: ["vmnic3"],
|
|
73
71
|
* standbyNics: ["vmnic4"],
|
|
74
72
|
* });
|
|
75
|
-
* const
|
|
76
|
-
* name: "
|
|
77
|
-
* virtualSwitchName:
|
|
78
|
-
* hostSystemId:
|
|
73
|
+
* const pg = new vsphere.HostPortGroup("pg", {
|
|
74
|
+
* name: "pg-01",
|
|
75
|
+
* virtualSwitchName: hvs.name,
|
|
76
|
+
* hostSystemId: host.then(host => host.id),
|
|
79
77
|
* });
|
|
80
|
-
* const
|
|
81
|
-
* host:
|
|
82
|
-
* portgroup:
|
|
78
|
+
* const vnic = new vsphere.Vnic("vnic", {
|
|
79
|
+
* host: host.then(host => host.id),
|
|
80
|
+
* portgroup: pg.name,
|
|
83
81
|
* ipv4: {
|
|
84
82
|
* dhcp: true,
|
|
85
83
|
* },
|
package/vnic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vnic.js","sourceRoot":"","sources":["../vnic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"vnic.js","sourceRoot":"","sources":["../vnic.ts"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
-
"keywords": [
|
|
6
|
-
"pulumi",
|
|
7
|
-
"vsphere"
|
|
8
|
-
],
|
|
9
|
-
"homepage": "https://pulumi.io",
|
|
10
|
-
"repository": "https://github.com/pulumi/pulumi-vsphere",
|
|
11
|
-
"license": "Apache-2.0",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@pulumi/pulumi": "^3.0.0",
|
|
17
|
-
"builtin-modules": "3.0.0",
|
|
18
|
-
"read-package-tree": "^5.2.1",
|
|
19
|
-
"resolve": "^1.8.1"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@types/node": "^10.9.2",
|
|
23
|
-
"typescript": "^4.3.5"
|
|
24
|
-
},
|
|
25
|
-
"pulumi": {
|
|
26
|
-
"resource": true,
|
|
27
|
-
"name": "vsphere"
|
|
28
|
-
}
|
|
29
|
-
}
|