@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
89 lines • 2.62 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to get details about a datastore resource.
*
* To get more information about datastore, see:
* * [API documentation](https://docs.cloud.google.com/vmware-engine/docs/vmware-ecosystem/concepts-nfs-datastores-overview)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const testDs = gcp.vmwareengine.getDatastore({
* name: "example-ds",
* location: "us-west2",
* });
* ```
*/
export declare function getDatastore(args: GetDatastoreArgs, opts?: pulumi.InvokeOptions): Promise<GetDatastoreResult>;
/**
* A collection of arguments for invoking getDatastore.
*/
export interface GetDatastoreArgs {
/**
* either regional or zonal location of the resource.
*/
location: string;
/**
* Name of the resource.
*/
name: string;
project?: string;
}
/**
* A collection of values returned by getDatastore.
*/
export interface GetDatastoreResult {
readonly clusters: string[];
readonly createTime: string;
readonly deletionPolicy: string;
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
readonly name: string;
readonly nfsDatastores: outputs.vmwareengine.GetDatastoreNfsDatastore[];
readonly project?: string;
readonly state: string;
readonly uid: string;
readonly updateTime: string;
}
/**
* Use this data source to get details about a datastore resource.
*
* To get more information about datastore, see:
* * [API documentation](https://docs.cloud.google.com/vmware-engine/docs/vmware-ecosystem/concepts-nfs-datastores-overview)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const testDs = gcp.vmwareengine.getDatastore({
* name: "example-ds",
* location: "us-west2",
* });
* ```
*/
export declare function getDatastoreOutput(args: GetDatastoreOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatastoreResult>;
/**
* A collection of arguments for invoking getDatastore.
*/
export interface GetDatastoreOutputArgs {
/**
* either regional or zonal location of the resource.
*/
location: pulumi.Input<string>;
/**
* Name of the resource.
*/
name: pulumi.Input<string>;
project?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getDatastore.d.ts.map