MarkLogic 9 Product Documentation
admin.appserverOneTimeRequestBlackoutadmin.appserverOneTimeRequestBlackout(
users as (Number|String)[],
roles as (Number|String)[],
start as Date,
end as Date?,
duration as xs.duration?
) as element(gr.requestBlackout)
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
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
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.