This resource address modifies the properties of the local cluster.
URL Parameters | |
---|---|
format | The format of the returned data. Can be either
json or xml (default). This parameter overrides the Accept
header if both are present. |
Upon success, MarkLogic Server returns status code 204 (No content). 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
Note: The properties described here are for XML payloads. In general they are the same for
JSON, with the exception that, in JSON, bootstrap-hosts
is expressed in
singular form. For example, in JSON, bootstrap-hosts
is instead
bootstrap-host
and the format is as shown in the example below.
security-version
effective-version
cluster-id
cluster-name
ssl-fips-enabled
xdqp-ssl-certificate
bootstrap-hosts
This is a complex structure with the following children:
bootstrap-host
This is a complex structure with the following children:
bootstrap-host-id
bootstrap-host-name
bootstrap-connect-port
language-baseline
opsdirector-log-level
opsdirector-metering
opsdirector-config
opsdirector-session-endpoint
data-directory
filesystem-directory
role
version
curl -X PUT --anyauth -u admin:admin --header "Content-Type:application/json" \ -d '{"bootstrap-host": [{ "bootstrap-host-id": "3543728720765551570", "bootstrap-host-name": "localhost", "bootstrap-connect-port": 7998}]}' \ http://localhost:8002/manage/v2/properties ==> Sets "localhost" to be the bootstrap host for the cluster.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.