Loading TOC...

pki:template-in-use

pki:template-in-use(
   $template-id as xs:unsignedLong
) as xs:boolean

Summary

This function checks whether a certificate template is in use by an App Server. Returns true if the template is in use. Otherwise false is returned.

Parameters
$template-id The id of the certificate template to be tested.

Example

  xquery version "1.0-ml"; 

  import module namespace pki = "http://marklogic.com/xdmp/pki" 
      at "/MarkLogic/pki.xqy";

  let $tid := pki:template-get-id(pki:get-template-by-name("mycert"))

  return
     pki:template-in-use($tid)

  (: Returns 'true' if the template is in use by an App Server.  Otherwise, 'false'. :)
     

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.