Loading TOC...

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. :)
  

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