1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. vmwareengine
  5. getNsxCredentials
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.vmwareengine.getNsxCredentials

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 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/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
    	})
    }
    
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:vmwareengine/getNsxCredentials:getNsxCredentials
      arguments:
        # arguments dictionary

    The 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Parent string
    Password string
    The password of the NSX Credential.
    Username string
    The username of the NSX Credential.
    Id string
    The provider-assigned unique ID for this managed resource.
    Parent string
    Password string
    The password of the NSX Credential.
    Username string
    The username of the NSX Credential.
    id String
    The provider-assigned unique ID for this managed resource.
    parent String
    password String
    The password of the NSX Credential.
    username String
    The username of the NSX Credential.
    id string
    The provider-assigned unique ID for this managed resource.
    parent string
    password string
    The password of the NSX Credential.
    username string
    The username of the NSX Credential.
    id str
    The provider-assigned unique ID for this managed resource.
    parent str
    password str
    The password of the NSX Credential.
    username str
    The username of the NSX Credential.
    id String
    The provider-assigned unique ID for this managed resource.
    parent String
    password String
    The password of the NSX Credential.
    username String
    The username of the NSX 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.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi