admin.appserverOneTimeRequestBlackout( users as (Number|String)[], roles as (Number|String)[], start as Date, end as Date?, duration as xs.duration? ) as element(gr.requestBlackout)
This function constructs a one-time request-blackout specification.
const admin = require('/MarkLogic/admin.xqy'); admin.appserverOneTimeRequestBlackout(null,null, xs.dateTime("2008-02-14T09:45:00"), null, xs.dayTimeDuration("PT3H") ) //returns the oneTime requestBlackout specification
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.