dom:configuration-create( $restart-user as xs:string, $evaluation-context as element(dom:evaluation-context), $default-domain as xs:unsignedLong, $permissions as element(sec:permission)* ) as xs:unsignedLong
Create a new CPF configuration.
xquery version "1.0-ml"; import module namespace dom = "http://marklogic.com/cpf/domains" at "/MarkLogic/cpf/domains.xqy"; dom:configuration-create( "admin", dom:evaluation-context( xdmp:database("Modules"), "/" ), fn:data(dom:get("my-domain")/dom:domain-id), (xdmp:permission('my-role', 'read'), xdmp:permission('my-role', 'execute') ) )