
MarkLogic 9 Product Documentation
pkg:get-server-listpkg:get-server-list(
$pkgname as xs:string,
[$start as xs:unsignedLong],
[$pageLength as xs:unsignedLong]
) as element(list:server-list)
Summary
[DEPRECATED: use cma:generate-config and
cma:apply-config instead.]
Returns the names of the app servers that have configurations
in the named package.
| Parameters |
| pkgname |
The name of the package that contains the app server configurations.
|
| start |
The start position of the list of app servers. For example, if there are a total of
50 app servers and the pageLength is set to 5, then start=6
returns a list of 5 app servers, starting with the sixth app server (app servers 6-10).
|
| pageLength |
The number of databases to return in each list.
|
Example
xquery version "1.0-ml";
import module namespace pkg = "http://marklogic.com/manage/package"
at "/MarkLogic/manage/package/package.xqy";
pkg:get-server-list("mypackage")
(: Returns the names of the app servers that have configurations
in the package named, 'mypackage'.
Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.