pki:template-get-id( $template as element(pki:template) ) as xs:unsignedLong
This function returns the id of the specified certificate template.
Parameters | |
---|---|
template |
A certificate request template created by the
pki:create-template() function.
|
(: 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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.