1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. vmwareengine
  5. getExternalAddress
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

gcp.vmwareengine.getExternalAddress

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

    Use this data source to get details about a external address resource.

    To get more information about external address, see:

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const myExternalAddress = gcp.vmwareengine.getExternalAddress({
        name: "my-external-address",
        parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_external_address = gcp.vmwareengine.get_external_address(name="my-external-address",
        parent="project/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.LookupExternalAddress(ctx, &vmwareengine.LookupExternalAddressArgs{
    			Name:   "my-external-address",
    			Parent: "project/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 myExternalAddress = Gcp.VMwareEngine.GetExternalAddress.Invoke(new()
        {
            Name = "my-external-address",
            Parent = "project/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.GetExternalAddressArgs;
    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 myExternalAddress = VmwareengineFunctions.getExternalAddress(GetExternalAddressArgs.builder()
                .name("my-external-address")
                .parent("project/my-project/locations/us-west1-a/privateClouds/my-cloud")
                .build());
    
        }
    }
    
    variables:
      myExternalAddress:
        fn::invoke:
          Function: gcp:vmwareengine:getExternalAddress
          Arguments:
            name: my-external-address
            parent: project/my-project/locations/us-west1-a/privateClouds/my-cloud
    

    Using getExternalAddress

    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 getExternalAddress(args: GetExternalAddressArgs, opts?: InvokeOptions): Promise<GetExternalAddressResult>
    function getExternalAddressOutput(args: GetExternalAddressOutputArgs, opts?: InvokeOptions): Output<GetExternalAddressResult>
    def get_external_address(name: Optional[str] = None,
                             parent: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetExternalAddressResult
    def get_external_address_output(name: Optional[pulumi.Input[str]] = None,
                             parent: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetExternalAddressResult]
    func LookupExternalAddress(ctx *Context, args *LookupExternalAddressArgs, opts ...InvokeOption) (*LookupExternalAddressResult, error)
    func LookupExternalAddressOutput(ctx *Context, args *LookupExternalAddressOutputArgs, opts ...InvokeOption) LookupExternalAddressResultOutput

    > Note: This function is named LookupExternalAddress in the Go SDK.

    public static class GetExternalAddress 
    {
        public static Task<GetExternalAddressResult> InvokeAsync(GetExternalAddressArgs args, InvokeOptions? opts = null)
        public static Output<GetExternalAddressResult> Invoke(GetExternalAddressInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetExternalAddressResult> getExternalAddress(GetExternalAddressArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:vmwareengine/getExternalAddress:getExternalAddress
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the resource.
    Parent string
    The resource name of the private cloud that this cluster belongs.
    Name string
    Name of the resource.
    Parent string
    The resource name of the private cloud that this cluster belongs.
    name String
    Name of the resource.
    parent String
    The resource name of the private cloud that this cluster belongs.
    name string
    Name of the resource.
    parent string
    The resource name of the private cloud that this cluster belongs.
    name str
    Name of the resource.
    parent str
    The resource name of the private cloud that this cluster belongs.
    name String
    Name of the resource.
    parent String
    The resource name of the private cloud that this cluster belongs.

    getExternalAddress Result

    The following output properties are available:

    CreateTime string
    Description string
    ExternalIp string
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalIp string
    Name string
    Parent string
    State string
    Uid string
    UpdateTime string
    CreateTime string
    Description string
    ExternalIp string
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalIp string
    Name string
    Parent string
    State string
    Uid string
    UpdateTime string
    createTime String
    description String
    externalIp String
    id String
    The provider-assigned unique ID for this managed resource.
    internalIp String
    name String
    parent String
    state String
    uid String
    updateTime String
    createTime string
    description string
    externalIp string
    id string
    The provider-assigned unique ID for this managed resource.
    internalIp string
    name string
    parent string
    state string
    uid string
    updateTime string
    create_time str
    description str
    external_ip str
    id str
    The provider-assigned unique ID for this managed resource.
    internal_ip str
    name str
    parent str
    state str
    uid str
    update_time str
    createTime String
    description String
    externalIp String
    id String
    The provider-assigned unique ID for this managed resource.
    internalIp String
    name String
    parent String
    state String
    uid String
    updateTime String

    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 v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi