<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question REST-URL to get the relevant information about the connectet remote Cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-URL-to-get-the-relevant-information-about-the-connectet/m-p/228811#M67354</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have
add two Ambari-Clusters in the remote configuration of another Ambari-Server.
To manage these Clusters I write for my own an Ambari-View. To get the relevant
Information I use the Ambari-REST-API. For the local-CLuster I know the
username, Password and the domainname of the Cluster. But for the remote
Cluster I dont want to manage this Information twice. Can I get this
Information with the rest-API? I have admin-Privileges on the
main-Ambari-Server.&lt;/P&gt;&lt;P&gt;Best
Regards&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2017 14:05:26 GMT</pubDate>
    <dc:creator>dlu</dc:creator>
    <dc:date>2017-08-28T14:05:26Z</dc:date>
    <item>
      <title>REST-URL to get the relevant information about the connectet remote Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-URL-to-get-the-relevant-information-about-the-connectet/m-p/228811#M67354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have
add two Ambari-Clusters in the remote configuration of another Ambari-Server.
To manage these Clusters I write for my own an Ambari-View. To get the relevant
Information I use the Ambari-REST-API. For the local-CLuster I know the
username, Password and the domainname of the Cluster. But for the remote
Cluster I dont want to manage this Information twice. Can I get this
Information with the rest-API? I have admin-Privileges on the
main-Ambari-Server.&lt;/P&gt;&lt;P&gt;Best
Regards&lt;/P&gt;&lt;P&gt;Dominik&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:05:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-URL-to-get-the-relevant-information-about-the-connectet/m-p/228811#M67354</guid>
      <dc:creator>dlu</dc:creator>
      <dc:date>2017-08-28T14:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: REST-URL to get the relevant information about the connectet remote Cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-URL-to-get-the-relevant-information-about-the-connectet/m-p/228812#M67355</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/31172/dlu.html" nodeid="31172"&gt;@Dominik Ludwig&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please correct me uf my understanding regarding your query is not right.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;We can register the remotecluster using ambari API as following, by passign the remote cluster credentials:&lt;/P&gt;&lt;PRE&gt;# 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"}}' &lt;A href="http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA" target="_blank"&gt;http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;However &lt;/STRONG&gt;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.&lt;/P&gt;&lt;PRE&gt;curl -H "X-Requested-By: ambari" -u admin:admin -X GET &lt;A href="http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA" target="_blank"&gt;http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;In the response of the above command we will not see the password only the username will be visible. &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:34:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-URL-to-get-the-relevant-information-about-the-connectet/m-p/228812#M67355</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-28T14:34:59Z</dc:date>
    </item>
  </channel>
</rss>

