@Dominik Ludwig
Please correct me uf my understanding regarding your query is not right.
.
We can register the remotecluster using ambari API as following, by passign the remote cluster credentials:
# curl -H "X-Requested-By: ambari" -u admin:admin -X POST -d '{"ClusterInfo":{"name":"erie21","url":"http://mainremote.example.com:8080/api/v1/clusters/MainCluster","username":"admin","password":"admin"}}' http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA
.
- However once the remote cluster is registered, it is not possible to see the password of remote cluster using the ambari APIs. You can only update the credentials using -X PUT method and the Put data as mentioned in the above API call.
curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA
In the response of the above command we will not see the password only the username will be visible.
.