Is there a way to use the REST API to retrieve the MarkLogic server version?

We are creating a monitoring plugin that will call MarkLogic to retrieve status information. The first thing we need to know is which version of MarkLogic we are connecting so that we know whether to use The other api’s v1 or v2.

Is there a way to retrieve the information first?

There is version information in the host status output. You first need to list the / manage / LATEST / hosts And select one to query, for example /manage/LATEST/hosts/localhost? view = status. Then check the status-properties and version.

We are creating a monitoring plugin that will call MarkLogic to retrieve status information. The first thing we need to know is that we Which version of MarkLogic is being connected so that we know whether to use v1 or v2 of the remaining APIs.

Is there a way to retrieve this information first?

There is version information in the host status output. You first need to list all hosts with /manage/LATEST/hosts and select one to query, for example /manage /LATEST/hosts/localhost? view = status. Then check status-properties and version.

Leave a Comment

Your email address will not be published.