Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
API call:
curl -u admin:admin -i -X POST -d '[{"ConfigGroup":{"cluster_name":"c1","group_name":"hdfs-nextgenslaves-1","tag":"HDFS","description":"HDFS configs for rack added on Nov 7, 2013","hosts":[{"host_name":"c6402.ambari.apache.org"}],"desired_configs":[{"type":"core-site","tag":"nextgen1","properties":{"key1":"value1","ipc.client.connect.max.retries":"35"}},{"type":"global","tag":"nextgen1","properties":{"key1":"value1","namenode_heapsize":"1250m"}}]}}]' http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups
Response:
{ "resources" : [ { "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups/resources/2", "ConfigGroup" : { "id" : 2 } } ] }
Correct href:
http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups/2