Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Use this data source to get NSX credentials for a Private Cloud.
To get more information about private cloud NSX credentials, see:
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const ds = gcp.vmwareengine.getNsxCredentials({
parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
});
import pulumi
import pulumi_gcp as gcp
ds = gcp.vmwareengine.get_nsx_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.GetNsxCredentials(ctx, &vmwareengine.GetNsxCredentialsArgs{
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.GetNsxCredentials.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.GetNsxCredentialsArgs;
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.getNsxCredentials(GetNsxCredentialsArgs.builder()
.parent("projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
.build());
}
}
variables:
ds:
fn::invoke:
function: gcp:vmwareengine:getNsxCredentials
arguments:
parent: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
Using getNsxCredentials
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 getNsxCredentials(args: GetNsxCredentialsArgs, opts?: InvokeOptions): Promise<GetNsxCredentialsResult>
function getNsxCredentialsOutput(args: GetNsxCredentialsOutputArgs, opts?: InvokeOptions): Output<GetNsxCredentialsResult>def get_nsx_credentials(parent: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNsxCredentialsResult
def get_nsx_credentials_output(parent: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNsxCredentialsResult]func GetNsxCredentials(ctx *Context, args *GetNsxCredentialsArgs, opts ...InvokeOption) (*GetNsxCredentialsResult, error)
func GetNsxCredentialsOutput(ctx *Context, args *GetNsxCredentialsOutputArgs, opts ...InvokeOption) GetNsxCredentialsResultOutput> Note: This function is named GetNsxCredentials in the Go SDK.
public static class GetNsxCredentials
{
public static Task<GetNsxCredentialsResult> InvokeAsync(GetNsxCredentialsArgs args, InvokeOptions? opts = null)
public static Output<GetNsxCredentialsResult> Invoke(GetNsxCredentialsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNsxCredentialsResult> getNsxCredentials(GetNsxCredentialsArgs args, InvokeOptions options)
public static Output<GetNsxCredentialsResult> getNsxCredentials(GetNsxCredentialsArgs args, InvokeOptions options)
fn::invoke:
function: gcp:vmwareengine/getNsxCredentials:getNsxCredentials
arguments:
# arguments dictionaryThe following arguments are supported:
- Parent string
- The resource name of the private cloud which contains the NSX.
- Parent string
- The resource name of the private cloud which contains the NSX.
- parent String
- The resource name of the private cloud which contains the NSX.
- parent string
- The resource name of the private cloud which contains the NSX.
- parent str
- The resource name of the private cloud which contains the NSX.
- parent String
- The resource name of the private cloud which contains the NSX.
getNsxCredentials 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.16.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
