Google Cloud v8.27.0 published on Thursday, Apr 17, 2025 by Pulumi
gcp.vmwareengine.getNetwork
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_gcp as gcp
my_nw = gcp.vmwareengine.get_network(name="us-central1-default",
    location="us-central1")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  myNw:
    fn::invoke:
      function: gcp:vmwareengine:getNetwork
      arguments:
        name: us-central1-default
        location: us-central1
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>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]func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)
func LookupNetworkOutput(ctx *Context, args *LookupNetworkOutputArgs, opts ...InvokeOption) LookupNetworkResultOutput> 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)
}public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
public static Output<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:vmwareengine/getNetwork:getNetwork
  arguments:
    # arguments dictionaryThe following arguments are supported:
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
 - Vpc
Networks List<GetNetwork Vpc Network>  - 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
 - Vpc
Networks []GetNetwork Vpc Network  - 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
 - vpc
Networks List<GetNetwork Vpc Network>  - 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
 - vpc
Networks GetNetwork Vpc Network[]  - 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[GetNetwork Vpc Network]  - 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
 - vpc
Networks List<Property Map> - project String
 
Supporting Types
GetNetworkVpcNetwork   
Package Details
- Repository
 - Google Cloud (GCP) Classic pulumi/pulumi-gcp
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
google-betaTerraform Provider.