You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "John Speidel (JIRA)" <ji...@apache.org> on 2012/11/06 19:50:12 UTC

[jira] [Created] (AMBARI-971) Add api support for creating multiple resources in a single request

John Speidel created AMBARI-971:
-----------------------------------

             Summary: 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" : {
        "cluster_name" : "mycluster",
        "service_name" : "PIG"
      }
},
{"ServiceInfo" : {
        "cluster_name" : "mycluster",
        "service_name" : "OOZIE"
      }
},
{"ServiceInfo" : {
        "cluster_name" : "mycluster",
        "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

[jira] [Updated] (AMBARI-971) Add api support for creating multiple resources in a single request

Posted by "John Speidel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMBARI-971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: AMBARI-971.patch
    
> 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
>         Attachments: AMBARI-971.patch
>
>
> 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

[jira] [Updated] (AMBARI-971) Add api support for creating multiple resources in a single request

Posted by "John Speidel (JIRA)" <ji...@apache.org>.
     [ 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