Class RouteRule
A mapping between a destination IP address range and a virtual device to route matching packets to (a target).
Inherited Members
Namespace: Oci.CoreService.Models
Assembly: OCI.DotNetSDK.Core.dll
Syntax
public class RouteRule
Properties
CidrBlock
Declaration
[JsonProperty(PropertyName = "cidrBlock")]
public string CidrBlock { get; set; }
Property Value
Type | Description |
---|---|
string | Deprecated. Instead use |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | An optional description of your choice for the rule. |
Destination
Declaration
[JsonProperty(PropertyName = "destination")]
public string Destination { get; set; }
Property Value
Type | Description |
---|---|
string | Conceptually, this is the range of IP addresses used for matching when routing
traffic. Required if you provide a
|
DestinationType
Declaration
[JsonProperty(PropertyName = "destinationType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public RouteRule.DestinationTypeEnum? DestinationType { get; set; }
Property Value
Type | Description |
---|---|
RouteRule.DestinationTypeEnum? | Type of destination for the rule. Required if you provide a
|
NetworkEntityId
Declaration
[Required(ErrorMessage = "NetworkEntityId is required.")]
[JsonProperty(PropertyName = "networkEntityId")]
public string NetworkEntityId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID for the route rule's target. For information about the type of targets you can specify, see Route Tables. |
Remarks
Required
RouteType
Declaration
[JsonProperty(PropertyName = "routeType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public RouteRule.RouteTypeEnum? RouteType { get; set; }
Property Value
Type | Description |
---|---|
RouteRule.RouteTypeEnum? | A route rule can be STATIC if manually added to the route table, LOCAL if added by OCI to the route table. |