get Network
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",
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
my_nw = gcp.vmwareengine.get_network(name="us-central1-default",
location="us-central1")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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.LookupNetwork(ctx, &vmwareengine.LookupNetworkArgs{
Name: "us-central1-default",
Location: "us-central1",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
myNw:
fn::invoke:
Function: gcp:vmwareengine:getNetwork
Arguments:
name: us-central1-default
location: us-central1
Content copied to clipboard
Return
A collection of values returned by getNetwork.
Parameters
argument
A collection of arguments for invoking getNetwork.
Return
A collection of values returned by getNetwork.
Parameters
location
Location of the resource.
name
Name of the resource.
project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
See also
Return
A collection of values returned by getNetwork.
Parameters
argument
Builder for com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPlainArgs.