MarkLogic 9 Product Documentation
pkg:get-package-list

pkg:get-package-list(
   [$start as xs:unsignedLong],
   [$pageLength as xs:unsignedLong]
) as element(list:package-list)

Summary

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

Returns the list of packages.

Parameters
start The start position of the list of packages. For example, if there are a total of 50 packages and the pageLength is set to 5, then start=6 returns a list of 5 packages, starting with the sixth package (packages 6-10).
pageLength The number of packages to return in each list.

Required Privileges

http://marklogic.com/xdmp/privileges/manage

Example

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

pkg:get-package-list()
  
  => Returns the list of packages.
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy