Delete a particular Route Set by Id

delete

/{versionId}/routeSets/{routeSetId}

Use this (DELETE) method to delete a specific route sets that exist on the SDM server. User needs to specify which Route Set needs to be deleted by mentioning Id as part of URI

Request

Path Parameters
Back to Top

Response

200 Response

204 Response

OK (no content)

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
Back to Top

Examples

Example of Accessing the API with cURL

The following example shows how to deleate a perticular route set by id by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see Use 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}"

Example of Accessing the API with Python

The following example shows how to deleate a perticular route set by id by submitting a DELETE request on the REST resource using Python. This example assumes the cookie variable contains a valid authentication cookie. For an example of authenticating with Python, see Authenticate.

import requests
url = "https://example.com:8443/rest/v1.3/routeSets/{routeSetId}"
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.

Back to Top