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
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>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]func LookupPolicyBasedRoute(ctx *Context, args *LookupPolicyBasedRouteArgs, opts ...InvokeOption) (*LookupPolicyBasedRouteResult, error)
func LookupPolicyBasedRouteOutput(ctx *Context, args *LookupPolicyBasedRouteOutputArgs, opts ...InvokeOption) LookupPolicyBasedRouteResultOutput> 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)
}public static CompletableFuture<GetPolicyBasedRouteResult> getPolicyBasedRoute(GetPolicyBasedRouteArgs args, InvokeOptions options)
public static Output<GetPolicyBasedRouteResult> getPolicyBasedRoute(GetPolicyBasedRouteArgs args, InvokeOptions options)
fn::invoke:
function: google-native:networkconnectivity/v1:getPolicyBasedRoute
arguments:
# arguments dictionaryThe following arguments are supported:
- Policy
Based stringRoute Id - Project string
- Policy
Based stringRoute Id - Project string
- policy
Based StringRoute Id - project String
- policy
Based stringRoute Id - project string
- policy_
based_ strroute_ id - project str
- policy
Based StringRoute Id - project String
getPolicyBasedRoute Result
The following output properties are available:
- Create
Time 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.
Google Native. Network Connectivity. V1. Outputs. Filter Response - The filter to match L4 traffic.
- Interconnect
Attachment Pulumi.Google Native. Network Connectivity. V1. Outputs. Interconnect Attachment Response - 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.
- Next
Hop stringIlb Ip - 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 stringOther Routes - 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 string - Server-defined fully-qualified URL for this resource.
- Update
Time string - Time when the policy-based route was updated.
- Virtual
Machine Pulumi.Google Native. Network Connectivity. V1. Outputs. Virtual Machine Response - Optional. VM instances to which this policy-based route applies to.
- Warnings
List<Pulumi.
Google Native. Network Connectivity. V1. Outputs. Warnings Response> - If potential misconfigurations are detected for this route, this field will be populated with warning messages.
- Create
Time 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
Filter
Response - The filter to match L4 traffic.
- Interconnect
Attachment InterconnectAttachment Response - 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.
- Next
Hop stringIlb Ip - 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 stringOther Routes - 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 string - Server-defined fully-qualified URL for this resource.
- Update
Time string - Time when the policy-based route was updated.
- Virtual
Machine VirtualMachine Response - Optional. VM instances to which this policy-based route applies to.
- Warnings
[]Warnings
Response - If potential misconfigurations are detected for this route, this field will be populated with warning messages.
- create
Time 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
Filter
Response - The filter to match L4 traffic.
- interconnect
Attachment InterconnectAttachment Response - 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.
- next
Hop StringIlb Ip - 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 StringOther Routes - 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.
- self
Link String - Server-defined fully-qualified URL for this resource.
- update
Time String - Time when the policy-based route was updated.
- virtual
Machine VirtualMachine Response - Optional. VM instances to which this policy-based route applies to.
- warnings
List<Warnings
Response> - If potential misconfigurations are detected for this route, this field will be populated with warning messages.
- create
Time 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
Filter
Response - The filter to match L4 traffic.
- interconnect
Attachment InterconnectAttachment Response - 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.
- next
Hop stringIlb Ip - 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 stringOther Routes - 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.
- self
Link string - Server-defined fully-qualified URL for this resource.
- update
Time string - Time when the policy-based route was updated.
- virtual
Machine VirtualMachine Response - Optional. VM instances to which this policy-based route applies to.
- warnings
Warnings
Response[] - 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
Filter
Response - The filter to match L4 traffic.
- interconnect_
attachment InterconnectAttachment Response - 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_ strilb_ ip - 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_ strother_ routes - 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 VirtualMachine Response - Optional. VM instances to which this policy-based route applies to.
- warnings
Sequence[Warnings
Response] - If potential misconfigurations are detected for this route, this field will be populated with warning messages.
- create
Time 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.
- interconnect
Attachment 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.
- next
Hop StringIlb Ip - 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 StringOther Routes - 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.
- self
Link String - Server-defined fully-qualified URL for this resource.
- update
Time String - Time when the policy-based route was updated.
- virtual
Machine 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
- Dest
Range 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.
- Ip
Protocol string - Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
- Protocol
Version string - Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
- Src
Range 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 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.
- Ip
Protocol string - Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
- Protocol
Version string - Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
- Src
Range 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 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.
- ip
Protocol String - Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
- protocol
Version String - Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
- src
Range 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 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.
- ip
Protocol string - Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
- protocol
Version string - Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
- src
Range 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 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 str - Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
- protocol_
version str - Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
- src_
range 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.
- dest
Range 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.
- ip
Protocol String - Optional. The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
- protocol
Version String - Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.
- src
Range 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 string
- Optional. Cloud region to install this policy-based route on interconnect attachment. Use
allto install it on all interconnect attachments.
- Region string
- Optional. Cloud region to install this policy-based route on interconnect attachment. Use
allto install it on all interconnect attachments.
- region String
- Optional. Cloud region to install this policy-based route on interconnect attachment. Use
allto install it on all interconnect attachments.
- region string
- Optional. Cloud region to install this policy-based route on interconnect attachment. Use
allto install it on all interconnect attachments.
- region str
- Optional. Cloud region to install this policy-based route on interconnect attachment. Use
allto install it on all interconnect attachments.
- region String
- Optional. Cloud region to install this policy-based route on interconnect attachment. Use
allto install it on all interconnect attachments.
VirtualMachineResponse
- 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.
- []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.
- 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.
- 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.
- 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.
- 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 string
- A warning code, if applicable.
- Data 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.
- Warning
Message string - A human-readable description of the warning code.
- Code string
- A warning code, if applicable.
- Data 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.
- Warning
Message string - A human-readable description of the warning code.
- code String
- A warning code, if applicable.
- data 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.
- warning
Message String - A human-readable description of the warning code.
- code string
- A warning code, if applicable.
- data {[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.
- warning
Message string - A human-readable description of the warning code.
- code str
- A warning code, if applicable.
- data 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 str - A human-readable description of the warning code.
- code String
- A warning code, if applicable.
- data 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.
- warning
Message 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
