MarkLogic 9 Product Documentation
pkg:get-server

pkg:get-server(
   $pkgname as xs:string,
   $group as xs:string,
   $server as xs:string
) as element()?

Summary

[DEPRECATED: use cma:generate-config and cma:apply-config instead.]

Returns the configuration of the named app server from the named package.

Parameters
pkgname The name of the package from which to return the app server configuration.
group The name of the group that contains the app server.
server The name of the app server for which to return the configuration.

Example


xquery version "1.0-ml"; 
 
import module namespace pkg = "http://marklogic.com/manage/package" 
      at "/MarkLogic/manage/package/package.xqy";

pkg:get-server("mypackage", "Default", "dashml")

(: Returns the configuration of the 'dashml' app server located in the 'Default'
   group from the package named, 'mypackage'. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy