@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.
@@ -0,0 +1,250 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * The `vsphere.getContentLibraryItems` data source can be used to search for
5
+ * items in a content library by name, regular expression, and/or type, and
6
+ * returns the list of matching items.
7
+ *
8
+ * > **NOTE:** This resource requires vCenter and is not available on direct ESXi
9
+ * host connections.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Search by name and type
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as vsphere from "@pulumi/vsphere";
18
+ *
19
+ * const library = vsphere.getContentLibrary({
20
+ * name: "Content Library",
21
+ * });
22
+ * const ovfItems = library.then(library => vsphere.getContentLibraryItems({
23
+ * libraryId: library.id,
24
+ * name: "ubuntu-server-lts",
25
+ * type: "ovf",
26
+ * }));
27
+ * ```
28
+ *
29
+ * ### Search by name regex
30
+ *
31
+ * ```typescript
32
+ * import * as pulumi from "@pulumi/pulumi";
33
+ * import * as vsphere from "@pulumi/vsphere";
34
+ *
35
+ * const library = vsphere.getContentLibrary({
36
+ * name: "Content Library",
37
+ * });
38
+ * const ubuntu = library.then(library => vsphere.getContentLibraryItems({
39
+ * libraryId: library.id,
40
+ * nameRegex: "^ubuntu-.*-lts$",
41
+ * }));
42
+ * ```
43
+ *
44
+ * ### Search all items of a given type
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as vsphere from "@pulumi/vsphere";
49
+ *
50
+ * const library = vsphere.getContentLibrary({
51
+ * name: "Content Library",
52
+ * });
53
+ * const allOvf = library.then(library => vsphere.getContentLibraryItems({
54
+ * libraryId: library.id,
55
+ * type: "ovf",
56
+ * }));
57
+ * ```
58
+ *
59
+ * ### List all items in a library
60
+ *
61
+ * ```typescript
62
+ * import * as pulumi from "@pulumi/pulumi";
63
+ * import * as vsphere from "@pulumi/vsphere";
64
+ *
65
+ * const library = vsphere.getContentLibrary({
66
+ * name: "Content Library",
67
+ * });
68
+ * const all = library.then(library => vsphere.getContentLibraryItems({
69
+ * libraryId: library.id,
70
+ * }));
71
+ * ```
72
+ */
73
+ export declare function getContentLibraryItems(args: GetContentLibraryItemsArgs, opts?: pulumi.InvokeOptions): Promise<GetContentLibraryItemsResult>;
74
+ /**
75
+ * A collection of arguments for invoking getContentLibraryItems.
76
+ */
77
+ export interface GetContentLibraryItemsArgs {
78
+ /**
79
+ * The ID of the content library to search.
80
+ */
81
+ libraryId: string;
82
+ /**
83
+ * Maximum number of items to return after sorting. If
84
+ * omitted, all matching items are returned.
85
+ */
86
+ limit?: number;
87
+ /**
88
+ * Filter items by exact name. Mutually exclusive with
89
+ * `nameRegex`. If omitted, items of any name are returned.
90
+ */
91
+ name?: string;
92
+ /**
93
+ * Filter items by name using a regular expression.
94
+ * Mutually exclusive with `name`. If omitted, items of any name are returned.
95
+ */
96
+ nameRegex?: string;
97
+ /**
98
+ * Sort items by field. Accepted values:
99
+ * `lastModifiedTime`, `creationTime`, `name`. Defaults to `lastModifiedTime`.
100
+ */
101
+ sortBy?: string;
102
+ /**
103
+ * Sort order. Accepted values: `asc`, `desc`.
104
+ * Defaults to `desc` (most recent first).
105
+ */
106
+ sortOrder?: string;
107
+ /**
108
+ * Filter items by type (e.g. `ovf`, `iso`, `vm-template`).
109
+ * If omitted, items of any type are returned.
110
+ */
111
+ type?: string;
112
+ }
113
+ /**
114
+ * A collection of values returned by getContentLibraryItems.
115
+ */
116
+ export interface GetContentLibraryItemsResult {
117
+ /**
118
+ * The provider-assigned unique ID for this managed resource.
119
+ */
120
+ readonly id: string;
121
+ /**
122
+ * A list of content library items matching the search criteria. Each
123
+ * element contains:
124
+ */
125
+ readonly items: outputs.GetContentLibraryItemsItem[];
126
+ readonly libraryId: string;
127
+ readonly limit?: number;
128
+ /**
129
+ * The name of the content library item.
130
+ */
131
+ readonly name?: string;
132
+ readonly nameRegex?: string;
133
+ readonly sortBy?: string;
134
+ readonly sortOrder?: string;
135
+ /**
136
+ * The type of the content library item.
137
+ */
138
+ readonly type?: string;
139
+ }
140
+ /**
141
+ * The `vsphere.getContentLibraryItems` data source can be used to search for
142
+ * items in a content library by name, regular expression, and/or type, and
143
+ * returns the list of matching items.
144
+ *
145
+ * > **NOTE:** This resource requires vCenter and is not available on direct ESXi
146
+ * host connections.
147
+ *
148
+ * ## Example Usage
149
+ *
150
+ * ### Search by name and type
151
+ *
152
+ * ```typescript
153
+ * import * as pulumi from "@pulumi/pulumi";
154
+ * import * as vsphere from "@pulumi/vsphere";
155
+ *
156
+ * const library = vsphere.getContentLibrary({
157
+ * name: "Content Library",
158
+ * });
159
+ * const ovfItems = library.then(library => vsphere.getContentLibraryItems({
160
+ * libraryId: library.id,
161
+ * name: "ubuntu-server-lts",
162
+ * type: "ovf",
163
+ * }));
164
+ * ```
165
+ *
166
+ * ### Search by name regex
167
+ *
168
+ * ```typescript
169
+ * import * as pulumi from "@pulumi/pulumi";
170
+ * import * as vsphere from "@pulumi/vsphere";
171
+ *
172
+ * const library = vsphere.getContentLibrary({
173
+ * name: "Content Library",
174
+ * });
175
+ * const ubuntu = library.then(library => vsphere.getContentLibraryItems({
176
+ * libraryId: library.id,
177
+ * nameRegex: "^ubuntu-.*-lts$",
178
+ * }));
179
+ * ```
180
+ *
181
+ * ### Search all items of a given type
182
+ *
183
+ * ```typescript
184
+ * import * as pulumi from "@pulumi/pulumi";
185
+ * import * as vsphere from "@pulumi/vsphere";
186
+ *
187
+ * const library = vsphere.getContentLibrary({
188
+ * name: "Content Library",
189
+ * });
190
+ * const allOvf = library.then(library => vsphere.getContentLibraryItems({
191
+ * libraryId: library.id,
192
+ * type: "ovf",
193
+ * }));
194
+ * ```
195
+ *
196
+ * ### List all items in a library
197
+ *
198
+ * ```typescript
199
+ * import * as pulumi from "@pulumi/pulumi";
200
+ * import * as vsphere from "@pulumi/vsphere";
201
+ *
202
+ * const library = vsphere.getContentLibrary({
203
+ * name: "Content Library",
204
+ * });
205
+ * const all = library.then(library => vsphere.getContentLibraryItems({
206
+ * libraryId: library.id,
207
+ * }));
208
+ * ```
209
+ */
210
+ export declare function getContentLibraryItemsOutput(args: GetContentLibraryItemsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetContentLibraryItemsResult>;
211
+ /**
212
+ * A collection of arguments for invoking getContentLibraryItems.
213
+ */
214
+ export interface GetContentLibraryItemsOutputArgs {
215
+ /**
216
+ * The ID of the content library to search.
217
+ */
218
+ libraryId: pulumi.Input<string>;
219
+ /**
220
+ * Maximum number of items to return after sorting. If
221
+ * omitted, all matching items are returned.
222
+ */
223
+ limit?: pulumi.Input<number | undefined>;
224
+ /**
225
+ * Filter items by exact name. Mutually exclusive with
226
+ * `nameRegex`. If omitted, items of any name are returned.
227
+ */
228
+ name?: pulumi.Input<string | undefined>;
229
+ /**
230
+ * Filter items by name using a regular expression.
231
+ * Mutually exclusive with `name`. If omitted, items of any name are returned.
232
+ */
233
+ nameRegex?: pulumi.Input<string | undefined>;
234
+ /**
235
+ * Sort items by field. Accepted values:
236
+ * `lastModifiedTime`, `creationTime`, `name`. Defaults to `lastModifiedTime`.
237
+ */
238
+ sortBy?: pulumi.Input<string | undefined>;
239
+ /**
240
+ * Sort order. Accepted values: `asc`, `desc`.
241
+ * Defaults to `desc` (most recent first).
242
+ */
243
+ sortOrder?: pulumi.Input<string | undefined>;
244
+ /**
245
+ * Filter items by type (e.g. `ovf`, `iso`, `vm-template`).
246
+ * If omitted, items of any type are returned.
247
+ */
248
+ type?: pulumi.Input<string | undefined>;
249
+ }
250
+ //# sourceMappingURL=getContentLibraryItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContentLibraryItems.d.ts","sourceRoot":"","sources":["../getContentLibraryItems.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,gCAAgC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAWnK;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C"}
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.getContentLibraryItemsOutput = exports.getContentLibraryItems = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * The `vsphere.getContentLibraryItems` data source can be used to search for
33
+ * items in a content library by name, regular expression, and/or type, and
34
+ * returns the list of matching items.
35
+ *
36
+ * > **NOTE:** This resource requires vCenter and is not available on direct ESXi
37
+ * host connections.
38
+ *
39
+ * ## Example Usage
40
+ *
41
+ * ### Search by name and type
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as vsphere from "@pulumi/vsphere";
46
+ *
47
+ * const library = vsphere.getContentLibrary({
48
+ * name: "Content Library",
49
+ * });
50
+ * const ovfItems = library.then(library => vsphere.getContentLibraryItems({
51
+ * libraryId: library.id,
52
+ * name: "ubuntu-server-lts",
53
+ * type: "ovf",
54
+ * }));
55
+ * ```
56
+ *
57
+ * ### Search by name regex
58
+ *
59
+ * ```typescript
60
+ * import * as pulumi from "@pulumi/pulumi";
61
+ * import * as vsphere from "@pulumi/vsphere";
62
+ *
63
+ * const library = vsphere.getContentLibrary({
64
+ * name: "Content Library",
65
+ * });
66
+ * const ubuntu = library.then(library => vsphere.getContentLibraryItems({
67
+ * libraryId: library.id,
68
+ * nameRegex: "^ubuntu-.*-lts$",
69
+ * }));
70
+ * ```
71
+ *
72
+ * ### Search all items of a given type
73
+ *
74
+ * ```typescript
75
+ * import * as pulumi from "@pulumi/pulumi";
76
+ * import * as vsphere from "@pulumi/vsphere";
77
+ *
78
+ * const library = vsphere.getContentLibrary({
79
+ * name: "Content Library",
80
+ * });
81
+ * const allOvf = library.then(library => vsphere.getContentLibraryItems({
82
+ * libraryId: library.id,
83
+ * type: "ovf",
84
+ * }));
85
+ * ```
86
+ *
87
+ * ### List all items in a library
88
+ *
89
+ * ```typescript
90
+ * import * as pulumi from "@pulumi/pulumi";
91
+ * import * as vsphere from "@pulumi/vsphere";
92
+ *
93
+ * const library = vsphere.getContentLibrary({
94
+ * name: "Content Library",
95
+ * });
96
+ * const all = library.then(library => vsphere.getContentLibraryItems({
97
+ * libraryId: library.id,
98
+ * }));
99
+ * ```
100
+ */
101
+ function getContentLibraryItems(args, opts) {
102
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
103
+ return pulumi.runtime.invoke("vsphere:index/getContentLibraryItems:getContentLibraryItems", {
104
+ "libraryId": args.libraryId,
105
+ "limit": args.limit,
106
+ "name": args.name,
107
+ "nameRegex": args.nameRegex,
108
+ "sortBy": args.sortBy,
109
+ "sortOrder": args.sortOrder,
110
+ "type": args.type,
111
+ }, opts);
112
+ }
113
+ exports.getContentLibraryItems = getContentLibraryItems;
114
+ /**
115
+ * The `vsphere.getContentLibraryItems` data source can be used to search for
116
+ * items in a content library by name, regular expression, and/or type, and
117
+ * returns the list of matching items.
118
+ *
119
+ * > **NOTE:** This resource requires vCenter and is not available on direct ESXi
120
+ * host connections.
121
+ *
122
+ * ## Example Usage
123
+ *
124
+ * ### Search by name and type
125
+ *
126
+ * ```typescript
127
+ * import * as pulumi from "@pulumi/pulumi";
128
+ * import * as vsphere from "@pulumi/vsphere";
129
+ *
130
+ * const library = vsphere.getContentLibrary({
131
+ * name: "Content Library",
132
+ * });
133
+ * const ovfItems = library.then(library => vsphere.getContentLibraryItems({
134
+ * libraryId: library.id,
135
+ * name: "ubuntu-server-lts",
136
+ * type: "ovf",
137
+ * }));
138
+ * ```
139
+ *
140
+ * ### Search by name regex
141
+ *
142
+ * ```typescript
143
+ * import * as pulumi from "@pulumi/pulumi";
144
+ * import * as vsphere from "@pulumi/vsphere";
145
+ *
146
+ * const library = vsphere.getContentLibrary({
147
+ * name: "Content Library",
148
+ * });
149
+ * const ubuntu = library.then(library => vsphere.getContentLibraryItems({
150
+ * libraryId: library.id,
151
+ * nameRegex: "^ubuntu-.*-lts$",
152
+ * }));
153
+ * ```
154
+ *
155
+ * ### Search all items of a given type
156
+ *
157
+ * ```typescript
158
+ * import * as pulumi from "@pulumi/pulumi";
159
+ * import * as vsphere from "@pulumi/vsphere";
160
+ *
161
+ * const library = vsphere.getContentLibrary({
162
+ * name: "Content Library",
163
+ * });
164
+ * const allOvf = library.then(library => vsphere.getContentLibraryItems({
165
+ * libraryId: library.id,
166
+ * type: "ovf",
167
+ * }));
168
+ * ```
169
+ *
170
+ * ### List all items in a library
171
+ *
172
+ * ```typescript
173
+ * import * as pulumi from "@pulumi/pulumi";
174
+ * import * as vsphere from "@pulumi/vsphere";
175
+ *
176
+ * const library = vsphere.getContentLibrary({
177
+ * name: "Content Library",
178
+ * });
179
+ * const all = library.then(library => vsphere.getContentLibraryItems({
180
+ * libraryId: library.id,
181
+ * }));
182
+ * ```
183
+ */
184
+ function getContentLibraryItemsOutput(args, opts) {
185
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
186
+ return pulumi.runtime.invokeOutput("vsphere:index/getContentLibraryItems:getContentLibraryItems", {
187
+ "libraryId": args.libraryId,
188
+ "limit": args.limit,
189
+ "name": args.name,
190
+ "nameRegex": args.nameRegex,
191
+ "sortBy": args.sortBy,
192
+ "sortOrder": args.sortOrder,
193
+ "type": args.type,
194
+ }, opts);
195
+ }
196
+ exports.getContentLibraryItemsOutput = getContentLibraryItemsOutput;
197
+ //# sourceMappingURL=getContentLibraryItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContentLibraryItems.js","sourceRoot":"","sources":["../getContentLibraryItems.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6DAA6D,EAAE;QACxF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,wDAWC;AAqED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,SAAgB,4BAA4B,CAAC,IAAsC,EAAE,IAAiC;IAClH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6DAA6D,EAAE;QAC9F,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,oEAWC"}
package/getNamespace.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as outputs from "./types/output";
3
3
  /**
4
- * This data source can be used to read the properties of a vSphere Namespace.
4
+ * This data source can be used to read the properties of a vSphere Namespace. It requires vCenter 8.0.0.1 or later.
5
5
  *
6
6
  * ## Example Usage
7
7
  *
8
8
  * ### S
9
9
  *
10
- * ### Create a Namespace
10
+ * ### Read a Namespace
11
11
  *
12
12
  * ```typescript
13
13
  * import * as pulumi from "@pulumi/pulumi";
@@ -17,6 +17,14 @@ import * as outputs from "./types/output";
17
17
  * name: "example-namespace",
18
18
  * });
19
19
  * ```
20
+ *
21
+ * ### Read the storage policies of a Namespace
22
+ *
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ *
26
+ * export const storagePolicyIds = .map(s => (s.policy));
27
+ * ```
20
28
  */
21
29
  export declare function getNamespace(args: GetNamespaceArgs, opts?: pulumi.InvokeOptions): Promise<GetNamespaceResult>;
22
30
  /**
@@ -24,7 +32,7 @@ export declare function getNamespace(args: GetNamespaceArgs, opts?: pulumi.Invok
24
32
  */
25
33
  export interface GetNamespaceArgs {
26
34
  /**
27
- * The name of the vSphere namespace.
35
+ * The name of the vSphere Namespace.
28
36
  */
29
37
  name: string;
30
38
  }
@@ -32,36 +40,71 @@ export interface GetNamespaceArgs {
32
40
  * A collection of values returned by getNamespace.
33
41
  */
34
42
  export interface GetNamespaceResult {
43
+ /**
44
+ * The configuration status of the vSphere Namespace.
45
+ */
35
46
  readonly configStatus: string;
47
+ /**
48
+ * The CPU usage of the vSphere Namespace in MHz.
49
+ */
36
50
  readonly cpuUsage: number;
51
+ /**
52
+ * A group with access to the vSphere Namespace.
53
+ */
54
+ readonly groups: outputs.GetNamespaceGroup[];
37
55
  /**
38
56
  * The provider-assigned unique ID for this managed resource.
39
57
  */
40
58
  readonly id: string;
59
+ /**
60
+ * The memory usage of the vSphere Namespace in MiB.
61
+ */
41
62
  readonly memoryUsage: number;
63
+ /**
64
+ * The identifier of the vSphere Zone.
65
+ */
42
66
  readonly name: string;
43
67
  /**
44
- * The list of storage policies that are available in the vSphere Namespace.
68
+ * A storage policy assigned to the vSphere Namespace.
69
+ */
70
+ readonly storagePolicies: outputs.GetNamespaceStoragePolicy[];
71
+ /**
72
+ * The storage usage of the vSphere Namespace in MiB.
45
73
  */
46
- readonly storagePolicies: string[];
47
74
  readonly storageUsage: number;
48
75
  /**
49
76
  * The identifier of the vSphere Supervisor managing the namespace.
50
77
  */
51
78
  readonly supervisor: string;
79
+ /**
80
+ * A user with access to the vSphere Namespace.
81
+ */
82
+ readonly users: outputs.GetNamespaceUser[];
52
83
  /**
53
84
  * The configuration for VM Service in the vSphere Namespace.
54
85
  */
55
86
  readonly vmServices: outputs.GetNamespaceVmService[];
87
+ /**
88
+ * The NSX VPC network configuration.
89
+ */
90
+ readonly vpcNetworks: outputs.GetNamespaceVpcNetwork[];
91
+ /**
92
+ * The vSphere networking configuration.
93
+ */
94
+ readonly vsphereNetworks: outputs.GetNamespaceVsphereNetwork[];
95
+ /**
96
+ * A vSphere Zone assigned to the vSphere Namespace.
97
+ */
98
+ readonly zones: outputs.GetNamespaceZone[];
56
99
  }
57
100
  /**
58
- * This data source can be used to read the properties of a vSphere Namespace.
101
+ * This data source can be used to read the properties of a vSphere Namespace. It requires vCenter 8.0.0.1 or later.
59
102
  *
60
103
  * ## Example Usage
61
104
  *
62
105
  * ### S
63
106
  *
64
- * ### Create a Namespace
107
+ * ### Read a Namespace
65
108
  *
66
109
  * ```typescript
67
110
  * import * as pulumi from "@pulumi/pulumi";
@@ -71,6 +114,14 @@ export interface GetNamespaceResult {
71
114
  * name: "example-namespace",
72
115
  * });
73
116
  * ```
117
+ *
118
+ * ### Read the storage policies of a Namespace
119
+ *
120
+ * ```typescript
121
+ * import * as pulumi from "@pulumi/pulumi";
122
+ *
123
+ * export const storagePolicyIds = .map(s => (s.policy));
124
+ * ```
74
125
  */
75
126
  export declare function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNamespaceResult>;
76
127
  /**
@@ -78,7 +129,7 @@ export declare function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?:
78
129
  */
79
130
  export interface GetNamespaceOutputArgs {
80
131
  /**
81
- * The name of the vSphere namespace.
132
+ * The name of the vSphere Namespace.
82
133
  */
83
134
  name: pulumi.Input<string>;
84
135
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getNamespace.d.ts","sourceRoot":"","sources":["../getNamespace.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAK7G;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IAC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B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAC9D;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,qBAAqB,EAAE,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,sBAAsB,EAAE,CAAC;IACvD;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAC9C;AACD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAKrI;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B"}
package/getNamespace.js CHANGED
@@ -29,13 +29,13 @@ exports.getNamespaceOutput = exports.getNamespace = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * This data source can be used to read the properties of a vSphere Namespace.
32
+ * This data source can be used to read the properties of a vSphere Namespace. It requires vCenter 8.0.0.1 or later.
33
33
  *
34
34
  * ## Example Usage
35
35
  *
36
36
  * ### S
37
37
  *
38
- * ### Create a Namespace
38
+ * ### Read a Namespace
39
39
  *
40
40
  * ```typescript
41
41
  * import * as pulumi from "@pulumi/pulumi";
@@ -45,6 +45,14 @@ const utilities = __importStar(require("./utilities"));
45
45
  * name: "example-namespace",
46
46
  * });
47
47
  * ```
48
+ *
49
+ * ### Read the storage policies of a Namespace
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ *
54
+ * export const storagePolicyIds = .map(s => (s.policy));
55
+ * ```
48
56
  */
49
57
  function getNamespace(args, opts) {
50
58
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -54,13 +62,13 @@ function getNamespace(args, opts) {
54
62
  }
55
63
  exports.getNamespace = getNamespace;
56
64
  /**
57
- * This data source can be used to read the properties of a vSphere Namespace.
65
+ * This data source can be used to read the properties of a vSphere Namespace. It requires vCenter 8.0.0.1 or later.
58
66
  *
59
67
  * ## Example Usage
60
68
  *
61
69
  * ### S
62
70
  *
63
- * ### Create a Namespace
71
+ * ### Read a Namespace
64
72
  *
65
73
  * ```typescript
66
74
  * import * as pulumi from "@pulumi/pulumi";
@@ -70,6 +78,14 @@ exports.getNamespace = getNamespace;
70
78
  * name: "example-namespace",
71
79
  * });
72
80
  * ```
81
+ *
82
+ * ### Read the storage policies of a Namespace
83
+ *
84
+ * ```typescript
85
+ * import * as pulumi from "@pulumi/pulumi";
86
+ *
87
+ * export const storagePolicyIds = .map(s => (s.policy));
88
+ * ```
73
89
  */
74
90
  function getNamespaceOutput(args, opts) {
75
91
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getNamespace.js","sourceRoot":"","sources":["../getNamespace.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;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