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

gcp.vmwareengine.getNetworkPeering

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 network peering resource.

    To get more information about network peering, see:

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const myNetworkPeering = gcp.vmwareengine.getNetworkPeering({
        name: "my-network-peering",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    my_network_peering = gcp.vmwareengine.get_network_peering(name="my-network-peering")
    
    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.LookupNetworkPeering(ctx, &vmwareengine.LookupNetworkPeeringArgs{
    			Name: "my-network-peering",
    		}, 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 myNetworkPeering = Gcp.VMwareEngine.GetNetworkPeering.Invoke(new()
        {
            Name = "my-network-peering",
        });
    
    });
    
    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.GetNetworkPeeringArgs;
    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 myNetworkPeering = VmwareengineFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder()
                .name("my-network-peering")
                .build());
    
        }
    }
    
    variables:
      myNetworkPeering:
        fn::invoke:
          Function: gcp:vmwareengine:getNetworkPeering
          Arguments:
            name: my-network-peering
    

    Using getNetworkPeering

    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 getNetworkPeering(args: GetNetworkPeeringArgs, opts?: InvokeOptions): Promise<GetNetworkPeeringResult>
    function getNetworkPeeringOutput(args: GetNetworkPeeringOutputArgs, opts?: InvokeOptions): Output<GetNetworkPeeringResult>
    def get_network_peering(name: Optional[str] = None,
                            project: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetNetworkPeeringResult
    def get_network_peering_output(name: Optional[pulumi.Input[str]] = None,
                            project: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetNetworkPeeringResult]
    func LookupNetworkPeering(ctx *Context, args *LookupNetworkPeeringArgs, opts ...InvokeOption) (*LookupNetworkPeeringResult, error)
    func LookupNetworkPeeringOutput(ctx *Context, args *LookupNetworkPeeringOutputArgs, opts ...InvokeOption) LookupNetworkPeeringResultOutput

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

    public static class GetNetworkPeering 
    {
        public static Task<GetNetworkPeeringResult> InvokeAsync(GetNetworkPeeringArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkPeeringResult> Invoke(GetNetworkPeeringInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkPeeringResult> getNetworkPeering(GetNetworkPeeringArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:vmwareengine/getNetworkPeering:getNetworkPeering
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the resource.
    Project string
    Name string
    Name of the resource.
    Project string
    name String
    Name of the resource.
    project String
    name string
    Name of the resource.
    project string
    name str
    Name of the resource.
    project str
    name String
    Name of the resource.
    project String

    getNetworkPeering Result

    The following output properties are available:

    CreateTime string
    Description string
    ExportCustomRoutes bool
    ExportCustomRoutesWithPublicIp bool
    Id string
    The provider-assigned unique ID for this managed resource.
    ImportCustomRoutes bool
    ImportCustomRoutesWithPublicIp bool
    Name string
    PeerNetwork string
    PeerNetworkType string
    State string
    StateDetails string
    Uid string
    UpdateTime string
    VmwareEngineNetwork string
    VmwareEngineNetworkCanonical string
    Project string
    CreateTime string
    Description string
    ExportCustomRoutes bool
    ExportCustomRoutesWithPublicIp bool
    Id string
    The provider-assigned unique ID for this managed resource.
    ImportCustomRoutes bool
    ImportCustomRoutesWithPublicIp bool
    Name string
    PeerNetwork string
    PeerNetworkType string
    State string
    StateDetails string
    Uid string
    UpdateTime string
    VmwareEngineNetwork string
    VmwareEngineNetworkCanonical string
    Project string
    createTime String
    description String
    exportCustomRoutes Boolean
    exportCustomRoutesWithPublicIp Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    importCustomRoutes Boolean
    importCustomRoutesWithPublicIp Boolean
    name String
    peerNetwork String
    peerNetworkType String
    state String
    stateDetails String
    uid String
    updateTime String
    vmwareEngineNetwork String
    vmwareEngineNetworkCanonical String
    project String
    createTime string
    description string
    exportCustomRoutes boolean
    exportCustomRoutesWithPublicIp boolean
    id string
    The provider-assigned unique ID for this managed resource.
    importCustomRoutes boolean
    importCustomRoutesWithPublicIp boolean
    name string
    peerNetwork string
    peerNetworkType string
    state string
    stateDetails string
    uid string
    updateTime string
    vmwareEngineNetwork string
    vmwareEngineNetworkCanonical string
    project string
    createTime String
    description String
    exportCustomRoutes Boolean
    exportCustomRoutesWithPublicIp Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    importCustomRoutes Boolean
    importCustomRoutesWithPublicIp Boolean
    name String
    peerNetwork String
    peerNetworkType String
    state String
    stateDetails String
    uid String
    updateTime String
    vmwareEngineNetwork String
    vmwareEngineNetworkCanonical String
    project 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.
    gcp logo
    Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi