Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to retrieve MarkLogic server version using the Rest API?

Tags:

rest

marklogic

We are in the process of creating a monitoring plugin which will make restful calls to MarkLogic to retrieve status information. One of the first things we need to know is which version of MarkLogic we are connnecting to so that we know whether to user v1 or v2 of the rest api.

Is there a way to retrieve that information first?

like image 833
user3380163 Avatar asked Mar 04 '14 17:03

user3380163


People also ask

What is REST API in MarkLogic?

MarkLogic's REST API allows you to create, read, update, and delete documents (CRUD), as well as search documents and perform analytics on the values they contain.

What type of app server is needed for rest implementation in MarkLogic?

REST API client applications interact with MarkLogic Server through a REST API instance, a specially configured HTTP App Server. Each REST API instance is intended to service a single content database and client application.

Which REST endpoint enables you to create a new rest instance?

You can also use the REST Client API in conjunction with the REST Management API on port 8002. The instance on port 8000 is convenient for getting started, but you will usually create a dedicated instance for production purposes.

Which of the following is not a way to interact with MarkLogic?

Which of the following is NOT a way to communicate with MarkLogic? "Directories are hierarchical in structure (like a filesystem directory structure). Collections do not have this requirement.


1 Answers

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

like image 142
mblakele Avatar answered Oct 12 '22 05:10

mblakele