Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-16145

Add dryrun API for host delete

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server
    • None

    Description

      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.

      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'
      

      It should also support bulk delete format

      Attachments

        1. rb46750.patch
          7 kB
          Jayush Luniya

        Issue Links

          Activity

            People

              ajit.kumar Ajit Kumar
              ajit.kumar Ajit Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: