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'); const config = admin.getConfiguration() const appServer = admin.appserverGetId(config, admin.groupGetId(config, "Default"), "Docs") admin.appserverGetSslHostname(config, appServer) //returns the SSL hostname for the App Server, if set.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.