GET Watch Directory List
The GET Watch Directory List API is used to retrieve all the watch directories that exist in the Secure Node.
Method | URI |
---|---|
GET |
/cdwebconsole/svc/watchdirectory |
The following example shows the Command:
curl -X 'GET' \
'https://172.20.186.31:9456/cdwebconsole/svc/watchdirectory?limit=10' \
-H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMzE6MTM2MzpjNmRiM2MwNy1iZjAzLTQ1NDQtYWYxNC1iODI0M2Y1NDRhMWEiLCJleHAiOjE3MTQ1NTg0NjB9.9nbSIBrGRVHlANRLgT16J5yC1xvRQjUJtm2VUTwrH3Ad8VDhg_uLj30_ZUQD6AntSb5D51BiTHyTwROA9ZCoqQ' \
-H 'Content-Type: application/json' \
-H 'X-XSRF-TOKEN: 2608f1ec-8ff7-474b-bdaa-e069bfd9f6f1'
Parameter Name | Required/Optional | Description | Valid values |
---|---|---|---|
offset |
Optional |
Specifies the start index from which it will fetch the data provided by the user. |
0-9 |
limit | Optional | Specifies the number of records to be returned | 0-9 |
The following example shows the Sample Response:
{
"totalRecords": 2,
"watchDirList": [
{
"watchedDir": "/home/D1",
"comments": "Testing",
"monitorSubDirectories": "false"
},
{
"watchedDir": "/home/Dir2",
"comments": "Testing",
"monitorSubDirectories": "true"
}
]
}