Loading TOC...

MarkLogic Server 11.0 Product Documentation
pki:template-get-id

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

Summary

This function returns the id of the specified certificate template.

Parameters
template A certificate request template created by the pki:create-template() function.

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";

  pki:template-get-id(pki:get-template-by-name("test"))

  (: Returns the id for the "test" certificate template. :)
  

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