How can an application with multiple cartridges be created through the REST API in OpenShift?

Solution Verified - Updated -

Issue

When creating an application with the REST API in OpenShift, how can multiple cartridges be provided? Using --data-urlencode does not seem to allow numerous cartridges:

# curl -k -X POST https://localhost/broker/rest/domain/admin/applications --data-urlencode name=test1 --data-urlencode cartridges=ruby-1.9 postgresql-9.2 --data-urlencode scale=false --data-urlencode gear_size=medium -u admin:password
curl: (6) Couldn't resolve host 'postgresql-9.2'

Environment

  • OpenShift Enterprise

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.