import * as pulumi from "@pulumi/pulumi"; /** * The `vsphere.DatastoreCluster` data source can be used to discover the ID of a * vSphere datastore cluster object. This can then be used with resources or data sources * that require a datastore. For example, to assign datastores using the * `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const datastoreCluster = datacenter.then(datacenter => vsphere.getDatastoreCluster({ * name: "datastore-cluster-01", * datacenterId: datacenter.id, * })); * ``` */ export declare function getDatastoreCluster(args: GetDatastoreClusterArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatastoreCluster. */ export interface GetDatastoreClusterArgs { /** * The managed object reference * ID of the datacenter the datastore 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. */ datacenterId?: string; /** * The name or absolute path to the datastore cluster. */ name: string; } /** * A collection of values returned by getDatastoreCluster. */ export interface GetDatastoreClusterResult { readonly datacenterId?: string; /** * (Optional) The names of the datastores included in the specific * cluster. */ readonly datastores: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; } /** * The `vsphere.DatastoreCluster` data source can be used to discover the ID of a * vSphere datastore cluster object. This can then be used with resources or data sources * that require a datastore. For example, to assign datastores using the * `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const datacenter = vsphere.getDatacenter({ * name: "dc-01", * }); * const datastoreCluster = datacenter.then(datacenter => vsphere.getDatastoreCluster({ * name: "datastore-cluster-01", * datacenterId: datacenter.id, * })); * ``` */ export declare function getDatastoreClusterOutput(args: GetDatastoreClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatastoreCluster. */ export interface GetDatastoreClusterOutputArgs { /** * The managed object reference * ID of the datacenter the datastore 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. */ datacenterId?: pulumi.Input; /** * The name or absolute path to the datastore cluster. */ name: pulumi.Input; }