Loading TOC...

MarkLogic 10 Product Documentation
admin.appserverRecurringRequestBlackout

admin.appserverRecurringRequestBlackout(
   users as (Number|String)[],
   roles as (Number|String)[],
   days as String[],
   start-time as (Number|String)?,
   end-time as (Number|String)?,
   duration as xs.duration?
) as element(gr.requestBlackout)

Summary

This function constructs a request-blackout specification.

Parameters
users A sequence of user ID(s) that the request blackout applies too.
roles A sequence of role ID(s) that the request blackout applies too.
days The day(s) of the week. Must be a sequence of zero or more of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
start-time A time for the request blackout to start.
end-time A time for the request blackout to end.
duration The amount of time for the blackout to last.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.appserverRecurringRequestBlackout(null,null, "monday",
        xs.time("09:45:00"), xs.time("11:45:00"), null )

   //returns the requestBlackout specification 
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.