1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. vmwareengine
  5. getVcenterCredentials
Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi

gcp.vmwareengine.getVcenterCredentials

Explore with Pulumi AI

Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 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",
});
Copy
import pulumi
import pulumi_gcp as gcp

ds = gcp.vmwareengine.get_vcenter_credentials(parent="projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  ds:
    fn::invoke:
      function: gcp:vmwareengine:getVcenterCredentials
      arguments:
        parent: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
Copy

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>
Copy
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]
Copy
func GetVcenterCredentials(ctx *Context, args *GetVcenterCredentialsArgs, opts ...InvokeOption) (*GetVcenterCredentialsResult, error)
func GetVcenterCredentialsOutput(ctx *Context, args *GetVcenterCredentialsOutputArgs, opts ...InvokeOption) GetVcenterCredentialsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetVcenterCredentialsResult> getVcenterCredentials(GetVcenterCredentialsArgs args, InvokeOptions options)
public static Output<GetVcenterCredentialsResult> getVcenterCredentials(GetVcenterCredentialsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Parent
This property is required.
Changes to this property will trigger replacement.
string
The resource name of the private cloud which contains the Vcenter.
Parent
This property is required.
Changes to this property will trigger replacement.
string
The resource name of the private cloud which contains the Vcenter.
parent
This property is required.
Changes to this property will trigger replacement.
String
The resource name of the private cloud which contains the Vcenter.
parent
This property is required.
Changes to this property will trigger replacement.
string
The resource name of the private cloud which contains the Vcenter.
parent
This property is required.
Changes to this property will trigger replacement.
str
The resource name of the private cloud which contains the Vcenter.
parent
This property is required.
Changes to this property will trigger replacement.
String
The resource name of the private cloud which contains the Vcenter.

getVcenterCredentials Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Parent string
Password string
The password of the Vcenter Credential.
Username string
The username of the Vcenter Credential.
Id string
The provider-assigned unique ID for this managed resource.
Parent string
Password string
The password of the Vcenter Credential.
Username string
The username of the Vcenter Credential.
id String
The provider-assigned unique ID for this managed resource.
parent String
password String
The password of the Vcenter Credential.
username String
The username of the Vcenter Credential.
id string
The provider-assigned unique ID for this managed resource.
parent string
password string
The password of the Vcenter Credential.
username string
The username of the Vcenter Credential.
id str
The provider-assigned unique ID for this managed resource.
parent str
password str
The password of the Vcenter Credential.
username str
The username of the Vcenter Credential.
id String
The provider-assigned unique ID for this managed resource.
parent String
password String
The password of the Vcenter Credential.
username String
The username of the Vcenter Credential.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.
Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi