Tom Beerbower created AMBARI-2260:
-------------------------------------

             Summary: Bad hosts query example in API docs
                 Key: AMBARI-2260
                 URL: https://issues.apache.org/jira/browse/AMBARI-2260
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower


The example ...

{code}
"hosts" : [

        {

            "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host1";,

            "Hosts" : {

                "cluster_name" : "c1",

                "host_name" : "some.cluster.host"

            }

        },

        {

            "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host2";,

        "Hosts" : {

            "cluster_name" : "c1",

            "host_name" : "another.cluster.host"

        }

    ]

{code}

... should read ...

{code}

 "hosts" : [

        {

            "href" : 
"http://your.ambari.server/api/v1/clusters/c1/hosts/some.host";,

            "Hosts" : {

                "cluster_name" : "c1",

                "host_name" : "some.host"

            }

        },

        {

            "href" : 
"http://your.ambari.server/api/v1/clusters/c1/hosts/another.host";,

            "Hosts" : {

                "cluster_name" : "c1",

                "host_name" : "another.host"

            }

                }

    ]

{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to