Previous Topic: Credentials Calls (/credentials)Next Topic: Replace Credentials


List Credentials

You can retrieve the credentials used by a deployed connector to access an event source. The response displays the username and password. This call is only valid for active connectors. An HTTP 404 error appears for passive connectors.

GET curl -u elm_user:elm_password -k -H "Accept: application/xml" "https://hostname:8443/rest/am/1/agentgroups/<groupid>/agents/<agentid>/connectors/<connid>/sources/<sourceid>/credentials

In your environment, replace the sample URI path "/agentgroups/<groupid>/agents/<agentid>/connectors/<connid>/sources/<sourceid>" with the path for the resource you want.

This call returns:

<credentials>
    <user>root</user>
    <password>password</password>
    <domain>domain_name</domain>
</credentials>

The optional domain value is only used for Windows credentials.