xdmp:forest-state( $forestID as xs:unsignedLong ) as xs:string*
Returns state of the forests
http://marklogic.com/xdmp/privileges/status
xdmp:forest-state(xdmp:forest("Documents")) => open