URL

POST https://{gatewayIp}:5480/api/v2/staticroute

Sample URLs

https://192.168.xxx.xxx:5480/api/v2/staticroute

Sample cURL

curl -k -X POST https://{GatewayIP}:5480/api/v2/staticroute 
-H ‘Accept: application/json’ 
-H ‘Authorization: Token <TOKEN>’ 
-H ‘Content-Type: application/json’ -k -d ‘
{ 
    “srouteIP”:“<srouteIP>”, 
    “srouteGateway”: “<srouteGateway>”, 
    “srouteMetric”: “<srouteMetric>”, 
    “srouteInterface”: “<srouteInterface>”
}

Header format

HeaderValue
AuthorizationToken {accessToken}
Content-typeapplication/json
Acceptapplication/json

Parameters

All fields are mandatory.

FieldData TypeDescription
srouteIPStringStatic route IP address.
srouteGatewayStringStatic route gateway IP address.
srouteSubnetStringStatic route subnet.
srouteMetricStringStatic route metric.
srouteInterfaceStringStatic route interface

Status code

200 OK

Sample request

{
    "srouteIP": "<static route IP>", 
    "srouteGateway": "<static route Gateway>”,
    "srouteSubnet": "<static route subnet>", 
    "srouteMetric": "<static route Metric>", 
    "srouteInterface": "<static route Interface>"
}

Sample response

{"Success":"Successfully added the static route configuration."}