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] [Updated] (AMBARI-985) Support OR in API query
Date Thu, 08 Nov 2012 00:06:11 GMT

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

Tom Beerbower updated AMBARI-985:
---------------------------------

    Attachment: AMBARI-985.patch
    
> Support OR in API query
> -----------------------
>
>                 Key: AMBARI-985
>                 URL: https://issues.apache.org/jira/browse/AMBARI-985
>             Project: Ambari
>          Issue Type: Sub-task
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>         Attachments: AMBARI-985.patch
>
>
> Support queries like the following ...
> {code}
> /api/clusters/mycluster/services/HDFS/components?ServiceComponentInfo/component_name=NAMENODE|ServiceComponentInfo/component_name=DATANODE
> {code}
> This should return the components where the name is NAMENODE or DATANODE ...
> {code}
> {
>   "href" : "http://localhost:8080/api/clusters/mycluster/services/HDFS/components?ServiceComponentInfo/component_name=NAMENODE|ServiceComponentInfo/component_name=DATANODE",
>   "items" : [
>     {
>       "href" : "http://localhost:8080/api/clusters/mycluster/services/HDFS/components/NAMENODE",
>       "ServiceComponentInfo" : {
>         "cluster_name" : "mycluster",
>         "component_name" : "NAMENODE",
>         "service_name" : "HDFS"
>       }
>     },
>     {
>       "href" : "http://localhost:8080/api/clusters/mycluster/services/HDFS/components/DATANODE",
>       "ServiceComponentInfo" : {
>         "cluster_name" : "mycluster",
>         "component_name" : "DATANODE",
>         "service_name" : "HDFS"
>       }
>     }
>   ]
> }{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