Update Static Route (v2.3)
PUT/v2.3/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/staticroutes/:static_route_id
Update a static route.
Request
Path Parameters
ID of the tenant.
The ID of the site.
The ID of the element.
The ID of the static route.
- application/json
Body
- Array [
- ]
The static route address family.
The description of the static route. Max size = 256.
The IPv4 or IPv6 address mask for next hop Destination Prefix (IPv4 or IPv6).
The ID of the static route.
The name of the static route.
The ID of the network context.
The Next Hop Reachability Probe is enabled.
nexthops NextHop[]required
The details of the next hops configured on the static route.
The admin distance for a specific route. The default value for admin distance is 1.
The next hop interface ID.
The next hop IPv4 address.
Set to True to indicate that traffic is destined for the ION device. By default, Self is set to False.
Possible values: [GLOBAL
, LOCAL
]
The scope of the static route = Local or Global. If scope is local, the device does not advertise the route to other sites and if scope is global, the device advertises the route to other sites.
A information field that can be added to identify the static route. Maximum 10 unique tags of length 1024 each are allowed.
The VRF (Virtual Routing and Forwarding) ID.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
The static route address family.
The description of the static route. Max size = 256.
The IPv4 or IPv6 address mask for next hop Destination Prefix (IPv4 or IPv6).
The ID of the static route.
The name of the static route.
The ID of the network context.
The Next Hop Reachability Probe is enabled.
nexthops NextHop[]required
The details of the next hops configured on the static route.
The admin distance for a specific route. The default value for admin distance is 1.
The next hop interface ID.
The next hop IPv4 address.
Set to True to indicate that traffic is destined for the ION device. By default, Self is set to False.
Possible values: [GLOBAL
, LOCAL
]
The scope of the static route = Local or Global. If scope is local, the device does not advertise the route to other sites and if scope is global, the device advertises the route to other sites.
A information field that can be added to identify the static route. Maximum 10 unique tags of length 1024 each are allowed.
The VRF (Virtual Routing and Forwarding) ID.
{
"address_family": "string",
"destination_prefix": "string",
"id": "string",
"name": "string",
"network_context_id": "string",
"nexthop_reachability_probe": true,
"nexthops": [
{
"admin_distance": 0,
"nexthop_interface_id": "string",
"nexthop_ip": "string",
"self": true
}
],
"scope": "GLOBAL",
"tags": [
"string"
],
"vrf_context_id": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_INPUT"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "STATICROUTE_CONFIG_INVALID_DEVICE"
},
{
"code": "STATICROUTE_NEXTHOP_REACHABILITY_PROBE_NOT_SUPPORTED"
},
{
"code": "STATICROUTE_CONFIG_INVALID_NEXTHOP_DUPLICATE"
},
{
"code": "STATICROUTE_CONFIG_INVALID_DESTINATIONPREFIX"
},
{
"code": "STATICROUTE_CONFIG_ADDRESS_FAMILY_IPV6_NOT_SUPPORTED"
},
{
"code": "STATICROUTE_CONFIG_INVALID_DESTINATIONPREFIX_IPV6"
},
{
"code": "STATICROUTE_CONFIG_NEXTHOPIP_DIFFERENT_FROM_ADDRESSFAMILY_NOT_SUPPORTED"
},
{
"code": "STATICROUTE_CONFIG_DESTINATIONPREFIX_DIFFERENT_FROM_ADDRESSFAMILY_NOT_SUPPORTED"
},
{
"code": "STATICROUTE_CONFIG_INVALID_NEXTHOPIPV6"
},
{
"code": "STATICROUTE_CONFIG_INVALID_NEXTHOPIP"
},
{
"code": "STATICROUTE_CONFIG_INVALID_NEXTHOP_SELF"
},
{
"code": "STATICROUTE_NEXTHOP_REACHABILITY_PROBE_NOT_APPLICABLE"
},
{
"code": "STATICROUTE_CONFIG_REQUIRED_INTERFACE_FOR_LINK_LOCAL_IPV6"
},
{
"code": "STATICROUTE_CONFIG_INVALID_NEXTHOP"
},
{
"code": "INTERFACE_NOT_FOUND"
},
{
"code": "STATICROUTE_NEXTHOP_CANNOT_SET_NEXTHOP_REACHABILITY_PROBE"
},
{
"code": "INVALID_NETWORK_CONTEXT"
},
{
"code": "PREFIX_EXACT_MATCH_WITH_OTHER_SITE"
}
]
}
}