xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $admin-config := admin:get-configuration() let $group-id := admin:get-group-ids( $admin-config ) let $hosts := admin:group-get-host-ids($admin-config, $group-id[1]) return for $i in $hosts return $i || " - " || xdmp:host-name( $i )