admin.appserverGetSslCertificateTemplate( config as element(configuration), appserver-id as (Number|String) ) as (Number|String)
This function returns the id of the SSL certificate template used by the specified App Server. If no template is set for the App Server, 0 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.appserverGetSslCertificateTemplate(config, appServer) //returns the id of the SSL certificate template.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.