incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-2260) Bad hosts query example in API docs
Date Mon, 03 Jun 2013 16:27:20 GMT
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

Mime
View raw message