Skip to content

RouteProps

Properties for defining a Route.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-route

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new RouteProps {
    object DestinationCidrBlock,
    object RouteTableId,
    object NextHopId = null,
    object NextHopList = null,
    object NextHopType = null
};

Properties

Name Type Description
DestinationCidrBlock object Property destinationCidrBlock: The RouteEntry's target network segment.
RouteTableId object Property routeTableId: RouteTableId of created route entry.
NextHopId object Property nextHopId: The route entry's next hop.
NextHopList object Property nextHopList: The route entry's next hop list.
NextHopType object Property nextHopType: The next hop type.

DestinationCidrBlockRequired

public object DestinationCidrBlock { get; set; }
  • Type: object

Property destinationCidrBlock: The RouteEntry's target network segment.


RouteTableIdRequired

public object RouteTableId { get; set; }
  • Type: object

Property routeTableId: RouteTableId of created route entry.


NextHopIdOptional

public object NextHopId { get; set; }
  • Type: object

Property nextHopId: The route entry's next hop.

When the NextHopList is specified, the value will be ignored.


NextHopListOptional

public object NextHopList { get; set; }
  • Type: object

Property nextHopList: The route entry's next hop list.

If router is virtual border router, the value will be ignore. The list should contain 2-4 next hop. NextHopId of each next hop must be RouterInterface that VRouter forwards to VBR.


NextHopTypeOptional

public object NextHopType { get; set; }
  • Type: object

Property nextHopType: The next hop type.

Now support 'Instance|HaVip|RouterInterface|NetworkInterface|VpnGateway|IPv6Gateway|NatGateway|Attachment'. The default value is Instance.When the NextHopList is specified, the value will be ignored.