WatchedDirResource Resource

GET /clusters/{clusterName}/services/{serviceName}/watcheddir

Lists all the watched directories.

Available since API v14. Only available with Cloudera Manager Enterprise Edition.

Request Parameters
name type description default
clusterName path n/a
serviceName path The service name. n/a
Response Body
media type data type description
application/json ApiWatchedDirList (JSON) List of currently watched directories.

POST /clusters/{clusterName}/services/{serviceName}/watcheddir

Adds a directory to the watching list.

Available since API v14. Only available with Cloudera Manager Enterprise Edition.

Request Parameters
name type description default
clusterName path n/a
serviceName path The service name. n/a
Request Body
media type data type description
application/json ApiWatchedDir (JSON) The directory to be added.
Response Body
media type data type description
application/json ApiWatchedDir (JSON) Added directory.

DELETE /clusters/{clusterName}/services/{serviceName}/watcheddir/{directoryPath}

Removes a directory from the watching list.

Available since API v14. Only available with Cloudera Manager Enterprise Edition.

Request Parameters
name type description default
clusterName path n/a
directoryPath path The directory path to be removed. n/a
serviceName path The service name. n/a
Response Body
media type data type description
application/json ApiWatchedDir (JSON) Removed directory.