Create Static Route
Creates a new static route configured on an Edge Gateway.
Request
URI
POST
https://{api_host}/cloudapi/2.0.0/edgeGateways/{gatewayId}/routing/staticRoutes
COPY
Path Parameters
string
gatewayId
Required
gatewayId
Request Body
GatewayStaticRoute
of type(s)
application/json
Optional
Show optional properties
{
"name": "string",
"networkCidr": "10.22.0.0/22",
"nextHops": [
{
"adminDistance": 0
}
]
}
{
"id": "string",
"name": "string",
"description": "string",
"networkCidr": "10.22.0.0/22",
"nextHops": [
{
"ipAddress": "string",
"adminDistance": 0,
"scope": {
"name": "string",
"scopeType": "string",
"id": "string"
}
}
],
"systemOwned": false,
"version": {
"version": 0
},
"routeAdvertised": false
}
Responses
202
The request have been accepted and the task to monitor the request is in the Location header.
Operation doesn't return any data structure
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","networkCidr:"string","nextHops":["object"]}' https://{api_host}/cloudapi/2.0.0/edgeGateways/{gatewayId}/routing/staticRoutes
Availability
Added in 38.1
On This Page
Edge Gateway Static Routes Version2 Operations
GET
Get Static Routes
POST
Create Static Route
GET
Get Static Route
PUT
Update Static Route
DELETE
Delete Static Route