Update security properties.
URL Parameters | |
---|---|
format | The format of the posted data. Can be either
json (default) or xml . This value overrides the Accept header if
both are present.
|
Response Headers | |
---|---|
Content-type | The MIME type of the data in the response
body. Depending upon the value of the format parameter or Accept header, either
application/xml or application/json .
|
Upon success, MarkLogic Server returns status code 200 (OK). 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.
security
and
manage-admin
roles.
Note: The properties described here are for XML payloads. In general they are
the same for JSON, with the exception that, in JSON, roles
is expressed in
singular form. For example, in JSON, roles
is instead role
and the format is: "role":["rolename"]
.
When setting protected-paths, you must also set permissions.
The structure of the output returned from this REST API is as follows:
keystore
This is a complex structure with the following children:
keystore-id
data-encryption
config-encryption
logs-encryption
kms-type
backup-option
host-name
port
data-encryption-key-id
config-encryption-key-id
logs-encryption-key-id
kmip-certificate-path
kmip-key-path
kmip-CA-path
key-size
slot-id
p11-driver-path
p11-wallet-path
kms-init-id
logs-encryption-auxiliary-id
external-data-encryption-key-id
external-config-encryption-key-id
external-logs-encryption-key-id
internal-data-encryption-key-id
internal-config-encryption-key-id
internal-logs-encryption-key-id
#! /bin/bash # update security properties # you must add manageadmin user with manage-admin role MANAGEADMIN="manageadmin" MANAGEPASS="x" # update security properties (requires security role) curl -v -X PUT --anyauth --user $MANAGEADMIN:$MANAGEPASS \ --header "Content-Type:application/json" \ -d '{"keystore":{"data-encryption":"default-off"}}' \ http://127.0.0.1:8002/manage/v2/security/properties
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.