UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

74 lines (73 loc) 2.44 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get Vcenter credentials for a Private Cloud. * * To get more information about private cloud Vcenter credentials, see: * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showVcenterCredentials) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const ds = gcp.vmwareengine.getVcenterCredentials({ * parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud", * }); * ``` */ export declare function getVcenterCredentials(args: GetVcenterCredentialsArgs, opts?: pulumi.InvokeOptions): Promise<GetVcenterCredentialsResult>; /** * A collection of arguments for invoking getVcenterCredentials. */ export interface GetVcenterCredentialsArgs { /** * The resource name of the private cloud which contains the Vcenter. */ parent: string; } /** * A collection of values returned by getVcenterCredentials. */ export interface GetVcenterCredentialsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly parent: string; /** * The password of the Vcenter Credential. */ readonly password: string; /** * The username of the Vcenter Credential. */ readonly username: string; } /** * Use this data source to get Vcenter credentials for a Private Cloud. * * To get more information about private cloud Vcenter credentials, see: * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showVcenterCredentials) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const ds = gcp.vmwareengine.getVcenterCredentials({ * parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud", * }); * ``` */ export declare function getVcenterCredentialsOutput(args: GetVcenterCredentialsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVcenterCredentialsResult>; /** * A collection of arguments for invoking getVcenterCredentials. */ export interface GetVcenterCredentialsOutputArgs { /** * The resource name of the private cloud which contains the Vcenter. */ parent: pulumi.Input<string>; }