0
votes

How do I find, then query, the ML server REST API to give me the data hub version running on a MarkLogic 9 system on linux please?

I tried using https://docs.marklogic.com/datahub/5.2/tools/rest/rest-extensions.html but then realized I had no way to actually tell which TCP port on the server that the REST API was running on.

I can access port 8001 and see all the Admin, App-Services App Servers ( I am local admin on box ) but the ML doco seems to point to port 8001. But when I use the URL of https://localhost:8001/v1/resources/mlHubversion I get an error.

I'm a database guy, not a web dev, so you will need to be patient with me.

Any help appreciated.

1

1 Answers

0
votes

If you look at the Admin ui, and look between the App Servers, there should most likely be one named 'data-hub-FINAL'. The default for that app server is usually port 8011. If you can find one named like that, and it is indeed running on port 8011, then you should be able to invoke the mlHubversion endpoint with:

http://localhost:8011/v1/resources/mlHubversion

Or maybe with https rather than http, if it is configured for SSL.

HTH!