MarkLogic 9 Product Documentation
pki:get-template

pki:get-template(
   $template-id as xs:unsignedLong*
) as element(pki:template)*

Summary

This function returns the certificate template for the specified id.

Parameters
template-id The id of the certificate template to be returned.

Example

  (: execute this against the security database :)
  xquery version "1.0-ml"; 
  import module namespace pki = "http://marklogic.com/xdmp/pki" 
       at "/MarkLogic/pki.xqy";

  for $tid in pki:get-template-ids()
     return (pki:get-template($tid))

  (: Returns all of the certificate templates in the security database. :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy