Zhaowei:
      You can refer this doucment: 
https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations . In 
configs.sh, it uses Rest API to set/get/delete configurations.
      So, you can modify configs.sh to echo the request string, and use 
"./configs.sh delete localhost clusterName xxx-site" to get what you want.

Regards!




At 2016-01-05 17:10:04, "Zhao Wei ZW Shen" <[email protected]> wrote:


Hi Experts,

I can create and view the Configuration resource with Rest smoothly (POST and 
GET).
But I found I cannot update/delete the Configuration that I created with Rest.

Someone can coach me for this? It is appreciated.

e.g.
I can create the following Configuration with the cmd. How can I delete this 
one from Ambari Server.

curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d '
{
"tag" : "myconf",
"type" : "v1",
"properties" : {
"shared_path" : "/aaa"
}
}
' http://szw1:8080/api/v1/clusters/zwshen/configurations

Regards,
Zhaowei Shen

Reply via email to