1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. vmwareengine
  5. getNetwork
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.vmwareengine.getNetwork

Explore with Pulumi AI

Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

Use this data source to get details about a VMwareEngine network resource.

To get more information about VMwareEngine Network, see:

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const myNw = gcp.vmwareengine.getNetwork({
    name: "us-central1-default",
    location: "us-central1",
});
Copy
import pulumi
import pulumi_gcp as gcp

my_nw = gcp.vmwareengine.get_network(name="us-central1-default",
    location="us-central1")
Copy
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.LookupNetwork(ctx, &vmwareengine.LookupNetworkArgs{
			Name:     "us-central1-default",
			Location: "us-central1",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var myNw = Gcp.VMwareEngine.GetNetwork.Invoke(new()
    {
        Name = "us-central1-default",
        Location = "us-central1",
    });

});
Copy
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.GetNetworkArgs;
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 myNw = VmwareengineFunctions.getNetwork(GetNetworkArgs.builder()
            .name("us-central1-default")
            .location("us-central1")
            .build());

    }
}
Copy
variables:
  myNw:
    fn::invoke:
      function: gcp:vmwareengine:getNetwork
      arguments:
        name: us-central1-default
        location: us-central1
Copy

Using getNetwork

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 getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
function getNetworkOutput(args: GetNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkResult>
Copy
def get_network(location: Optional[str] = None,
                name: Optional[str] = None,
                project: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetNetworkResult
def get_network_output(location: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                project: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetNetworkResult]
Copy
func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)
func LookupNetworkOutput(ctx *Context, args *LookupNetworkOutputArgs, opts ...InvokeOption) LookupNetworkResultOutput
Copy

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

public static class GetNetwork 
{
    public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkResult> Invoke(GetNetworkInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
public static Output<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:vmwareengine/getNetwork:getNetwork
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location This property is required. string
Location of the resource.


Name This property is required. string
Name of the resource.
Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Location This property is required. string
Location of the resource.


Name This property is required. string
Name of the resource.
Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. String
Location of the resource.


name This property is required. String
Name of the resource.
project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. string
Location of the resource.


name This property is required. string
Name of the resource.
project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. str
Location of the resource.


name This property is required. str
Name of the resource.
project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
location This property is required. String
Location of the resource.


name This property is required. String
Name of the resource.
project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

getNetwork Result

The following output properties are available:

Description string
Id string
The provider-assigned unique ID for this managed resource.
Location string
Name string
State string
Type string
Uid string
VpcNetworks List<GetNetworkVpcNetwork>
Project string
Description string
Id string
The provider-assigned unique ID for this managed resource.
Location string
Name string
State string
Type string
Uid string
VpcNetworks []GetNetworkVpcNetwork
Project string
description String
id String
The provider-assigned unique ID for this managed resource.
location String
name String
state String
type String
uid String
vpcNetworks List<GetNetworkVpcNetwork>
project String
description string
id string
The provider-assigned unique ID for this managed resource.
location string
name string
state string
type string
uid string
vpcNetworks GetNetworkVpcNetwork[]
project string
description str
id str
The provider-assigned unique ID for this managed resource.
location str
name str
state str
type str
uid str
vpc_networks Sequence[GetNetworkVpcNetwork]
project str
description String
id String
The provider-assigned unique ID for this managed resource.
location String
name String
state String
type String
uid String
vpcNetworks List<Property Map>
project String

Supporting Types

GetNetworkVpcNetwork

Network This property is required. string
The relative resource name of the service VPC network this VMware Engine network is attached to. For example: projects/123123/global/networks/my-network
Type This property is required. string
Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
Network This property is required. string
The relative resource name of the service VPC network this VMware Engine network is attached to. For example: projects/123123/global/networks/my-network
Type This property is required. string
Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
network This property is required. String
The relative resource name of the service VPC network this VMware Engine network is attached to. For example: projects/123123/global/networks/my-network
type This property is required. String
Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
network This property is required. string
The relative resource name of the service VPC network this VMware Engine network is attached to. For example: projects/123123/global/networks/my-network
type This property is required. string
Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
network This property is required. str
The relative resource name of the service VPC network this VMware Engine network is attached to. For example: projects/123123/global/networks/my-network
type This property is required. str
Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
network This property is required. String
The relative resource name of the service VPC network this VMware Engine network is attached to. For example: projects/123123/global/networks/my-network
type This property is required. String
Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)

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.
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi