Class GetRouter
Inheritance
System.Object
GetRouter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetRouter
Methods
View SourceInvokeAsync(GetRouterArgs, InvokeOptions)
Get a router within GCE from its name and VPC.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var my_router = Output.Create(Gcp.Compute.GetRouter.InvokeAsync(new Gcp.Compute.GetRouterArgs
{
Name = "myrouter-us-east1",
Network = "my-network",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetRouterResult> InvokeAsync(GetRouterArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetRouterArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetRouterResult> |