incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-971) Add api support for creating multiple resources in a single request
Date Tue, 06 Nov 2012 18:52:12 GMT

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

John Speidel updated AMBARI-971:
--------------------------------

    Description: 
Add the ability to create multiple resources of the same type by providing an array of resource
properties in the http body.

For example, to create multiple service resources for the cluster named "mycluster":

POST htp://myHost:8080/api/v1/clusters/mycluster/services
[ 
{"ServiceInfo" : {
        "service_name" : "PIG"
      }
},
{"ServiceInfo" : {
        "service_name" : "OOZIE"
      }
},
{"ServiceInfo" : {
        "service_name" : "HIVE"
      }
}
]


  was:
Add the ability to create multiple resources of the same type by providing an array of resource
properties in the http body.

For example, to create multiple service resources for the cluster named "mycluster":

POST htp://myHost:8080/api/v1/clusters/mycluster/services
[ 
{"ServiceInfo" : {
        "cluster_name" : "mycluster",
        "service_name" : "PIG"
      }
},
{"ServiceInfo" : {
        "cluster_name" : "mycluster",
        "service_name" : "OOZIE"
      }
},
{"ServiceInfo" : {
        "cluster_name" : "mycluster",
        "service_name" : "HIVE"
      }
}
]


    
> Add api support for creating multiple resources in a single request
> -------------------------------------------------------------------
>
>                 Key: AMBARI-971
>                 URL: https://issues.apache.org/jira/browse/AMBARI-971
>             Project: Ambari
>          Issue Type: New Feature
>            Reporter: John Speidel
>            Assignee: John Speidel
>
> Add the ability to create multiple resources of the same type by providing an array of
resource properties in the http body.
> For example, to create multiple service resources for the cluster named "mycluster":
> POST htp://myHost:8080/api/v1/clusters/mycluster/services
> [ 
> {"ServiceInfo" : {
>         "service_name" : "PIG"
>       }
> },
> {"ServiceInfo" : {
>         "service_name" : "OOZIE"
>       }
> },
> {"ServiceInfo" : {
>         "service_name" : "HIVE"
>       }
> }
> ]

--
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