gcp.compute.RouterStatus
Explore with Pulumi AI
Get a Cloud Router’s status within GCE from its name and region. This data source exposes the routes learned by a Cloud Router via BGP peers.
For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my-router = gcp.compute.getRouterStatus({
name: "myrouter",
});
import pulumi
import pulumi_gcp as gcp
my_router = gcp.compute.get_router_status(name="myrouter")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.GetRouterStatus(ctx, &compute.GetRouterStatusArgs{
Name: "myrouter",
}, 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 my_router = Gcp.Compute.GetRouterStatus.Invoke(new()
{
Name = "myrouter",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetRouterStatusArgs;
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 my-router = ComputeFunctions.getRouterStatus(GetRouterStatusArgs.builder()
.name("myrouter")
.build());
}
}
variables:
my-router:
fn::invoke:
Function: gcp:compute:getRouterStatus
Arguments:
name: myrouter
Using RouterStatus
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 routerStatus(args: RouterStatusArgs, opts?: InvokeOptions): Promise<RouterStatusResult>
function routerStatusOutput(args: RouterStatusOutputArgs, opts?: InvokeOptions): Output<RouterStatusResult>
def router_status(name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RouterStatusResult
def router_status_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RouterStatusResult]
func RouterStatus(ctx *Context, args *RouterStatusArgs, opts ...InvokeOption) (*RouterStatusResult, error)
func RouterStatusOutput(ctx *Context, args *RouterStatusOutputArgs, opts ...InvokeOption) RouterStatusResultOutput
public static class RouterStatus
{
public static Task<RouterStatusResult> InvokeAsync(RouterStatusArgs args, InvokeOptions? opts = null)
public static Output<RouterStatusResult> Invoke(RouterStatusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<RouterStatusResult> routerStatus(RouterStatusArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute:RouterStatus
arguments:
# arguments dictionary
The following arguments are supported:
RouterStatus Result
The following output properties are available:
- Best
Routes List<RouterStatus Best Route> - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - Best
Routes List<RouterFor Routers Status Best Routes For Router> - List of best
compute#routes
for this specific router. See gcp.compute.Route resource for available attributes. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network string
- The network name or resource link to the parent network of this subnetwork.
- Region string
- Project string
- Best
Routes []RouterStatus Best Route - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - Best
Routes []RouterFor Routers Status Best Routes For Router - List of best
compute#routes
for this specific router. See gcp.compute.Route resource for available attributes. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Network string
- The network name or resource link to the parent network of this subnetwork.
- Region string
- Project string
- best
Routes List<RouterStatus Best Route> - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - best
Routes List<RouterFor Routers Status Best Routes For Router> - List of best
compute#routes
for this specific router. See gcp.compute.Route resource for available attributes. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- network String
- The network name or resource link to the parent network of this subnetwork.
- region String
- project String
- best
Routes RouterStatus Best Route[] - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - best
Routes RouterFor Routers Status Best Routes For Router[] - List of best
compute#routes
for this specific router. See gcp.compute.Route resource for available attributes. - id string
- The provider-assigned unique ID for this managed resource.
- name string
- network string
- The network name or resource link to the parent network of this subnetwork.
- region string
- project string
- best_
routes Sequence[RouterStatus Best Route] - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - best_
routes_ Sequence[Routerfor_ routers Status Best Routes For Router] - List of best
compute#routes
for this specific router. See gcp.compute.Route resource for available attributes. - id str
- The provider-assigned unique ID for this managed resource.
- name str
- network str
- The network name or resource link to the parent network of this subnetwork.
- region str
- project str
- best
Routes List<Property Map> - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - best
Routes List<Property Map>For Routers - List of best
compute#routes
for this specific router. See gcp.compute.Route resource for available attributes. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- network String
- The network name or resource link to the parent network of this subnetwork.
- region String
- project String
Supporting Types
RouterStatusBestRoute
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Dest
Range string - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- Name string
- The name of the router.
- Network string
- The network name or resource link to the parent network of this subnetwork.
- Next
Hop stringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- Next
Hop stringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- Next
Hop stringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- Next
Hop stringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- Priority int
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string - List<string>
- A list of instance tags to which this route applies.
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Dest
Range string - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- Name string
- The name of the router.
- Network string
- The network name or resource link to the parent network of this subnetwork.
- Next
Hop stringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- Next
Hop stringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- Next
Hop stringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- Next
Hop stringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- Priority int
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string - []string
- A list of instance tags to which this route applies.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- dest
Range String - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name String
- The name of the router.
- network String
- The network name or resource link to the parent network of this subnetwork.
- next
Hop StringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next
Hop StringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next
Hop StringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next
Hop StringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- priority Integer
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String - List<String>
- A list of instance tags to which this route applies.
- description string
- An optional description of this resource. Provide this property when you create the resource.
- dest
Range string - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name string
- The name of the router.
- network string
- The network name or resource link to the parent network of this subnetwork.
- next
Hop stringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next
Hop stringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next
Hop stringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next
Hop stringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- next
Hop stringNetwork - URL to a Network that should handle matching packets.
- next
Hop stringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- priority number
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link string - string[]
- A list of instance tags to which this route applies.
- description str
- An optional description of this resource. Provide this property when you create the resource.
- dest_
range str - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name str
- The name of the router.
- network str
- The network name or resource link to the parent network of this subnetwork.
- next_
hop_ strgateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next_
hop_ strilb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next_
hop_ strinstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next_
hop_ strinstance_ zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next_
hop_ strip - Network IP address of an instance that should handle matching packets.
- next_
hop_ strnetwork - URL to a Network that should handle matching packets.
- next_
hop_ strvpn_ tunnel - URL to a VpnTunnel that should handle matching packets.
- priority int
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self_
link str - Sequence[str]
- A list of instance tags to which this route applies.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- dest
Range String - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name String
- The name of the router.
- network String
- The network name or resource link to the parent network of this subnetwork.
- next
Hop StringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next
Hop StringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next
Hop StringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next
Hop StringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- priority Number
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String - List<String>
- A list of instance tags to which this route applies.
RouterStatusBestRoutesForRouter
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Dest
Range string - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- Name string
- The name of the router.
- Network string
- The network name or resource link to the parent network of this subnetwork.
- Next
Hop stringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- Next
Hop stringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- Next
Hop stringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- Next
Hop stringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- Priority int
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string - List<string>
- A list of instance tags to which this route applies.
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Dest
Range string - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- Name string
- The name of the router.
- Network string
- The network name or resource link to the parent network of this subnetwork.
- Next
Hop stringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- Next
Hop stringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- Next
Hop stringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- Next
Hop stringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- Priority int
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string - []string
- A list of instance tags to which this route applies.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- dest
Range String - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name String
- The name of the router.
- network String
- The network name or resource link to the parent network of this subnetwork.
- next
Hop StringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next
Hop StringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next
Hop StringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next
Hop StringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- priority Integer
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String - List<String>
- A list of instance tags to which this route applies.
- description string
- An optional description of this resource. Provide this property when you create the resource.
- dest
Range string - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name string
- The name of the router.
- network string
- The network name or resource link to the parent network of this subnetwork.
- next
Hop stringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next
Hop stringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next
Hop stringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next
Hop stringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- next
Hop stringNetwork - URL to a Network that should handle matching packets.
- next
Hop stringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- priority number
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link string - string[]
- A list of instance tags to which this route applies.
- description str
- An optional description of this resource. Provide this property when you create the resource.
- dest_
range str - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name str
- The name of the router.
- network str
- The network name or resource link to the parent network of this subnetwork.
- next_
hop_ strgateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next_
hop_ strilb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next_
hop_ strinstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next_
hop_ strinstance_ zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next_
hop_ strip - Network IP address of an instance that should handle matching packets.
- next_
hop_ strnetwork - URL to a Network that should handle matching packets.
- next_
hop_ strvpn_ tunnel - URL to a VpnTunnel that should handle matching packets.
- priority int
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self_
link str - Sequence[str]
- A list of instance tags to which this route applies.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- dest
Range String - The destination range of outgoing packets that this route applies to. Only IPv4 is supported.
- name String
- The name of the router.
- network String
- The network name or resource link to the parent network of this subnetwork.
- next
Hop StringGateway - URL to a gateway that should handle matching packets.
Currently, you can only specify the internet gateway, using a full or
partial valid URL:
- 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway'
- 'projects/project/global/gateways/default-internet-gateway'
- 'global/gateways/default-internet-gateway'
- The string 'default-internet-gateway'.
- next
Hop StringIlb The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets.
With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values:
- 10.128.0.56
- https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule
- regions/region/forwardingRules/forwardingRule
When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC.
Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range.
- next
Hop StringInstance - URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
- 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance'
- 'projects/project/zones/zone/instances/instance'
- 'zones/zone/instances/instance'
- Just the instance name, with the zone in 'next_hop_instance_zone'.
- next
Hop StringInstance Zone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringVpn Tunnel - URL to a VpnTunnel that should handle matching packets.
- priority Number
The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length.
In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins.
Default value is 1000. Valid range is 0 through 65535.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String - List<String>
- A list of instance tags to which this route applies.
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.