Delete Route Entry by ID
delete
/{versionId}/routeSets/{routeSetId}/entries/{entryId}
Use this (DELETE) method to delete a route set entry based on specified ID that exist on the SDM server. user has to provide route set Id, route entry id as part of URI to delete the specified route entry.
Request
Path Parameters
-
entryId(required):
The id of the route which needs to 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.