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
Implements
IMessage<PolicyBasedRoute>, IEquatable<PolicyBasedRoute>, IDeepCloneable<PolicyBasedRoute>, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkConnectivity.V1Assembly
Google.Cloud.NetworkConnectivity.V1.dll
Constructors
PolicyBasedRoute()
public PolicyBasedRoute()
PolicyBasedRoute(PolicyBasedRoute)
public PolicyBasedRoute(PolicyBasedRoute other)
Parameter | |
---|---|
Name | Description |
other | PolicyBasedRoute |
Properties
CreateTime
public Timestamp CreateTime { get; set; }
Output only. Time when the PolicyBasedRoute was created.
Property Value | |
---|---|
Type | Description |
Timestamp |
Description
public string Description { get; set; }
Optional. An optional description of this resource. Provide this field when you create the resource.
Property Value | |
---|---|
Type | Description |
String |
Filter
public PolicyBasedRoute.Types.Filter Filter { get; set; }
Required. The filter to match L4 traffic.
Property Value | |
---|---|
Type | Description |
PolicyBasedRoute.Types.Filter |
InterconnectAttachment
public PolicyBasedRoute.Types.InterconnectAttachment InterconnectAttachment { get; set; }
Optional. The interconnect attachments to which this route applies to.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
Labels
public MapField<string, string> Labels { get; }
User-defined labels.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
NetworkAsNetworkName
public NetworkName NetworkAsNetworkName { get; set; }
NetworkName-typed view over the Network resource name property.
Property Value | |
---|---|
Type | Description |
NetworkName |
NextHopCase
public PolicyBasedRoute.NextHopOneofCase NextHopCase { get; }
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
PolicyBasedRouteName
public PolicyBasedRouteName PolicyBasedRouteName { get; set; }
PolicyBasedRouteName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Int32 |
SelfLink
public string SelfLink { get; set; }
Output only. Server-defined fully-qualified URL for this resource.
Property Value | |
---|---|
Type | Description |
String |
TargetCase
public PolicyBasedRoute.TargetOneofCase TargetCase { get; }
Property Value | |
---|---|
Type | Description |
PolicyBasedRoute.TargetOneofCase |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. Time when the PolicyBasedRoute was updated.
Property Value | |
---|---|
Type | Description |
Timestamp |
VirtualMachine
public PolicyBasedRoute.Types.VirtualMachine VirtualMachine { get; set; }
Optional. VM instances to which this policy based route applies to.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
RepeatedField<PolicyBasedRoute.Types.Warnings> |