Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi
gcp.vmwareengine.getVcenterCredentials
Explore with Pulumi AI
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/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
})
}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials
arguments:
# arguments dictionary
The 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-beta
Terraform Provider.