I have created an app in openshift that uses some code of mine. It is a django project. I want to be able to create a new app using their REST API but to make the new app use the existing repo as source code. is it possible? In my openshift web console, in the existing app section It gives a url and asks me to copy it to git clone. The url is of this form
ssh://a_very_large_string@appname-domain.rhcloud.com/~/git/appname.git/
I use the REST API call like this
curl -k -X POST https://openshift.redhat.com/broker/rest/domains/rhombus/applications --user "username:password" --data "name=client1&cartridge=python-2.7&scale=false&gear_profile=small&initial_git_url=ssh://a_ver_large_string@appname-domain.rhcloud.com/~/git/appname.git/"
But the response I get is the following:
{"api_version":1.7,
"data":null,
"messages":[{"exit_code":216,"field":"initial_git_url",
"index":null,
"severity":"error",
"text":"Invalid initial git URL"}
],
"status":"unprocessable_entity",
"supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7],
"type":null,
"version":"1.7"}
How can I obtain my git repo url to use it in a new application?