[ https://issues.apache.org/jira/browse/AMBARI-16145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ajit Kumar resolved AMBARI-16145. --------------------------------- Resolution: Fixed > Add dryrun API for host delete > ------------------------------- > > Key: AMBARI-16145 > URL: https://issues.apache.org/jira/browse/AMBARI-16145 > Project: Ambari > Issue Type: Task > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Ajit Kumar > Assignee: Ajit Kumar > Fix For: 2.4.0 > > > Add dryrun API for host delete > API should be take dry_run directive and check if requested host can be > deleted w/o deleting the host and should return error if any, like host is > not in delete friendly state. > {code} > curl -i -X DELETE -u admin:admin -H 'X-Requested-By:ambari' > 'http://localhost:8080/api/v1/clusters/c1/hosts?dry_run=true&Hosts/host_name=c6401.ambari.apache.org' > {code} > It should also support bulk delete format -- This message was sent by Atlassian JIRA (v6.3.4#6332)