admin:appserver-get-ssl-hostname( $config as element(configuration), $appserver-id as xs:unsignedLong ) as xs:string?
This function returns the SSL hostname for the specified App Server. If no hostname is set, nothing is returned.
http://marklogic.com/xdmp/privileges/admin/app-server
http://marklogic.com/xdmp/privileges/admin/app-server/{id}
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $config := admin:get-configuration() let $appServer := admin:appserver-get-id($config, admin:group-get-id($config, "Default"), "Docs") return admin:appserver-get-ssl-hostname($config, $appServer) (: returns the SSL hostname for the App Server, if set. :)