Retrieve credentials used to access external services, such as Amazon Web Services (AWS).
If no credentials have been set, only the
typeproperty is returned.
The format of the data in the response body. Allowed values:
The type of credentials to be returned. Currently, the only supported type is
The desired MIME type of the data in the response body. If the
The MIME type of the data in the response body. Depending upon the
value of the |
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-userrole, or the following privilege:
The structure of the output returned from this REST API is as follows:
http://localhost:8002/manage/v2/credentials?type=aws ==> Returns credentials used to access Amazon Web Services (AWS).