Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:vmwareengine/getNetworkPeering:getNetworkPeering
arguments:
# arguments dictionary
The following arguments are supported:
getNetworkPeering Result
The following output properties are available:
- Create
Time string - Description string
- Export
Custom boolRoutes - Export
Custom boolRoutes With Public Ip - Id string
- The provider-assigned unique ID for this managed resource.
- Import
Custom boolRoutes - Import
Custom boolRoutes With Public Ip - Name string
- Peer
Network string - Peer
Network stringType - State string
- State
Details string - Uid string
- Update
Time string - Vmware
Engine stringNetwork - Vmware
Engine stringNetwork Canonical - Project string
- Create
Time string - Description string
- Export
Custom boolRoutes - Export
Custom boolRoutes With Public Ip - Id string
- The provider-assigned unique ID for this managed resource.
- Import
Custom boolRoutes - Import
Custom boolRoutes With Public Ip - Name string
- Peer
Network string - Peer
Network stringType - State string
- State
Details string - Uid string
- Update
Time string - Vmware
Engine stringNetwork - Vmware
Engine stringNetwork Canonical - Project string
- create
Time String - description String
- export
Custom BooleanRoutes - export
Custom BooleanRoutes With Public Ip - id String
- The provider-assigned unique ID for this managed resource.
- import
Custom BooleanRoutes - import
Custom BooleanRoutes With Public Ip - name String
- peer
Network String - peer
Network StringType - state String
- state
Details String - uid String
- update
Time String - vmware
Engine StringNetwork - vmware
Engine StringNetwork Canonical - project String
- create
Time string - description string
- export
Custom booleanRoutes - export
Custom booleanRoutes With Public Ip - id string
- The provider-assigned unique ID for this managed resource.
- import
Custom booleanRoutes - import
Custom booleanRoutes With Public Ip - name string
- peer
Network string - peer
Network stringType - state string
- state
Details string - uid string
- update
Time string - vmware
Engine stringNetwork - vmware
Engine 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
- create
Time String - description String
- export
Custom BooleanRoutes - export
Custom BooleanRoutes With Public Ip - id String
- The provider-assigned unique ID for this managed resource.
- import
Custom BooleanRoutes - import
Custom BooleanRoutes With Public Ip - name String
- peer
Network String - peer
Network StringType - state String
- state
Details String - uid String
- update
Time String - vmware
Engine StringNetwork - vmware
Engine 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-beta
Terraform Provider.