1. Packages
  2. Google Cloud Native
  3. API Docs
  4. networkconnectivity
  5. networkconnectivity/v1
  6. getPolicyBasedRoute

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.networkconnectivity/v1.getPolicyBasedRoute

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Gets details of a single policy-based route.

Using getPolicyBasedRoute

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 getPolicyBasedRoute(args: GetPolicyBasedRouteArgs, opts?: InvokeOptions): Promise<GetPolicyBasedRouteResult>
function getPolicyBasedRouteOutput(args: GetPolicyBasedRouteOutputArgs, opts?: InvokeOptions): Output<GetPolicyBasedRouteResult>
Copy
def get_policy_based_route(policy_based_route_id: Optional[str] = None,
                           project: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetPolicyBasedRouteResult
def get_policy_based_route_output(policy_based_route_id: Optional[pulumi.Input[str]] = None,
                           project: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetPolicyBasedRouteResult]
Copy
func LookupPolicyBasedRoute(ctx *Context, args *LookupPolicyBasedRouteArgs, opts ...InvokeOption) (*LookupPolicyBasedRouteResult, error)
func LookupPolicyBasedRouteOutput(ctx *Context, args *LookupPolicyBasedRouteOutputArgs, opts ...InvokeOption) LookupPolicyBasedRouteResultOutput
Copy

> Note: This function is named LookupPolicyBasedRoute in the Go SDK.

public static class GetPolicyBasedRoute 
{
    public static Task<GetPolicyBasedRouteResult> InvokeAsync(GetPolicyBasedRouteArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyBasedRouteResult> Invoke(GetPolicyBasedRouteInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPolicyBasedRouteResult> getPolicyBasedRoute(GetPolicyBasedRouteArgs args, InvokeOptions options)
public static Output<GetPolicyBasedRouteResult> getPolicyBasedRoute(GetPolicyBasedRouteArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:networkconnectivity/v1:getPolicyBasedRoute
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PolicyBasedRouteId This property is required. string
Project string
PolicyBasedRouteId This property is required. string
Project string
policyBasedRouteId This property is required. String
project String
policyBasedRouteId This property is required. string
project string
policy_based_route_id This property is required. str
project str
policyBasedRouteId This property is required. String
project String

getPolicyBasedRoute Result

The following output properties are available:

CreateTime string
Time when the policy-based route was created.
Description string
Optional. An optional description of this resource. Provide this field when you create the resource.
Filter Pulumi.GoogleNative.NetworkConnectivity.V1.Outputs.FilterResponse
The filter to match L4 traffic.
InterconnectAttachment Pulumi.GoogleNative.NetworkConnectivity.V1.Outputs.InterconnectAttachmentResponse
Optional. The interconnect attachments that this policy-based route applies to.
Kind string
Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
Labels Dictionary<string, string>
User-defined labels.
Name string
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
Network string
Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
NextHopIlbIp string
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
NextHopOtherRoutes string
Optional. Other routes that will be referenced to determine the next hop of the packet.
Priority int
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
SelfLink string
Server-defined fully-qualified URL for this resource.
UpdateTime string
Time when the policy-based route was updated.
VirtualMachine Pulumi.GoogleNative.NetworkConnectivity.V1.Outputs.VirtualMachineResponse
Optional. VM instances to which this policy-based route applies to.
Warnings List<Pulumi.GoogleNative.NetworkConnectivity.V1.Outputs.WarningsResponse>
If potential misconfigurations are detected for this route, this field will be populated with warning messages.
CreateTime string
Time when the policy-based route was created.
Description string
Optional. An optional description of this resource. Provide this field when you create the resource.
Filter FilterResponse
The filter to match L4 traffic.
InterconnectAttachment InterconnectAttachmentResponse
Optional. The interconnect attachments that this policy-based route applies to.
Kind string
Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
Labels map[string]string
User-defined labels.
Name string
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
Network string
Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
NextHopIlbIp string
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
NextHopOtherRoutes string
Optional. Other routes that will be referenced to determine the next hop of the packet.
Priority int
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
SelfLink string
Server-defined fully-qualified URL for this resource.
UpdateTime string
Time when the policy-based route was updated.
VirtualMachine VirtualMachineResponse
Optional. VM instances to which this policy-based route applies to.
Warnings []WarningsResponse
If potential misconfigurations are detected for this route, this field will be populated with warning messages.
createTime String
Time when the policy-based route was created.
description String
Optional. An optional description of this resource. Provide this field when you create the resource.
filter FilterResponse
The filter to match L4 traffic.
interconnectAttachment InterconnectAttachmentResponse
Optional. The interconnect attachments that this policy-based route applies to.
kind String
Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
labels Map<String,String>
User-defined labels.
name String
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
network String
Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
nextHopIlbIp String
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
nextHopOtherRoutes String
Optional. Other routes that will be referenced to determine the next hop of the packet.
priority Integer
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
selfLink String
Server-defined fully-qualified URL for this resource.
updateTime String
Time when the policy-based route was updated.
virtualMachine VirtualMachineResponse
Optional. VM instances to which this policy-based route applies to.
warnings List<WarningsResponse>
If potential misconfigurations are detected for this route, this field will be populated with warning messages.
createTime string
Time when the policy-based route was created.
description string
Optional. An optional description of this resource. Provide this field when you create the resource.
filter FilterResponse
The filter to match L4 traffic.
interconnectAttachment InterconnectAttachmentResponse
Optional. The interconnect attachments that this policy-based route applies to.
kind string
Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
labels {[key: string]: string}
User-defined labels.
name string
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
network string
Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
nextHopIlbIp string
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
nextHopOtherRoutes string
Optional. Other routes that will be referenced to determine the next hop of the packet.
priority number
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
selfLink string
Server-defined fully-qualified URL for this resource.
updateTime string
Time when the policy-based route was updated.
virtualMachine VirtualMachineResponse
Optional. VM instances to which this policy-based route applies to.
warnings WarningsResponse[]
If potential misconfigurations are detected for this route, this field will be populated with warning messages.
create_time str
Time when the policy-based route was created.
description str
Optional. An optional description of this resource. Provide this field when you create the resource.
filter FilterResponse
The filter to match L4 traffic.
interconnect_attachment InterconnectAttachmentResponse
Optional. The interconnect attachments that this policy-based route applies to.
kind str
Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
labels Mapping[str, str]
User-defined labels.
name str
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
network str
Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
next_hop_ilb_ip str
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
next_hop_other_routes str
Optional. Other routes that will be referenced to determine the next hop of the packet.
priority int
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
self_link str
Server-defined fully-qualified URL for this resource.
update_time str
Time when the policy-based route was updated.
virtual_machine VirtualMachineResponse
Optional. VM instances to which this policy-based route applies to.
warnings Sequence[WarningsResponse]
If potential misconfigurations are detected for this route, this field will be populated with warning messages.
createTime String
Time when the policy-based route was created.
description String
Optional. An optional description of this resource. Provide this field when you create the resource.
filter Property Map
The filter to match L4 traffic.
interconnectAttachment Property Map
Optional. The interconnect attachments that this policy-based route applies to.
kind String
Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
labels Map<String>
User-defined labels.
name String
Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
network String
Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
nextHopIlbIp String
Optional. The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. For this version, only nextHopIlbIp is supported.
nextHopOtherRoutes String
Optional. Other routes that will be referenced to determine the next hop of the packet.
priority Number
Optional. The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
selfLink String
Server-defined fully-qualified URL for this resource.
updateTime String
Time when the policy-based route was updated.
virtualMachine Property Map
Optional. VM instances to which this policy-based route applies to.
warnings List<Property Map>
If potential misconfigurations are detected for this route, this field will be populated with warning messages.

Supporting Types

FilterResponse

DestRange This property is required. string
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
IpProtocol This property is required. string
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
ProtocolVersion This property is required. string
Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
SrcRange This property is required. string
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
DestRange This property is required. string
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
IpProtocol This property is required. string
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
ProtocolVersion This property is required. string
Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
SrcRange This property is required. string
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
destRange This property is required. String
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
ipProtocol This property is required. String
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
protocolVersion This property is required. String
Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
srcRange This property is required. String
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
destRange This property is required. string
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
ipProtocol This property is required. string
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
protocolVersion This property is required. string
Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
srcRange This property is required. string
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
dest_range This property is required. str
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
ip_protocol This property is required. str
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
protocol_version This property is required. str
Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
src_range This property is required. str
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
destRange This property is required. String
Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
ipProtocol This property is required. String
Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
protocolVersion This property is required. String
Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
srcRange This property is required. String
Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.

InterconnectAttachmentResponse

Region This property is required. string
Optional. Cloud region to install this policy-based route on interconnect attachment. Use all to install it on all interconnect attachments.
Region This property is required. string
Optional. Cloud region to install this policy-based route on interconnect attachment. Use all to install it on all interconnect attachments.
region This property is required. String
Optional. Cloud region to install this policy-based route on interconnect attachment. Use all to install it on all interconnect attachments.
region This property is required. string
Optional. Cloud region to install this policy-based route on interconnect attachment. Use all to install it on all interconnect attachments.
region This property is required. str
Optional. Cloud region to install this policy-based route on interconnect attachment. Use all to install it on all interconnect attachments.
region This property is required. String
Optional. Cloud region to install this policy-based route on interconnect attachment. Use all to install it on all interconnect attachments.

VirtualMachineResponse

Tags This property is required. List<string>
Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
Tags This property is required. []string
Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
tags This property is required. List<String>
Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
tags This property is required. string[]
Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
tags This property is required. Sequence[str]
Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
tags This property is required. List<String>
Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.

WarningsResponse

Code This property is required. string
A warning code, if applicable.
Data This property is required. Dictionary<string, string>
Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.
WarningMessage This property is required. string
A human-readable description of the warning code.
Code This property is required. string
A warning code, if applicable.
Data This property is required. map[string]string
Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.
WarningMessage This property is required. string
A human-readable description of the warning code.
code This property is required. String
A warning code, if applicable.
data This property is required. Map<String,String>
Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.
warningMessage This property is required. String
A human-readable description of the warning code.
code This property is required. string
A warning code, if applicable.
data This property is required. {[key: string]: string}
Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.
warningMessage This property is required. string
A human-readable description of the warning code.
code This property is required. str
A warning code, if applicable.
data This property is required. Mapping[str, str]
Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.
warning_message This property is required. str
A human-readable description of the warning code.
code This property is required. String
A warning code, if applicable.
data This property is required. Map<String>
Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.
warningMessage This property is required. String
A human-readable description of the warning code.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi