Search code examples
marklogicmarklogic-9

How can I add multiple bootstrap hosts in the MarkLogic cluster using MarkLogic API?


I have to create multiple bootstrap hosts in the clusters using marklogic API during deployment using ml-gradle.

I know I can configure it by admin console (8001 port) but I am not able to figure out how can I add multiple bootstrap hosts in the MarkLogic cluster using MarkLogic API?

Edit Local Cluster Configuration


Solution

  • Following case worked in Postman:

    HTTP Verb:
    PUT
    
    Authorization:
    Digest Auth admin:admin
    
    Header: 
    Content-Type application/json
    
    URI:
    {ml-host}:8002/manage/v2/hosts/{new-bootstrap-host}/properties
    
    Body:
    {
        "bootstrap-host": true
    }