Get All Existing Route Sets
/{versionId}/routeSets
Use this (GET) method to display all route sets that exist on the SDM server. You can use query parameters with this task to retrieve specific route sets. On the navigation pane, go to Get Started > Send Requests on the navigation pane. On the Send Requests page, scroll to the Pagination Parameters section for more information.
Request
-
versionId:
The rest api version, it's value is v1.3.
-
ascending:
Sort order shall be ascending or not. Can have values (true/false)
-
deviceLrtFilename:
The name of the Lrt file on the device.
-
limitation:
The size of the page.
-
name:
The name of the route set.
-
offset:
The page number to be fetched.
-
sort:
Sort by specified property. Supported: name, deviceLrtFileName, deviceLrtConfigName, routeSetId, pubIdType
Response
200 Response
400 Response
401 Response
403 Response
404 Response
500 Response
Examples
Example of Accessing the API with cURL
The following example shows how to get all existing route sets by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET \
-b sessionid.txt \
--header "Accept: application/xml" \
"https://example.com:8443/rest/v1.3/routeSets"
Example of Accessing the API with Python
The following example shows how to get all existing route sets by submitting a GET 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"
headers = { "Accept":"application/xml", "Cookie":cookie }
resp = requests.get(url, headers=headers)
Example of the Response Body
The following example shows the contents of the response body in XML format.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<routeSets>
<pageInfo>
<limitation>50</limitation>
<numberOfElements>2</numberOfElements>
<offset>1</offset>
</pageInfo>
<routeSets>
<description>This is the test Add route through Rest API</description>
<deviceLrtConfigName>testRoute</deviceLrtConfigName>
<deviceLrtFilename>testRoute.xml.gz</deviceLrtFilename>
<deviceRequiresUpdating>0 device(s) out of 0 need updating</deviceRequiresUpdating>
<lastModifiedTime>2022-08-08 02:57:48</lastModifiedTime>
<lockOwner></lockOwner>
<lockState>false</lockState>
<name>RouteSet1</name>
<notes>Add route set with Import Template containing Header</notes>
<pubIdType>E164</pubIdType>
<routeCount>0</routeCount>
<routeSetId>1</routeSetId>
<version>0</version>
</routeSets>
<routeSets>
<description>This is the test Add route through Rest API</description>
<deviceLrtConfigName>testRoute2</deviceLrtConfigName>
<deviceLrtFilename>testRoute2.xml.gz</deviceLrtFilename>
<deviceRequiresUpdating>0 device(s) out of 0 need updating</deviceRequiresUpdating>
<lastModifiedTime>2022-08-08 02:58:02</lastModifiedTime>
<lockOwner></lockOwner>
<lockState>false</lockState>
<name>RouteSet2</name>
<notes>Add route set with Import Template containing Header</notes>
<pubIdType>E164</pubIdType>
<routeCount>0</routeCount>
<routeSetId>2</routeSetId>
<version>0</version>
</routeSets>
</routeSets>