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

Create hosts per operating system count summary

    XMLWordPrintableJSON

Details

    Description

      In the install wizard, after host registration, we need to know the number of hosts running each possible operating system.

      Example request:

       GET
      http://localhost:8080/api/v1/hosts?format=summary
      

      Example response:

      {    "operating_systems": [        "redhat6": 75,        "debian7": 100
          ]
      }
      

      Note that if there are zero hosts for an operating system type, then it is not included in the array.

      This structure allows us to add additional summary information as siblings to "operating_systems" in the future.

      Attachments

        Activity

          People

            sduan Scott Duan
            sduan Scott Duan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 13h 40m
                13h 40m