Loading TOC...

MarkLogic 12 Product Documentation
admin:search-dynamic-host-token

admin:search-dynamic-host-token(
   $comment-match-pattern as xs:string?,
   $match-flags as xs:string?,
   $token-issue-start-date as xs:dateTime?,
   $token-issue-end-date as xs:dateTime?
) as xs:string*

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


  xquery version "1.0-ml";

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

  admin:search-dynamic-host-token("comments.?", (), xs:dateTime("2025-01-27T06:50:00"), xs:dateTime("2025-01-27T13:50:00"))
   

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