This resource address sets the credentials used to access external services, such as Amazon Web Services (AWS).
Upon success, MarkLogic Server returns a status code 201 (Created). If the payload is malformed or the alert does not exist, 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 output returned from this REST API is as follows:
aws
This is a complex structure with the following children:
access-key
secret-key
session-token
azure
This is a complex structure with the following children:
storage-account
storage-key
curl -X PUT --digest -u admin:admin -H "Content-type: application/json" \ -d '{ "type": "aws", "access-key": "AWS-ACCESS-KEY", "secret-key": "SECRET-KEY" }' \ http://localhost:8002/manage/v2/credentials/properties ==> Sets the access and secret keys used to access Amazon Web Services (AWS).
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.