admin.appserverGetSslHostname( config as element(configuration), appserver-id as (Number|String) ) as 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}
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() var appServer = admin.appserverGetId(config, admin.groupGetId(config, "Default"), "Docs") admin.appserverGetSslHostname(config, appServer) //returns the SSL hostname for the App Server, if set.