Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi
gcp.vmwareengine.getExternalAddress
Explore with Pulumi AI
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:
getExternalAddress Result
The following output properties are available:
- Create
Time string - Description string
- External
Ip string - Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Ip string - Name string
- Parent string
- State string
- Uid string
- Update
Time string
- Create
Time string - Description string
- External
Ip string - Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Ip string - Name string
- Parent string
- State string
- Uid string
- Update
Time string
- create
Time String - description String
- external
Ip String - id String
- The provider-assigned unique ID for this managed resource.
- internal
Ip String - name String
- parent String
- state String
- uid String
- update
Time String
- create
Time string - description string
- external
Ip string - id string
- The provider-assigned unique ID for this managed resource.
- internal
Ip string - name string
- parent string
- state string
- uid string
- update
Time 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
- create
Time String - description String
- external
Ip String - id String
- The provider-assigned unique ID for this managed resource.
- internal
Ip String - name String
- parent String
- state String
- uid String
- update
Time 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.