Loading TOC...

admin:appserver-one-time-request-blackout

admin:appserver-one-time-request-blackout(
   $users as xs:unsignedLong*,
   $roles as xs:unsignedLong*,
   $start as xs:dateTime,
   $end as xs:dateTime?,
   $duration as xs:duration?
) as element(gr:request-blackout)

Summary

This function constructs a one-time 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.
start The starting dateTime of the request blackout.
end The ending dateTime of the request blackout.
duration The amount of time for the blackout to last.

Example


  xquery version "1.0-ml";

  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

  admin:appserver-one-time-request-blackout((),(),
        xs:dateTime("2008-02-14T09:45:00"),
        (), xs:dayTimeDuration("PT3H") )
  (: returns the one-time request-blackout specification :)


  

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