admin:cluster-set-opsdirector-session-endpoint( $config as element(configuration), $value as xs:string ) as element(configuration)
This function sets the session endpoint URI that the managed cluster uses to communicate with Ops Director.
Parameters | |
---|---|
config | A configuration specification, typically as returned from one of the Admin module functions. |
value | The endpoint URI. |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $config := admin:get-configuration() let $newcfg := admin:cluster-set-opsdirector-session-endpoint($config, "https://opsdir.example.com:8009/v1/opsdirector/session") return $newcfg
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.