gcp.compute.getRouterStatus
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/v8/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 getRouterStatus
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 getRouterStatus(args: GetRouterStatusArgs, opts?: InvokeOptions): Promise<GetRouterStatusResult>
function getRouterStatusOutput(args: GetRouterStatusOutputArgs, opts?: InvokeOptions): Output<GetRouterStatusResult>
def get_router_status(name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRouterStatusResult
def get_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[GetRouterStatusResult]
func GetRouterStatus(ctx *Context, args *GetRouterStatusArgs, opts ...InvokeOption) (*GetRouterStatusResult, error)
func GetRouterStatusOutput(ctx *Context, args *GetRouterStatusOutputArgs, opts ...InvokeOption) GetRouterStatusResultOutput
> Note: This function is named GetRouterStatus
in the Go SDK.
public static class GetRouterStatus
{
public static Task<GetRouterStatusResult> InvokeAsync(GetRouterStatusArgs args, InvokeOptions? opts = null)
public static Output<GetRouterStatusResult> Invoke(GetRouterStatusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRouterStatusResult> getRouterStatus(GetRouterStatusArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getRouterStatus:getRouterStatus
arguments:
# arguments dictionary
The following arguments are supported:
getRouterStatus Result
The following output properties are available:
- Best
Routes List<GetRouter Status Best Route> - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - Best
Routes List<GetFor Routers Router 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 []GetRouter Status Best Route - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - Best
Routes []GetFor Routers Router 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<GetRouter Status Best Route> - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - best
Routes List<GetFor Routers Router 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 GetRouter Status Best Route[] - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - best
Routes GetFor Routers Router 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[GetRouter Status Best Route] - List of best
compute#routes
configurations for this router's network. See gcp.compute.Route resource for available attributes. - best_
routes_ Sequence[Getfor_ routers Router 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
GetRouterStatusBestRoute
- 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 stringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 stringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 StringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 stringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- next
Hop stringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next
Hop stringNetwork - URL to a Network that should handle matching packets.
- next
Hop stringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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_ strinter_ region_ cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next_
hop_ strip - Network IP address of an instance that should handle matching packets.
- next_
hop_ strmed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next_
hop_ strnetwork - URL to a Network that should handle matching packets.
- next_
hop_ strorigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 StringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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.
GetRouterStatusBestRoutesForRouter
- 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 stringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 stringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- Next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- Next
Hop stringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- Next
Hop stringNetwork - URL to a Network that should handle matching packets.
- Next
Hop stringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 StringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 stringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next
Hop stringIp - Network IP address of an instance that should handle matching packets.
- next
Hop stringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next
Hop stringNetwork - URL to a Network that should handle matching packets.
- next
Hop stringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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_ strinter_ region_ cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next_
hop_ strip - Network IP address of an instance that should handle matching packets.
- next_
hop_ strmed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next_
hop_ strnetwork - URL to a Network that should handle matching packets.
- next_
hop_ strorigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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 StringInter Region Cost - Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.
- next
Hop StringIp - Network IP address of an instance that should handle matching packets.
- next
Hop StringMed - Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.
- next
Hop StringNetwork - URL to a Network that should handle matching packets.
- next
Hop StringOrigin - Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.
- 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.