get Nsx Credentials
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",
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
ds = gcp.vmwareengine.get_nsx_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.GetNsxCredentials.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.GetNsxCredentials(ctx, &vmwareengine.GetNsxCredentialsArgs{
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.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());
}
}
Content copied to clipboard
variables:
ds:
fn::invoke:
Function: gcp:vmwareengine:getNsxCredentials
Arguments:
parent: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
Content copied to clipboard
Return
A collection of values returned by getNsxCredentials.
Parameters
argument
A collection of arguments for invoking getNsxCredentials.
Return
A collection of values returned by getNsxCredentials.
Parameters
parent
The resource name of the private cloud which contains the NSX.
See also
suspend fun getNsxCredentials(argument: suspend GetNsxCredentialsPlainArgsBuilder.() -> Unit): GetNsxCredentialsResult
Return
A collection of values returned by getNsxCredentials.
Parameters
argument
Builder for com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNsxCredentialsPlainArgs.