admin.appserverAppserverGetHstsHeaderMaxAge( config as element(configuration), appserver-id as (Number|String) ) as Number
This function returns the App Server's configured max-age directive for HSTS header.
http://marklogic.com/xdmp/privileges/admin/app-server-security
http://marklogic.com/xdmp/privileges/admin/app-server-security/{id}
http://marklogic.com/xdmp/privileges/admin/group-security
http://marklogic.com/xdmp/privileges/admin/group-security/{id}
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() var groupid = admin.groupGetId(config, "Default") admin.appserverGetHstsHeaderMaxAge(config, admin.appserverGetId(config, groupid, "myAppServer"))