
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 and security rolehttp://marklogic.com/xdmp/privileges/manage
http://marklogic.com/xdmp/privileges/manage-admin
http://marklogic.com/xdmp/privileges/credentials-set-aws
http://marklogic.com/xdmp/privileges/credentials-set-azure
The structure of the output returned from this REST API is as follows:
awsThis is a complex structure with the following children:
access-keysecret-keysession-tokenazureThis is a complex structure with the following children:
storage-accountstorage-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.