Retrieve credentials used to access external services, such as Amazon Web
Services (AWS). If no credentials have been set, only the type
property is
returned.
Upon success, MarkLogic server returns status code 200 (OK) and the response body contains the requested data. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-user
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
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
http://localhost:8002/manage/v2/credentials/properties?type=aws ==> Returns credentials 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.