[ 
https://issues.apache.org/jira/browse/AMBARI-22883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jayush Luniya resolved AMBARI-22883.
------------------------------------
    Resolution: Fixed

> Create hosts per operating system count summary
> -----------------------------------------------
>
>                 Key: AMBARI-22883
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22883
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 3.0.0
>            Reporter: Scott Duan
>            Assignee: Scott Duan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 12h 10m
>  Remaining Estimate: 0h
>
> In the install wizard, after host registration, we need to know the number of 
> hosts running each possible operating system.
> *Example request:*
> {code:java}
>  GET
> http://localhost:8080/api/v1/hosts?format=summary
> {code}
> Example response:
> {code:java}
> {    "operating_systems": [        "redhat6": 75,        "debian7": 100
>     ]
> }
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to