Important
An access token must be generated to use this API.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
Header | Value |
---|---|
Authorization | Token {accessToken} |
Content-type | application/json |
Accept | application/json |
Parameters
All fields are mandatory.
Field | Data Type | Description |
---|---|---|
srouteIP | String | Static route IP address. |
srouteGateway | String | Static route gateway IP address. |
srouteSubnet | String | Static route subnet. |
srouteMetric | String | Static route metric. |
srouteInterface | String | Static 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."}