MarkLogic Server 11.0 Product Documentation
pki:template-set-description

pki:template-set-description(
   $template as element(pki:template),
   $description as xs:string
) as element(pki:template)

Summary

This function changes the description of the specified certificate template and returns the XML containing the change. Use pki:insert-template to save the change to the Security database.

Parameters
template The certificate template for which to change the description.
description The new description for the certificate template.

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

  let $tid := pki:get-template-ids()[1]     
  return
     pki:template-set-description(
         pki:get-template($tid), 
         "The new description of the certificate.")

  (: Returns the XML for the certificate template with the new description. :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy