Skip to main content

policy_based_routes

Overview

Namepolicy_based_routes
TypeResource
Idgoogle.networkconnectivity.policy_based_routes

Fields

NameDatatypeDescription
namestringImmutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
descriptionstringOptional. An optional description of this resource. Provide this field when you create the resource.
virtualMachineobjectVM instances to which this policy based route applies to.
kindstringOutput only. Type of this resource. Always networkconnectivity#policyBasedRoute for Policy Based Route resources.
createTimestringOutput only. Time when the PolicyBasedRoute was created.
updateTimestringOutput only. Time when the PolicyBasedRoute was updated.
interconnectAttachmentobjectInterconnectAttachment to which this route applies to.
warningsarrayOutput only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
priorityintegerOptional. 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.
filterobjectFilter matches L4 traffic.
nextHopOtherRoutesstringOptional. Other routes that will be referenced to determine the next hop of the packet.
networkstringRequired. Fully-qualified URL of the network that this route applies to. e.g. projects/my-project/global/networks/my-network.
nextHopIlbIpstringOptional. The IP of a global access enabled L4 ILB that should be the next hop to handle matching packets. For this version, only next_hop_ilb_ip is supported.
selfLinkstringOutput only. Server-defined fully-qualified URL for this resource.
labelsobjectUser-defined labels.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpolicyBasedRoutesId, projectsIdGets details of a single PolicyBasedRoute.
listSELECTprojectsIdLists PolicyBasedRoutes in a given project and location.
createINSERTprojectsIdCreates a new PolicyBasedRoute in a given project and location.
deleteDELETEpolicyBasedRoutesId, projectsIdDeletes a single PolicyBasedRoute.
_listEXECprojectsIdLists PolicyBasedRoutes in a given project and location.