_ewbrowse

  • -

_ewbrowse

Category : latest version

This restpoint allows you to browse through files and folders stored on ElasticWarehouse cluster.

ewshell formats response in nice way, very similar to output you know from “ls -l” command

ewshell.sh -c browse /files/mypictures

Parameter Requirement Type Description
folder mandatory string An attribute to define name of the folder to be listed
from optional int As default, browse request returns 10 files and subfolders from the browsing folder. Parameter defines the offset from the first result you want to fetch. Increase “from” value to iterate through all results.
size optional int As default, browse request returns 10 files and subfolders from the browsing folder. The size parameter allows you to configure the maximum amount of documents to be returned.
showrequest optional boolean When set to “true” ElasticWarehouse node prints converted JSON request on standard output. Converted JSON request can be executed directly on ElasticSearch cluster. It’s useful when you plan to build your own ElasticWarehouse client connected directly to the ElasticSearch cluster.

Examples:

curl -XGET "http://localhost:10200/_ewbrowse?folder=/&from=10"
curl -XGET "http://localhost:10200/_ewbrowse?folder=/&from=10&size=10"
curl -XGET "http://localhost:10200/_ewbrowse?folder=/&from=10&size=10&showrequest=true"
_ewget
_ewtask