
MarkLogic 12 Product Documentation
admin.searchDynamicHostTokenadmin.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"))
Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.