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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content