MarkLogic 12 Product Documentation
admin.searchDynamicHostToken

admin.searchDynamicHostToken(
   comment-match-pattern as String?,
   match-flags as String?,
   token-issue-start-date as Date?,
   token-issue-end-date as Date?
) as Sequence

Summary

The function searches for active dynamic host tokens issued by MarkLogic, filtering by date range and regular expression of the comments

Parameters
comment-match-pattern Regular expression to match against the comment of a dynamic host token. If omitted, all comments are matched.
match-flags Regex match flags.
token-issue-start-date Filter (discard) dynamic host tokens issued before $token-issue-start-date.
token-issue-end-date Filter (discard) dynamic host tokens issued after $token-issue-end-date.

Required Privileges

This operation requires the following privilege:

http://marklogic.com/xdmp/privileges/admin/search-dynamic-host-token

Example


  const admin = require('/MarkLogic/admin.xqy');

  admin.searchDynamicHostToken('comments.?', null, xs.dateTime("2025-01-27T06:50:00"), xs.dateTime("2025-01-27T13:50:00"))
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy