You can replace existing credentials. This call is only valid for active connectors. An HTTP 404 error appears for passive connectors.
curl -u elm_user:elm_password -k -H "Accept: application/xml" -H "Content-Type: application/xml" -X PUT -d <credentials><user>root</user><password>password</password><domain>domain_name</domain></credentials> "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.
In this case, the “–d” option specifies the new representation for the resource directly on the command line.
Note: This example contains the domain value, which is only required for Windows credentials.
Copyright © 2013 CA.
All rights reserved.
|
|