GetRouter
Get a router within GCE from its name and VPC.
Using GetRouter
function getRouter(args: GetRouterArgs, opts?: InvokeOptions): Promise<GetRouterResult>function get_router(name=None, network=None, project=None, region=None, opts=None)func LookupRouter(ctx *Context, args *LookupRouterArgs, opts ...InvokeOption) (*LookupRouterResult, error)Note: This function is named
LookupRouterin the Go SDK.
public static class GetRouter {
public static Task<GetRouterResult> InvokeAsync(GetRouterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the router.
- Network string
The VPC network on which this router lives.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region this router has been created in. If unspecified, this defaults to the region configured in the provider.
- Name string
The name of the router.
- Network string
The VPC network on which this router lives.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The region this router has been created in. If unspecified, this defaults to the region configured in the provider.
- name string
The name of the router.
- network string
The VPC network on which this router lives.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The region this router has been created in. If unspecified, this defaults to the region configured in the provider.
- name str
The name of the router.
- network str
The VPC network on which this router lives.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The region this router has been created in. If unspecified, this defaults to the region configured in the provider.
GetRouter Result
The following output properties are available:
Supporting Types
GetRouterBgp
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetRouterBgpAdvertisedIpRange
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.