Policy Based Route

A Policy Based Route in Google Cloud lets you define advanced routing rules that go beyond standard destination-based routing. It allows traffic to be directed based on attributes such as source IP, protocol, or next hop. This enables fine-grained control over how traffic flows between networks, on-premises environments, and the internet, supporting use cases like traffic steering, service chaining, and custom egress routing.

gcp.networkconnectivity_policy_based_route

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
create_timecoretimestampOutput only. Time when the policy-based route was created.
datadog_display_namecorestring
descriptioncorestringOptional. An optional description of this resource. Provide this field when you create the resource.
filtercorejsonRequired. The filter to match L4 traffic.
interconnect_attachmentcorejsonOptional. The interconnect attachments that this policy-based route applies to.
kindcorestringOutput only. Type of this resource. Always networkconnectivity#policyBasedRoute for policy-based Route resources.
labelscorearray<string>User-defined labels.
namecorestringImmutable. Identifier. A unique name of the resource in the form of `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
networkcorestringRequired. Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.
next_hop_ilb_ipcorestringOptional. 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_routescorestringOptional. Other routes that will be referenced to determine the next hop of the packet.
organization_idcorestring
parentcorestring
prioritycoreint64Optional. 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.
project_idcorestring
project_numbercorestring
region_idcorestring
resource_namecorestring
self_linkcorestringOutput only. Server-defined fully-qualified URL for this resource.
tagscorehstore_csv
update_timecoretimestampOutput only. Time when the policy-based route was updated.
virtual_machinecorejsonOptional. VM instances that this policy-based route applies to.
warningscorejsonOutput only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
zone_idcorestring