MarkLogic Server 11.0 Product Documentation
admin.forestForeignMasterGetClusterIdadmin.forestForeignMasterGetClusterId(
foreign-master as element(as.foreignMaster)
) as (Number|String)
Summary
This function returns the ID for the cluster from the foreign master forest
configuration element.
Parameters |
foreign-master |
The element returned by the admin:forest-foreign-master or
admin:forest-get-foreign-master function that specifies the
configuration for the master forest. More than one forest master
configuration elements may be specified in a one-to-many replication scheme.
|
Example
let admin = require("/MarkLogic/admin.xqy")
let cfg = admin.getConfiguration()
let fmforest = admin.forestGetForeignMaster(cfg, xdmp.forest("Documents"))
admin.forestForeignMasterGetClusterId(fn.head(fmforest))
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.