
admin.databaseForeignMasterGetDatabaseId( foreign-master as element(db.foreignMaster) ) as (Number|String)
This function returns the id of the foreign master database. This function must be executed on the replica cluster.
| Parameters | |
|---|---|
| foreign-master | The foreign master configuration. |
let admin = require("/MarkLogic/admin.xqy")
let cfg = admin.getConfiguration()
let fmaster = admin.databaseGetForeignMaster(cfg, xdmp.database("Documents"))
admin.databaseForeignMasterGetDatabaseId(fmaster)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.