PUT Import Watch Directory
Import Watch Directory API use to import the watch directory list.
Method | URI |
---|---|
POST |
/cdwebconsole/svc/watchdirectory/import |
The following example shows the Command:
curl -X 'POST' \
'https://172.20.186.31:9456/cdwebconsole/svc/watchdirectory/import' \
-H 'Authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbmlzdHJhdG9yOjE3Mi4yMC4xODYuMzE6MTM2MzpjNmRiM2MwNy1iZjAzLTQ1NDQtYWYxNC1iODI0M2Y1NDRhMWEiLCJleHAiOjE3MTQ1NTg0NjB9.9nbSIBrGRVHlANRLgT16J5yC1xvRQjUJtm2VUTwrH3Ad8VDhg_uLj30_ZUQD6AntSb5D51BiTHyTwROA9ZCoqQ' \
-H 'Content-Type: application/json' \
-H 'X-XSRF-TOKEN: 2608f1ec-8ff7-474b-bdaa-e069bfd9f6f1' \
-d '{"fileAgentData":"{\n \"watchDirList\": {\n \"/home/A2\": {\n \"comments\": \"Comment2\",\n \"watchedDir\": \"/home/A2\",\n \"monitorSubDirectories\": \"false\"\n }\n }\n}"}
Parameter Name | Required/Optional | Description | Valid values |
---|---|---|---|
fileAgentData |
Required |
Specifies the data of File Agent Watch Directory File you want to import Validation: String |
The following example shows the HTTP User Request:
{
"fileAgentData": "{\n \"watchDirList\": {\n \"/home/A1\": {\n \"comments\": \"Comment1\",\n \"watchedDir\": \"/home/A1\",\n \"monitorSubDirectories\": \"false\"\n }\n }\n}"
}
The following example shows the Sample Response:
{
"messageCode": 200,
"message": "Given watch directory entry is successfully added - [/home/A1]"
}