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 LookupRouter in 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:

Bgps List<GetRouterBgp>
CreationTimestamp string
Description string
Id string

The provider-assigned unique ID for this managed resource.

Name string
Network string
SelfLink string
Project string
Region string
Bgps []GetRouterBgp
CreationTimestamp string
Description string
Id string

The provider-assigned unique ID for this managed resource.

Name string
Network string
SelfLink string
Project string
Region string
bgps GetRouterBgp[]
creationTimestamp string
description string
id string

The provider-assigned unique ID for this managed resource.

name string
network string
selfLink string
project string
region string
bgps List[GetRouterBgp]
creation_timestamp str
description str
id str

The provider-assigned unique ID for this managed resource.

name str
network str
self_link str
project str
region str

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.

AdvertiseMode string
AdvertisedGroups List<string>
AdvertisedIpRanges List<GetRouterBgpAdvertisedIpRangeArgs>
Asn int
AdvertiseMode string
AdvertisedGroups []string
AdvertisedIpRanges []GetRouterBgpAdvertisedIpRange
Asn int
advertiseMode string
advertisedGroups string[]
advertisedIpRanges GetRouterBgpAdvertisedIpRange[]
asn number
str
advertised_groups List[str]
advertised_ip_ranges List[GetRouterBgpAdvertisedIpRange]
asn float

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.

Description string
Range string
Description string
Range string
description string
range string
description str
range str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.