Delete Route Entry by ID
delete
/{versionId}/routeSets/{routeSetId}/entries/{entryId}
Delete a route set entry based on a specified ID that exists on the SDM server. User provides the route set ID and route entry ID as part of the URI to delete the specified route entry.
Request
Path Parameters
-
entryId(required):
The id of the route which needs ot be deleted.
-
routeSetId(required):
The route set from which we needs to delete route entry.
-
versionId(required):
The rest api version, it's value is v1.3.
Response
200 Response
400 Response
The user input is invalid.
401 Response
The session ID is invalid.
403 Response
There is no permission to access the resources.
404 Response
The object (resource URI, device, and so on) of your input request cannot be found.
500 Response
Internal server error
Examples
Examples of Accessing the API
See Authenticate for how to acquire a session cookie.
The following example shows how to delete route entry by ID using curl.
curl -X DELETE \
-b sessionid.txt \
--header "Accept: application/xml" \
--header "Content-Type: application/xml" \
"https://example.com:8443/rest/v1.3/routeSets/{routeSetId}/entries/{entryId}"
The following example shows how to delete route entry by ID using Python.
import requests
from lxml import etree
url = "https://example.com:8443/rest/v1.3/routeSets/{routeSetId}/entries/{entryId}"
headers = { "Accept":"application/xml", "Cookie":cookie }
resp = requests.delete(url, headers=headers)
Example of the Response Body
This endpoint does not return a response body.