get Vcenter Credentials
suspend fun getVcenterCredentials(argument: GetVcenterCredentialsPlainArgs): GetVcenterCredentialsResult
Use this data source to get Vcenter credentials for a Private Cloud. To get more information about private cloud Vcenter credentials, see:
Example Usage
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",
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
ds = gcp.vmwareengine.get_vcenter_credentials(parent="projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var ds = Gcp.VMwareEngine.GetVcenterCredentials.Invoke(new()
{
Parent = "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmwareengine.GetVcenterCredentials(ctx, &vmwareengine.GetVcenterCredentialsArgs{
Parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
import com.pulumi.gcp.vmwareengine.inputs.GetVcenterCredentialsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var ds = VmwareengineFunctions.getVcenterCredentials(GetVcenterCredentialsArgs.builder()
.parent("projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
.build());
}
}
Content copied to clipboard
variables:
ds:
fn::invoke:
Function: gcp:vmwareengine:getVcenterCredentials
Arguments:
parent: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
Content copied to clipboard
Return
A collection of values returned by getVcenterCredentials.
Parameters
argument
A collection of arguments for invoking getVcenterCredentials.
Return
A collection of values returned by getVcenterCredentials.
Parameters
parent
The resource name of the private cloud which contains the Vcenter.
See also
suspend fun getVcenterCredentials(argument: suspend GetVcenterCredentialsPlainArgsBuilder.() -> Unit): GetVcenterCredentialsResult
Return
A collection of values returned by getVcenterCredentials.
Parameters
argument
Builder for com.pulumi.gcp.vmwareengine.kotlin.inputs.GetVcenterCredentialsPlainArgs.