
This resource address is used to define a bootstrap host.
| URL Parameters | |
|---|---|
| format | The format of the posted data. Can be either
html, json, or xml (default). This value overrides
the Accept header if both are present. |
Upon success, MarkLogic Server returns status code 201 (Created). If the host exists or if the payload is malformed, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
The structure of the data in the request payload is as follows. Set
bootstrap-host to true if it is to serve as the bootstrap host
for the cluster; otherwise set to false. For details on the bootstrap host, see
Database Replication in MarkLogic Server in the Database Replication Guide.
dynamic-hosthost-namegroupbind-portforeign-bind-portzonebootstrap-hosthost-modehost-mode-description
cat myHost.json
==>
{
"host-name": "hostname1",
"group": "",
"bind-port": 8090,
"foreign-bind-port": 9091,
"zone": "",
"bootstrap-host": true
}
curl -X POST --digest -u admin:admin -H "Content-type: application/json" \
-d @myHost.json http://localhost:8002/manage/v2/hosts
==> Defines the host, named "hostname1," as the bootstrap host in
the cluster.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.