MarkLogic 9 Product Documentation
pki:get-template-by-name

pki:get-template-by-name(
   $template-name as xs:string
) as element(pki:template)*

Summary

This function returns the certificate template with the specified name.

Parameters
template-name The name of the 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";

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

    (: Returns the certificate template, named "test". :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy