Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
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",
});
import pulumi
import pulumi_gcp as gcp
ds = gcp.vmwareengine.get_vcenter_credentials(parent="projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/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
})
}
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",
});
});
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());
}
}
variables:
ds:
fn::invoke:
function: gcp:vmwareengine:getVcenterCredentials
arguments:
parent: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
Using getVcenterCredentials
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVcenterCredentials(args: GetVcenterCredentialsArgs, opts?: InvokeOptions): Promise<GetVcenterCredentialsResult>
function getVcenterCredentialsOutput(args: GetVcenterCredentialsOutputArgs, opts?: InvokeOptions): Output<GetVcenterCredentialsResult>def get_vcenter_credentials(parent: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVcenterCredentialsResult
def get_vcenter_credentials_output(parent: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVcenterCredentialsResult]func GetVcenterCredentials(ctx *Context, args *GetVcenterCredentialsArgs, opts ...InvokeOption) (*GetVcenterCredentialsResult, error)
func GetVcenterCredentialsOutput(ctx *Context, args *GetVcenterCredentialsOutputArgs, opts ...InvokeOption) GetVcenterCredentialsResultOutput> Note: This function is named GetVcenterCredentials in the Go SDK.
public static class GetVcenterCredentials
{
public static Task<GetVcenterCredentialsResult> InvokeAsync(GetVcenterCredentialsArgs args, InvokeOptions? opts = null)
public static Output<GetVcenterCredentialsResult> Invoke(GetVcenterCredentialsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVcenterCredentialsResult> getVcenterCredentials(GetVcenterCredentialsArgs args, InvokeOptions options)
public static Output<GetVcenterCredentialsResult> getVcenterCredentials(GetVcenterCredentialsArgs args, InvokeOptions options)
fn::invoke:
function: gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials
arguments:
# arguments dictionaryThe following arguments are supported:
- Parent string
- The resource name of the private cloud which contains the Vcenter.
- Parent string
- The resource name of the private cloud which contains the Vcenter.
- parent String
- The resource name of the private cloud which contains the Vcenter.
- parent string
- The resource name of the private cloud which contains the Vcenter.
- parent str
- The resource name of the private cloud which contains the Vcenter.
- parent String
- The resource name of the private cloud which contains the Vcenter.
getVcenterCredentials Result
The following output properties are available:
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
