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

gcp.vmwareengine.getNetwork

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 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:vmwareengine/getNetwork:getNetwork
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    Location of the resource.


    Name 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 string
    Location of the resource.


    Name 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 String
    Location of the resource.


    name 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 string
    Location of the resource.


    name 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 str
    Location of the resource.


    name 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 String
    Location of the resource.


    name 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 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 string
    Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
    Network 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 string
    Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
    network 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 String
    Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
    network 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 string
    Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
    network 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 str
    Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD)
    network 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 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.
    gcp logo
    Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi