-
Notifications
You must be signed in to change notification settings - Fork 6
/
getComputeCluster.ts
54 lines (48 loc) · 1.73 KB
/
getComputeCluster.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
import * as utilities from "./utilities";
export function getComputeCluster(args: GetComputeClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetComputeClusterResult> & GetComputeClusterResult {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
const promise: Promise<GetComputeClusterResult> = pulumi.runtime.invoke("vsphere:index/getComputeCluster:getComputeCluster", {
"datacenterId": args.datacenterId,
"name": args.name,
}, opts);
return pulumi.utils.liftProperties(promise, opts);
}
/**
* A collection of arguments for invoking getComputeCluster.
*/
export interface GetComputeClusterArgs {
/**
* The [managed object reference
* ID][docs-about-morefs] of the datacenter the cluster is located in. This can
* be omitted if the search path used in `name` is an absolute path. For
* default datacenters, use the id attribute from an empty `vsphere..Datacenter`
* data source.
*/
readonly datacenterId?: string;
/**
* The name or absolute path to the cluster.
*/
readonly name: string;
}
/**
* A collection of values returned by getComputeCluster.
*/
export interface GetComputeClusterResult {
readonly datacenterId?: string;
readonly name: string;
readonly resourcePoolId: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}