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

Bulk DELETE API is broken

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      When calling the bulk delete API, for example 

       
      curl -k -u admin:admin -H "X-Requested-By: ambari" -X DELETE
      "$HTTP_PROTOCOL://$CONSOLE_NODE:$PORT/api/v1/clusters/$CLUSTER/hosts/$hostName/host_components/"

      the response we get is:

      { "status" : 400, "message" : "Invalid Request: RequestStatusDetails is not of type DeleteStatusDetails" }

      The expected result is something like described at 
      https://cwiki.apache.org/confluence/display/AMBARI/Bulk+delete+components+on+multiple+hosts

        Attachments

        1. bulk_delete_api.patch
          5 kB
          Praveen Kumar K J V S

          Activity

            People

            • Assignee:
              hapylestat Dmytro Grinenko
              Reporter:
              praveenkjvs Praveen Kumar K J V S

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment