@pulumi/vsphere 4.19.0-alpha.1793836735 → 4.19.0
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/getContentLibraryItems.d.ts +250 -0
- package/getContentLibraryItems.d.ts.map +1 -0
- package/getContentLibraryItems.js +197 -0
- package/getContentLibraryItems.js.map +1 -0
- package/getNamespace.d.ts +59 -8
- package/getNamespace.d.ts.map +1 -1
- package/getNamespace.js +20 -4
- package/getNamespace.js.map +1 -1
- package/getSupervisor.d.ts +161 -0
- package/getSupervisor.d.ts.map +1 -0
- package/getSupervisor.js +131 -0
- package/getSupervisor.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +9 -3
- package/index.js.map +1 -1
- package/namespace.d.ts +133 -14
- package/namespace.d.ts.map +1 -1
- package/namespace.js +53 -2
- package/namespace.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +124 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +278 -0
- package/types/output.d.ts.map +1 -1
package/namespace.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as outputs from "./types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* ### S
|
|
10
10
|
*
|
|
11
|
-
* ### Create a
|
|
11
|
+
* ### Create a Namespace
|
|
12
12
|
*
|
|
13
13
|
* ```typescript
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -21,9 +21,50 @@ import * as outputs from "./types/output";
|
|
|
21
21
|
* contentLibraries: ["ca616f93-506d-4f00-98bf-7708d30f68bc"],
|
|
22
22
|
* vmClasses: ["example-vm-class"],
|
|
23
23
|
* }],
|
|
24
|
-
* storagePolicies: [
|
|
24
|
+
* storagePolicies: [{
|
|
25
|
+
* policy: "1bb87d1e-49a5-49f8-ad4a-7094be13d4a0",
|
|
26
|
+
* limit: 102400,
|
|
27
|
+
* }],
|
|
28
|
+
* users: [{
|
|
29
|
+
* name: "administrator",
|
|
30
|
+
* domain: "vsphere.local",
|
|
31
|
+
* role: "OWNER",
|
|
32
|
+
* }],
|
|
33
|
+
* groups: [{
|
|
34
|
+
* name: "developers",
|
|
35
|
+
* domain: "vsphere.local",
|
|
36
|
+
* role: "EDIT",
|
|
37
|
+
* }],
|
|
38
|
+
* zones: [{
|
|
39
|
+
* name: "zone-1",
|
|
40
|
+
* cpuLimit: 4000,
|
|
41
|
+
* cpuReservation: 1000,
|
|
42
|
+
* memoryLimit: 8192,
|
|
43
|
+
* memoryReservation: 2048,
|
|
44
|
+
* vmClassReservations: [{
|
|
45
|
+
* vmClass: "example-vm-class",
|
|
46
|
+
* count: 2,
|
|
47
|
+
* }],
|
|
48
|
+
* }],
|
|
49
|
+
* vpcNetwork: {
|
|
50
|
+
* vpc: "/orgs/default/projects/example-project/vpcs/example-vpc",
|
|
51
|
+
* },
|
|
25
52
|
* });
|
|
26
53
|
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Import
|
|
56
|
+
*
|
|
57
|
+
* An existing vSphere Namespace can be imported into this resource by supplying
|
|
58
|
+
* its name:
|
|
59
|
+
*
|
|
60
|
+
* ```sh
|
|
61
|
+
* $ pulumi import vsphere:index/namespace:Namespace example example-namespace
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* > **NOTE:** vCenter does not return the zone limits, reservations,
|
|
65
|
+
* `vmClassReservation` or `disallowUnreservedDirectPathUsage`, so they are not
|
|
66
|
+
* populated by an import. If they are set in the configuration, the next apply
|
|
67
|
+
* updates the vSphere Namespace in place to match.
|
|
27
68
|
*/
|
|
28
69
|
export declare class Namespace extends pulumi.CustomResource {
|
|
29
70
|
/**
|
|
@@ -50,21 +91,47 @@ export declare class Namespace extends pulumi.CustomResource {
|
|
|
50
91
|
*/
|
|
51
92
|
static isInstance(obj: any): obj is Namespace;
|
|
52
93
|
/**
|
|
53
|
-
*
|
|
94
|
+
* A group with access to the vSphere Namespace.
|
|
95
|
+
*/
|
|
96
|
+
readonly groups: pulumi.Output<outputs.NamespaceGroup[] | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* The name of the vSphere Namespace. Changing this forces a new resource to be created.
|
|
54
99
|
*/
|
|
55
100
|
readonly name: pulumi.Output<string>;
|
|
56
101
|
/**
|
|
57
|
-
*
|
|
102
|
+
* A storage policy that will be available in the vSphere Namespace.
|
|
58
103
|
*/
|
|
59
|
-
readonly storagePolicies: pulumi.Output<
|
|
104
|
+
readonly storagePolicies: pulumi.Output<outputs.NamespaceStoragePolicy[] | undefined>;
|
|
60
105
|
/**
|
|
61
|
-
* The identifier of the vSphere Supervisor managing the
|
|
106
|
+
* The identifier of the vSphere Supervisor managing the vSphere Namespace. Changing this forces a new resource to be created.
|
|
62
107
|
*/
|
|
63
108
|
readonly supervisor: pulumi.Output<string>;
|
|
109
|
+
/**
|
|
110
|
+
* A user with access to the vSphere Namespace.
|
|
111
|
+
*/
|
|
112
|
+
readonly users: pulumi.Output<outputs.NamespaceUser[] | undefined>;
|
|
64
113
|
/**
|
|
65
114
|
* The configuration for VM Service in the vSphere Namespace.
|
|
66
115
|
*/
|
|
67
116
|
readonly vmServices: pulumi.Output<outputs.NamespaceVmService[] | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* The NSX VPC network configuration. Conflicts with `vsphere.getNetwork`. If omitted, the Supervisor creates a VPC with its default settings for the vSphere Namespace, and its network configuration is exported. To customize the VPC, manage it with the NSX Terraform provider and set its path in `vpc`.
|
|
119
|
+
*
|
|
120
|
+
* > **NOTE:** Requires vCenter 9.0.0 or later.
|
|
121
|
+
*/
|
|
122
|
+
readonly vpcNetwork: pulumi.Output<outputs.NamespaceVpcNetwork>;
|
|
123
|
+
/**
|
|
124
|
+
* The vSphere networking configuration. Conflicts with `vpcNetwork`. If omitted, the network configuration chosen by the Supervisor is exported. See vSphere Networking.
|
|
125
|
+
*
|
|
126
|
+
* > **NOTE:** Requires vCenter 9.1.0 or later.
|
|
127
|
+
*/
|
|
128
|
+
readonly vsphereNetwork: pulumi.Output<outputs.NamespaceVsphereNetwork>;
|
|
129
|
+
/**
|
|
130
|
+
* A vSphere Zone to associate with the vSphere Namespace. See Zone.
|
|
131
|
+
*
|
|
132
|
+
* > **NOTE:** Requires vCenter 9.0.0 or later.
|
|
133
|
+
*/
|
|
134
|
+
readonly zones: pulumi.Output<outputs.NamespaceZone[]>;
|
|
68
135
|
/**
|
|
69
136
|
* Create a Namespace resource with the given unique name, arguments, and options.
|
|
70
137
|
*
|
|
@@ -79,41 +146,93 @@ export declare class Namespace extends pulumi.CustomResource {
|
|
|
79
146
|
*/
|
|
80
147
|
export interface NamespaceState {
|
|
81
148
|
/**
|
|
82
|
-
*
|
|
149
|
+
* A group with access to the vSphere Namespace.
|
|
150
|
+
*/
|
|
151
|
+
groups?: pulumi.Input<pulumi.Input<inputs.NamespaceGroup>[] | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* The name of the vSphere Namespace. Changing this forces a new resource to be created.
|
|
83
154
|
*/
|
|
84
155
|
name?: pulumi.Input<string | undefined>;
|
|
85
156
|
/**
|
|
86
|
-
*
|
|
157
|
+
* A storage policy that will be available in the vSphere Namespace.
|
|
87
158
|
*/
|
|
88
|
-
storagePolicies?: pulumi.Input<pulumi.Input<
|
|
159
|
+
storagePolicies?: pulumi.Input<pulumi.Input<inputs.NamespaceStoragePolicy>[] | undefined>;
|
|
89
160
|
/**
|
|
90
|
-
* The identifier of the vSphere Supervisor managing the
|
|
161
|
+
* The identifier of the vSphere Supervisor managing the vSphere Namespace. Changing this forces a new resource to be created.
|
|
91
162
|
*/
|
|
92
163
|
supervisor?: pulumi.Input<string | undefined>;
|
|
164
|
+
/**
|
|
165
|
+
* A user with access to the vSphere Namespace.
|
|
166
|
+
*/
|
|
167
|
+
users?: pulumi.Input<pulumi.Input<inputs.NamespaceUser>[] | undefined>;
|
|
93
168
|
/**
|
|
94
169
|
* The configuration for VM Service in the vSphere Namespace.
|
|
95
170
|
*/
|
|
96
171
|
vmServices?: pulumi.Input<pulumi.Input<inputs.NamespaceVmService>[] | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* The NSX VPC network configuration. Conflicts with `vsphere.getNetwork`. If omitted, the Supervisor creates a VPC with its default settings for the vSphere Namespace, and its network configuration is exported. To customize the VPC, manage it with the NSX Terraform provider and set its path in `vpc`.
|
|
174
|
+
*
|
|
175
|
+
* > **NOTE:** Requires vCenter 9.0.0 or later.
|
|
176
|
+
*/
|
|
177
|
+
vpcNetwork?: pulumi.Input<inputs.NamespaceVpcNetwork | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* The vSphere networking configuration. Conflicts with `vpcNetwork`. If omitted, the network configuration chosen by the Supervisor is exported. See vSphere Networking.
|
|
180
|
+
*
|
|
181
|
+
* > **NOTE:** Requires vCenter 9.1.0 or later.
|
|
182
|
+
*/
|
|
183
|
+
vsphereNetwork?: pulumi.Input<inputs.NamespaceVsphereNetwork | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* A vSphere Zone to associate with the vSphere Namespace. See Zone.
|
|
186
|
+
*
|
|
187
|
+
* > **NOTE:** Requires vCenter 9.0.0 or later.
|
|
188
|
+
*/
|
|
189
|
+
zones?: pulumi.Input<pulumi.Input<inputs.NamespaceZone>[] | undefined>;
|
|
97
190
|
}
|
|
98
191
|
/**
|
|
99
192
|
* The set of arguments for constructing a Namespace resource.
|
|
100
193
|
*/
|
|
101
194
|
export interface NamespaceArgs {
|
|
102
195
|
/**
|
|
103
|
-
*
|
|
196
|
+
* A group with access to the vSphere Namespace.
|
|
197
|
+
*/
|
|
198
|
+
groups?: pulumi.Input<pulumi.Input<inputs.NamespaceGroup>[] | undefined>;
|
|
199
|
+
/**
|
|
200
|
+
* The name of the vSphere Namespace. Changing this forces a new resource to be created.
|
|
104
201
|
*/
|
|
105
202
|
name?: pulumi.Input<string | undefined>;
|
|
106
203
|
/**
|
|
107
|
-
*
|
|
204
|
+
* A storage policy that will be available in the vSphere Namespace.
|
|
108
205
|
*/
|
|
109
|
-
storagePolicies?: pulumi.Input<pulumi.Input<
|
|
206
|
+
storagePolicies?: pulumi.Input<pulumi.Input<inputs.NamespaceStoragePolicy>[] | undefined>;
|
|
110
207
|
/**
|
|
111
|
-
* The identifier of the vSphere Supervisor managing the
|
|
208
|
+
* The identifier of the vSphere Supervisor managing the vSphere Namespace. Changing this forces a new resource to be created.
|
|
112
209
|
*/
|
|
113
210
|
supervisor: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* A user with access to the vSphere Namespace.
|
|
213
|
+
*/
|
|
214
|
+
users?: pulumi.Input<pulumi.Input<inputs.NamespaceUser>[] | undefined>;
|
|
114
215
|
/**
|
|
115
216
|
* The configuration for VM Service in the vSphere Namespace.
|
|
116
217
|
*/
|
|
117
218
|
vmServices?: pulumi.Input<pulumi.Input<inputs.NamespaceVmService>[] | undefined>;
|
|
219
|
+
/**
|
|
220
|
+
* The NSX VPC network configuration. Conflicts with `vsphere.getNetwork`. If omitted, the Supervisor creates a VPC with its default settings for the vSphere Namespace, and its network configuration is exported. To customize the VPC, manage it with the NSX Terraform provider and set its path in `vpc`.
|
|
221
|
+
*
|
|
222
|
+
* > **NOTE:** Requires vCenter 9.0.0 or later.
|
|
223
|
+
*/
|
|
224
|
+
vpcNetwork?: pulumi.Input<inputs.NamespaceVpcNetwork | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* The vSphere networking configuration. Conflicts with `vpcNetwork`. If omitted, the network configuration chosen by the Supervisor is exported. See vSphere Networking.
|
|
227
|
+
*
|
|
228
|
+
* > **NOTE:** Requires vCenter 9.1.0 or later.
|
|
229
|
+
*/
|
|
230
|
+
vsphereNetwork?: pulumi.Input<inputs.NamespaceVsphereNetwork | undefined>;
|
|
231
|
+
/**
|
|
232
|
+
* A vSphere Zone to associate with the vSphere Namespace. See Zone.
|
|
233
|
+
*
|
|
234
|
+
* > **NOTE:** Requires vCenter 9.0.0 or later.
|
|
235
|
+
*/
|
|
236
|
+
zones?: pulumi.Input<pulumi.Input<inputs.NamespaceZone>[] | undefined>;
|
|
118
237
|
}
|
|
119
238
|
//# sourceMappingURL=namespace.d.ts.map
|
package/namespace.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../namespace.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../namespace.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,qBAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,SAAS;IAIpI;;;;;;OAMG;WACW,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;IAOnI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,SAAS;IAOpD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,E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,SAAS,CAAC,CAAC;IAC1F;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACjF;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAClE;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAC;IAC1E;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC1E"}
|
package/namespace.js
CHANGED
|
@@ -35,7 +35,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
35
35
|
*
|
|
36
36
|
* ### S
|
|
37
37
|
*
|
|
38
|
-
* ### Create a
|
|
38
|
+
* ### Create a Namespace
|
|
39
39
|
*
|
|
40
40
|
* ```typescript
|
|
41
41
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -48,9 +48,50 @@ const utilities = __importStar(require("./utilities"));
|
|
|
48
48
|
* contentLibraries: ["ca616f93-506d-4f00-98bf-7708d30f68bc"],
|
|
49
49
|
* vmClasses: ["example-vm-class"],
|
|
50
50
|
* }],
|
|
51
|
-
* storagePolicies: [
|
|
51
|
+
* storagePolicies: [{
|
|
52
|
+
* policy: "1bb87d1e-49a5-49f8-ad4a-7094be13d4a0",
|
|
53
|
+
* limit: 102400,
|
|
54
|
+
* }],
|
|
55
|
+
* users: [{
|
|
56
|
+
* name: "administrator",
|
|
57
|
+
* domain: "vsphere.local",
|
|
58
|
+
* role: "OWNER",
|
|
59
|
+
* }],
|
|
60
|
+
* groups: [{
|
|
61
|
+
* name: "developers",
|
|
62
|
+
* domain: "vsphere.local",
|
|
63
|
+
* role: "EDIT",
|
|
64
|
+
* }],
|
|
65
|
+
* zones: [{
|
|
66
|
+
* name: "zone-1",
|
|
67
|
+
* cpuLimit: 4000,
|
|
68
|
+
* cpuReservation: 1000,
|
|
69
|
+
* memoryLimit: 8192,
|
|
70
|
+
* memoryReservation: 2048,
|
|
71
|
+
* vmClassReservations: [{
|
|
72
|
+
* vmClass: "example-vm-class",
|
|
73
|
+
* count: 2,
|
|
74
|
+
* }],
|
|
75
|
+
* }],
|
|
76
|
+
* vpcNetwork: {
|
|
77
|
+
* vpc: "/orgs/default/projects/example-project/vpcs/example-vpc",
|
|
78
|
+
* },
|
|
52
79
|
* });
|
|
53
80
|
* ```
|
|
81
|
+
*
|
|
82
|
+
* ## Import
|
|
83
|
+
*
|
|
84
|
+
* An existing vSphere Namespace can be imported into this resource by supplying
|
|
85
|
+
* its name:
|
|
86
|
+
*
|
|
87
|
+
* ```sh
|
|
88
|
+
* $ pulumi import vsphere:index/namespace:Namespace example example-namespace
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* > **NOTE:** vCenter does not return the zone limits, reservations,
|
|
92
|
+
* `vmClassReservation` or `disallowUnreservedDirectPathUsage`, so they are not
|
|
93
|
+
* populated by an import. If they are set in the configuration, the next apply
|
|
94
|
+
* updates the vSphere Namespace in place to match.
|
|
54
95
|
*/
|
|
55
96
|
class Namespace extends pulumi.CustomResource {
|
|
56
97
|
/**
|
|
@@ -92,20 +133,30 @@ class Namespace extends pulumi.CustomResource {
|
|
|
92
133
|
opts = opts || {};
|
|
93
134
|
if (opts.id) {
|
|
94
135
|
const state = argsOrState;
|
|
136
|
+
resourceInputs["groups"] = state?.groups;
|
|
95
137
|
resourceInputs["name"] = state?.name;
|
|
96
138
|
resourceInputs["storagePolicies"] = state?.storagePolicies;
|
|
97
139
|
resourceInputs["supervisor"] = state?.supervisor;
|
|
140
|
+
resourceInputs["users"] = state?.users;
|
|
98
141
|
resourceInputs["vmServices"] = state?.vmServices;
|
|
142
|
+
resourceInputs["vpcNetwork"] = state?.vpcNetwork;
|
|
143
|
+
resourceInputs["vsphereNetwork"] = state?.vsphereNetwork;
|
|
144
|
+
resourceInputs["zones"] = state?.zones;
|
|
99
145
|
}
|
|
100
146
|
else {
|
|
101
147
|
const args = argsOrState;
|
|
102
148
|
if (args?.supervisor === undefined && !opts.urn) {
|
|
103
149
|
throw new Error("Missing required property 'supervisor'");
|
|
104
150
|
}
|
|
151
|
+
resourceInputs["groups"] = args?.groups;
|
|
105
152
|
resourceInputs["name"] = args?.name;
|
|
106
153
|
resourceInputs["storagePolicies"] = args?.storagePolicies;
|
|
107
154
|
resourceInputs["supervisor"] = args?.supervisor;
|
|
155
|
+
resourceInputs["users"] = args?.users;
|
|
108
156
|
resourceInputs["vmServices"] = args?.vmServices;
|
|
157
|
+
resourceInputs["vpcNetwork"] = args?.vpcNetwork;
|
|
158
|
+
resourceInputs["vsphereNetwork"] = args?.vsphereNetwork;
|
|
159
|
+
resourceInputs["zones"] = args?.zones;
|
|
109
160
|
}
|
|
110
161
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
111
162
|
super(Namespace.__pulumiType, name, resourceInputs, opts);
|
package/namespace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.js","sourceRoot":"","sources":["../namespace.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"namespace.js","sourceRoot":"","sources":["../namespace.ts"],"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,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAzHL,8BA0HC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/vsphere",
|
|
3
|
-
"version": "4.19.0
|
|
3
|
+
"version": "4.19.0",
|
|
4
4
|
"description": "A Pulumi package for creating vsphere resources",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"pulumi": {
|
|
23
23
|
"resource": true,
|
|
24
24
|
"name": "vsphere",
|
|
25
|
-
"version": "4.19.0
|
|
25
|
+
"version": "4.19.0"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/types/input.d.ts
CHANGED
|
@@ -670,6 +670,52 @@ export interface HostServiceNtpd {
|
|
|
670
670
|
*/
|
|
671
671
|
policy?: pulumi.Input<string | undefined>;
|
|
672
672
|
}
|
|
673
|
+
export interface NamespaceGroup {
|
|
674
|
+
/**
|
|
675
|
+
* The domain of the identity source that owns the group.
|
|
676
|
+
*/
|
|
677
|
+
domain: pulumi.Input<string>;
|
|
678
|
+
/**
|
|
679
|
+
* The identifier of the identity provider. If unset, vCenter Single Sign-On is used.
|
|
680
|
+
*/
|
|
681
|
+
identityProvider?: pulumi.Input<string | undefined>;
|
|
682
|
+
/**
|
|
683
|
+
* The name of the group, without the domain.
|
|
684
|
+
*/
|
|
685
|
+
name: pulumi.Input<string>;
|
|
686
|
+
/**
|
|
687
|
+
* The role of the group in the vSphere Namespace. One of `OWNER`, `EDIT` or `VIEW`.
|
|
688
|
+
*/
|
|
689
|
+
role: pulumi.Input<string>;
|
|
690
|
+
}
|
|
691
|
+
export interface NamespaceStoragePolicy {
|
|
692
|
+
/**
|
|
693
|
+
* The maximum storage, in mebibytes (MiB), that the vSphere Namespace can use for the storage policy. Unset or `0` means no limit.
|
|
694
|
+
*/
|
|
695
|
+
limit?: pulumi.Input<number | undefined>;
|
|
696
|
+
/**
|
|
697
|
+
* The identifier of the storage policy.
|
|
698
|
+
*/
|
|
699
|
+
policy: pulumi.Input<string>;
|
|
700
|
+
}
|
|
701
|
+
export interface NamespaceUser {
|
|
702
|
+
/**
|
|
703
|
+
* The domain of the identity source that owns the user.
|
|
704
|
+
*/
|
|
705
|
+
domain: pulumi.Input<string>;
|
|
706
|
+
/**
|
|
707
|
+
* The identifier of the identity provider. If unset, vCenter Single Sign-On is used.
|
|
708
|
+
*/
|
|
709
|
+
identityProvider?: pulumi.Input<string | undefined>;
|
|
710
|
+
/**
|
|
711
|
+
* The name of the user, without the domain.
|
|
712
|
+
*/
|
|
713
|
+
name: pulumi.Input<string>;
|
|
714
|
+
/**
|
|
715
|
+
* The role of the user in the vSphere Namespace. One of `OWNER`, `EDIT` or `VIEW`.
|
|
716
|
+
*/
|
|
717
|
+
role: pulumi.Input<string>;
|
|
718
|
+
}
|
|
673
719
|
export interface NamespaceVmService {
|
|
674
720
|
/**
|
|
675
721
|
* The list of content libraries to associate with the VM Service.
|
|
@@ -680,6 +726,84 @@ export interface NamespaceVmService {
|
|
|
680
726
|
*/
|
|
681
727
|
vmClasses?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
682
728
|
}
|
|
729
|
+
export interface NamespaceVpcNetwork {
|
|
730
|
+
/**
|
|
731
|
+
* An NSX subnet created outside the Supervisor to associate with the vSphere Namespace.
|
|
732
|
+
*
|
|
733
|
+
* > **NOTE:** Requires vCenter 9.1.0 or later. `podDefault` and `vmDefault` require vCenter 9.1.1 or later.
|
|
734
|
+
*/
|
|
735
|
+
sharedSubnets?: pulumi.Input<pulumi.Input<inputs.NamespaceVpcNetworkSharedSubnet>[] | undefined>;
|
|
736
|
+
/**
|
|
737
|
+
* The NSX path of an existing VPC, for example `/orgs/default/projects/<project>/vpcs/<vpc>`. Changing this forces a new resource to be created.
|
|
738
|
+
*/
|
|
739
|
+
vpc: pulumi.Input<string>;
|
|
740
|
+
}
|
|
741
|
+
export interface NamespaceVpcNetworkSharedSubnet {
|
|
742
|
+
/**
|
|
743
|
+
* The NSX path of the subnet.
|
|
744
|
+
*/
|
|
745
|
+
path: pulumi.Input<string>;
|
|
746
|
+
/**
|
|
747
|
+
* Whether the subnet is the default network for vSphere Pods.
|
|
748
|
+
*/
|
|
749
|
+
podDefault?: pulumi.Input<boolean | undefined>;
|
|
750
|
+
/**
|
|
751
|
+
* Whether the subnet is the default network for VMs.
|
|
752
|
+
*/
|
|
753
|
+
vmDefault?: pulumi.Input<boolean | undefined>;
|
|
754
|
+
}
|
|
755
|
+
export interface NamespaceVsphereNetwork {
|
|
756
|
+
/**
|
|
757
|
+
* The name of the Supervisor network used by workloads that do not specify a network. It must be one of `networks`. Changing this forces a new resource to be created.
|
|
758
|
+
*/
|
|
759
|
+
defaultWorkloadNetwork: pulumi.Input<string>;
|
|
760
|
+
/**
|
|
761
|
+
* The names of the Supervisor networks to associate with the vSphere Namespace, including `defaultWorkloadNetwork`. These are Supervisor network names, not port group IDs. See the `workloadNetwork` attribute of the [`vsphere.Supervisor`](https://www.terraform.io/docs/providers/vsphere/d/supervisor.html) data source.
|
|
762
|
+
*
|
|
763
|
+
* > **NOTE:** In v2.18.0, `storagePolicy` superseded the `storagePolicies` argument. To upgrade, replace
|
|
764
|
+
*/
|
|
765
|
+
networks: pulumi.Input<pulumi.Input<string>[]>;
|
|
766
|
+
}
|
|
767
|
+
export interface NamespaceZone {
|
|
768
|
+
/**
|
|
769
|
+
* The CPU limit, in megahertz (MHz), for the vSphere Namespace in the zone. Unset or `0` means no zone limit.
|
|
770
|
+
*/
|
|
771
|
+
cpuLimit?: pulumi.Input<number | undefined>;
|
|
772
|
+
/**
|
|
773
|
+
* The CPU reservation, in megahertz (MHz), for the vSphere Namespace in the zone. Unset or `0` means no reservation.
|
|
774
|
+
*/
|
|
775
|
+
cpuReservation?: pulumi.Input<number | undefined>;
|
|
776
|
+
/**
|
|
777
|
+
* Whether workloads that do not use a reserved VM class are disallowed from using a DirectPath device. Defaults to `false`.
|
|
778
|
+
*/
|
|
779
|
+
disallowUnreservedDirectPathUsage?: pulumi.Input<boolean | undefined>;
|
|
780
|
+
/**
|
|
781
|
+
* The memory limit, in mebibytes (MiB), for the vSphere Namespace in the zone. Unset or `0` means no zone limit.
|
|
782
|
+
*/
|
|
783
|
+
memoryLimit?: pulumi.Input<number | undefined>;
|
|
784
|
+
/**
|
|
785
|
+
* The memory reservation, in mebibytes (MiB), for the vSphere Namespace in the zone. Unset or `0` means no reservation.
|
|
786
|
+
*/
|
|
787
|
+
memoryReservation?: pulumi.Input<number | undefined>;
|
|
788
|
+
/**
|
|
789
|
+
* The identifier of the vSphere Zone.
|
|
790
|
+
*/
|
|
791
|
+
name: pulumi.Input<string>;
|
|
792
|
+
/**
|
|
793
|
+
* A reservation of VM class instances for the vSphere Namespace in the zone.
|
|
794
|
+
*/
|
|
795
|
+
vmClassReservations?: pulumi.Input<pulumi.Input<inputs.NamespaceZoneVmClassReservation>[] | undefined>;
|
|
796
|
+
}
|
|
797
|
+
export interface NamespaceZoneVmClassReservation {
|
|
798
|
+
/**
|
|
799
|
+
* The number of VM class instances to reserve.
|
|
800
|
+
*/
|
|
801
|
+
count: pulumi.Input<number>;
|
|
802
|
+
/**
|
|
803
|
+
* The name of the VM class.
|
|
804
|
+
*/
|
|
805
|
+
vmClass: pulumi.Input<string>;
|
|
806
|
+
}
|
|
683
807
|
export interface NetworkProtocolProfileIpv4 {
|
|
684
808
|
/**
|
|
685
809
|
* The number of addresses currently allocated from
|