Network Connectivity v1 API - Class PolicyBasedRoute (2.1.0)

public sealed class PolicyBasedRoute : IMessage<PolicyBasedRoute>, IEquatable<PolicyBasedRoute>, IDeepCloneable<PolicyBasedRoute>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Connectivity v1 API class PolicyBasedRoute.

Policy Based Routes (PBR) are more powerful routes that allows GCP customers to route their L4 network traffic based on not just destination IP, but also source IP, protocol and more. A PBR always take precedence when it conflicts with other types of routes. Next id: 19

Inheritance

Object > PolicyBasedRoute

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Constructors

PolicyBasedRoute()

public PolicyBasedRoute()

PolicyBasedRoute(PolicyBasedRoute)

public PolicyBasedRoute(PolicyBasedRoute other)
Parameter
NameDescription
otherPolicyBasedRoute

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Time when the PolicyBasedRoute was created.

Property Value
TypeDescription
Timestamp

Description

public string Description { get; set; }

Optional. An optional description of this resource. Provide this field when you create the resource.

Property Value
TypeDescription
String

Filter

public PolicyBasedRoute.Types.Filter Filter { get; set; }

Required. The filter to match L4 traffic.

Property Value
TypeDescription
PolicyBasedRoute.Types.Filter

InterconnectAttachment

public PolicyBasedRoute.Types.InterconnectAttachment InterconnectAttachment { get; set; }

Optional. The interconnect attachments to which this route applies to.

Property Value
TypeDescription
PolicyBasedRoute.Types.InterconnectAttachment

Kind

public string Kind { get; set; }

Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for Policy Based Route resources.

Property Value
TypeDescription
String

Labels

public MapField<string, string> Labels { get; }

User-defined labels.

Property Value
TypeDescription
MapField<String, String>

Name

public string Name { get; set; }

Immutable. A unique name of the resource in the form of projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}

Property Value
TypeDescription
String

Network

public string Network { get; set; }

Required. Fully-qualified URL of the network that this route applies to. e.g. projects/my-project/global/networks/my-network.

Property Value
TypeDescription
String

NetworkAsNetworkName

public NetworkName NetworkAsNetworkName { get; set; }

NetworkName-typed view over the Network resource name property.

Property Value
TypeDescription
NetworkName

NextHopCase

public PolicyBasedRoute.NextHopOneofCase NextHopCase { get; }
Property Value
TypeDescription
PolicyBasedRoute.NextHopOneofCase

NextHopIlbIp

public string NextHopIlbIp { get; set; }

Optional. 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.

Property Value
TypeDescription
String

PolicyBasedRouteName

public PolicyBasedRouteName PolicyBasedRouteName { get; set; }

PolicyBasedRouteName-typed view over the Name resource name property.

Property Value
TypeDescription
PolicyBasedRouteName

Priority

public int Priority { get; set; }

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.

Property Value
TypeDescription
Int32
public string SelfLink { get; set; }

Output only. Server-defined fully-qualified URL for this resource.

Property Value
TypeDescription
String

TargetCase

public PolicyBasedRoute.TargetOneofCase TargetCase { get; }
Property Value
TypeDescription
PolicyBasedRoute.TargetOneofCase

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. Time when the PolicyBasedRoute was updated.

Property Value
TypeDescription
Timestamp

VirtualMachine

public PolicyBasedRoute.Types.VirtualMachine VirtualMachine { get; set; }

Optional. VM instances to which this policy based route applies to.

Property Value
TypeDescription
PolicyBasedRoute.Types.VirtualMachine

Warnings

public RepeatedField<PolicyBasedRoute.Types.Warnings> Warnings { get; }

Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.

Property Value
TypeDescription
RepeatedField<PolicyBasedRoute.Types.Warnings>