Changed2
[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Update Static Route

Description

Updates a specific static route configured on an Edge Gateway.

Request

Request

URL

URL


put
https://{api_host}/cloudapi/1.0.0/edgeGateways/{gatewayId}/routing/staticRoutes/{routeId}
Copy

Path Parameters

Path Parameters

string
gatewayId Required

string
routeId Required

Request Body

Request Body

EdgeStaticRoute of type(s) application/json Required
{
	"name": "string",
	"networkCidr": "10.22.0.0/22",
	"nextHops": [
		{
			"adminDistance": 0
		}
	]
}
string
name Required

Name for the static route.


string
networkCidr Required

The network prefix in CIDR format. Both IPv4 and IPv6 formats are supported.


nextHops Required

The list of next hops to use within the static route. List must contain at least one valid next hop.


string
description Optional

Description for this static route.


string
id Optional

The unique ID of this static route. On updates, the ID is required for the object, while for create a new ID will be generated. This ID is not a VCD URN.


boolean
systemOwned Optional

A flag indicating whether this static route is managed by the system. Property is read-only.


version Optional

This property describes the current version of the entity. To prevent clients from overwriting each other’s changes, update operations must include the version which can be obtained by issuing a GET operation. If the version number on an update call is missing, the operation will be rejected. This is only needed on update calls.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

202 Accepted

The request have been accepted and the task to monitor the request is in the Location header.

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"description":"string","id":"string","name":"string","networkCidr":"10.22.0.0/22","nextHops":[{"adminDistance":0,"ipAddress":"string","scope":{"id":"string","name":"string","scopeType":"string"}}],"systemOwned":false,"version":{"version":0}}' https://{api_host}/cloudapi/1.0.0/edgeGateways/{gatewayId}/routing/staticRoutes/{routeId}


[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
What's changed in v37.0?
INTRODUCED
New in this version
Availability
Added in 37.0
Edge Gateway Static Routes Operations
Feedback

Was this page helpful?