Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

CDM change admin password using rest api

avatar
Explorer

Is it possible to change the Cloudera manager admin password using the rest api?

how to do it?

 

I'm using CDM 5.7

 

1 ACCEPTED SOLUTION

avatar
Master Collaborator

Here's an example;

 

$ curl -v -X PUT -u admin:admin -H 'Content-Type:application/json' -d '{ "password" : "new_password" }' 'http://cm.example.com:7180/api/v12/users/type_the_username_here'

 

[1] https://cloudera.github.io/cm_api/apidocs/v12/ns0_apiUser.html

View solution in original post

1 REPLY 1

avatar
Master Collaborator

Here's an example;

 

$ curl -v -X PUT -u admin:admin -H 'Content-Type:application/json' -d '{ "password" : "new_password" }' 'http://cm.example.com:7180/api/v12/users/type_the_username_here'

 

[1] https://cloudera.github.io/cm_api/apidocs/v12/ns0_apiUser.html