Loading TOC...

MarkLogic Server 11.0 Product Documentation
flexrep:get-target-name

flexrep:get-target-name(
   $domain-id as xs:unsignedLong,
   $target-id as xs:unsignedLong
) as xs:string?

Summary

Get a target's name, or nothing if the domain or target does not exist.

Parameters
domain-id The domain ID.
target-id The target ID.

Example


xquery version "1.0-ml"; 
 
import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

flexrep:get-target-name($domain-id, $target-id)
    

Required Privileges

http://marklogic.com/xdmp/privileges/flexrep-user

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