Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

REST API Method: PUT /rest/staticiproute/{identifier}

Page Tree
rootResource - staticiproute

Creates a static IP Route given a specific ID and values.

URL:

https://134.56.227.163/rest/staticiproute/{identifier}

HTTP Method

PUT

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
ipStaticRouteTypeNoNoEnum1Possible values:
  • 0 - ROUTE_ENTRY_DIRECT
  • 1 - ROUTE_ENTRY_INDIRECT
Specifies the route type. Only indirect route types are currently supported.
ifNameYesYesstringnone20 - Max LengthDeprecated. Is the interface name for this static route.
ipDestinationAddrYesYesstringnone23 - Max Length Is the IP address of the destination host or subnet, in dotted notation. {info}If Destination IP Address field and Mask field are both set to 0.0.0.0, then the static route is called default static route.
ipDestinationMaskYesYesstringnone23 - Max Length Is the network mask of the destination host or subnet, in dotted notation. {info}If Destination IP Address field and Mask field are both set to 0.0.0.0, then the static route is called default static route.
ipNexthopAddressYesYesstringnone23 - Max LengthIs the IP address of the next-hop router, in dotted notation.
ipLinkMonitorEnabledNoNoEnum0Possible values:
  • 0 - btFalse
  • 1 - btTrue
Specifies if this next-hop router is monitored by the link monitor. This field is automatically enabled when the link monitor selects this next-hop router as the gateway for monitoring.
ipStaticRouteMetricYesYesint1Possible values:
  • 1 - Minimum
  • 255 - Maximum
Is the routing cost of this route and hence indirectly specifies the preference of the route. Lower values indicate more preferred routes. Typical value is 1 for most static routes indicating that static routes are preferred to dynamic routes.

Usage Example: (about cURL | requires a session token)

Code Block
languagebash
Put code example herecurl --cookie PHPSESSID=fsqgefadjojefv6lmdtij6lh44 -s -k -i https://134.56.72.218/rest/staticiproute/1 -X PUT --data "ConfigIEState=1&ipNexthopAddress=134.56.72.5&ipDestinationAddr=0.0.0.0&ipStaticRouteType=1&ipDestinationMask=0.0.0.0&ifName=&ipLinkMonitorEnabled=0&ipStaticRouteMetric=1"

Response:

Code Block
languagehtml/xml
Put Code response here<?xml version="1.0"?>
<root>
 <status>
  <http_code>500</http_code>
 <app_status href="https://134.56.72.218/rest/staticiproute/1">
 <app_status_entry code="12002" params="Route to 134.56.72.5, already exists"/>
 </app_status>
  </status>
</root>