Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
gcp.vmwareengine.getNetworkPeering
Explore with Pulumi AI
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)
public static Output<GetNetworkPeeringResult> getNetworkPeering(GetNetworkPeeringArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:vmwareengine/getNetworkPeering:getNetworkPeering
  arguments:
    # arguments dictionaryThe following arguments are supported:
getNetworkPeering Result
The following output properties are available:
- CreateTime string
- Description string
- ExportCustom boolRoutes 
- ExportCustom boolRoutes With Public Ip 
- Id string
- The provider-assigned unique ID for this managed resource.
- ImportCustom boolRoutes 
- ImportCustom boolRoutes With Public Ip 
- Name string
- PeerNetwork string
- PeerNetwork stringType 
- State string
- StateDetails string
- Uid string
- UpdateTime string
- VmwareEngine stringNetwork 
- VmwareEngine stringNetwork Canonical 
- Project string
- CreateTime string
- Description string
- ExportCustom boolRoutes 
- ExportCustom boolRoutes With Public Ip 
- Id string
- The provider-assigned unique ID for this managed resource.
- ImportCustom boolRoutes 
- ImportCustom boolRoutes With Public Ip 
- Name string
- PeerNetwork string
- PeerNetwork stringType 
- State string
- StateDetails string
- Uid string
- UpdateTime string
- VmwareEngine stringNetwork 
- VmwareEngine stringNetwork Canonical 
- Project string
- createTime String
- description String
- exportCustom BooleanRoutes 
- exportCustom BooleanRoutes With Public Ip 
- id String
- The provider-assigned unique ID for this managed resource.
- importCustom BooleanRoutes 
- importCustom BooleanRoutes With Public Ip 
- name String
- peerNetwork String
- peerNetwork StringType 
- state String
- stateDetails String
- uid String
- updateTime String
- vmwareEngine StringNetwork 
- vmwareEngine StringNetwork Canonical 
- project String
- createTime string
- description string
- exportCustom booleanRoutes 
- exportCustom booleanRoutes With Public Ip 
- id string
- The provider-assigned unique ID for this managed resource.
- importCustom booleanRoutes 
- importCustom booleanRoutes With Public Ip 
- name string
- peerNetwork string
- peerNetwork stringType 
- state string
- stateDetails string
- uid string
- updateTime string
- vmwareEngine stringNetwork 
- vmwareEngine stringNetwork Canonical 
- project string
- create_time str
- description str
- export_custom_ boolroutes 
- export_custom_ boolroutes_ with_ public_ ip 
- id str
- The provider-assigned unique ID for this managed resource.
- import_custom_ boolroutes 
- import_custom_ boolroutes_ with_ public_ ip 
- name str
- peer_network str
- peer_network_ strtype 
- state str
- state_details str
- uid str
- update_time str
- vmware_engine_ strnetwork 
- vmware_engine_ strnetwork_ canonical 
- project str
- createTime String
- description String
- exportCustom BooleanRoutes 
- exportCustom BooleanRoutes With Public Ip 
- id String
- The provider-assigned unique ID for this managed resource.
- importCustom BooleanRoutes 
- importCustom BooleanRoutes With Public Ip 
- name String
- peerNetwork String
- peerNetwork StringType 
- state String
- stateDetails String
- uid String
- updateTime String
- vmwareEngine StringNetwork 
- vmwareEngine StringNetwork Canonical 
- 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-betaTerraform Provider.