Home Is there a simple way using REST to get a list of forests attached to MarkLogic Database

# Is there a simple way using REST to get a list of forests attached to MarkLogic Database

mikel
1#
mikel Published in 2018-02-14 04:38:40Z
 Here is my REST call: curl -s --anyauth -u admin:pass -X GET -i http://myhost:8002/manage/v2/databases/MyDB/properties  I'd like to get a list of forests from this instead of all the properties. Something like: MyDB001 MyDB002 MyDB003 etc.  Is this possible?
David Ennis
2#
David Ennis Reply to 2018-02-14 06:20:44Z
 Lets start with the basics: Do not under-estimate the value of piointing your browser at the manage endpoint: http://yourdomain:8002/manage/v2. From here, you can navigate and explore. Plus, the data available from the properties views are valid XML and JSON configurations for you to possibly re-use later on such as fetching via Curl. You can get these by passing the format=[xml or json] From there, lets look at the options: Just want the names and IDs? Minimal information is available under the relations section. http://yourdomain:8002/manage/v2/databases/yourdatabase  Want more info? Useful when you have a cluster and want the details of hosts/paths/etc http://yourdomain:8002/manage/v2/databases/yourdatabase?view=forest-storage 
 You need to login account before you can post.
Processed in 0.619542 second(s) , Gzip On .