Description
Get information about an existing OpenShift Online application and it's embedded cartridges.
Method and URL Structure
Request Parameters
Not applicable
cURL Command Example
$ curl -k -X GET https://openshift.redhat.com/broker/rest/domains/[Domain_ID]/applications/[App_Name]?include=cartridges --user "[UserName]:[Password]"
Response
The API returns information about the specified application, it's embedded cartridges, and related resource links for applications and cartridges. See Chapter 5, Applications for more information on all application parameters.
Sample JSON Response
The sample response output shows the information returned by the API for the application named myapp. The HAProxy 1.4 cartridge has been added automatically because myapp is a scaled application. The related resource links returned by the API have been removed for brevity.
$ curl -k -X GET https://openshift.redhat.com/broker/rest/domains/MyDomain/applications/myapp --user "user@myemail.com:password"
{
"data": {
"aliases": [],
"app_url": "http://myapp-MyDomain.rhcloud.com/",
"build_job_url": null,
"building_app": null,
"building_with": null,
"creation_time": "2012-10-18T23:44:21Z",
"domain_id": "MyDomain",
"embedded": {
"haproxy-1.4": {
"info": {}
},
"mysql-5.1": {
"info": {}
}
},
"framework": "php-5.3",
"gear_count": 3,
"gear_profile": "small",
"git_url": "ssh://dfd34495f6ab404e819d2f74ebd4cb50@myapp-MyDomain.rhcloud.com/~/git/myapp.git/",
"health_check_path": "health_check.php",
"initial_git_url": "",
"name": "myapp",
"scalable": true,
"ssh_url": "ssh://dfd34495f6ab404e819d2f74ebd4cb50@myapp-MyDomain.rhcloud.com",
"uuid": "dfd34495f6ab404e819d2f74ebd4cb50"
},
"messages": [],
"status": "ok",
}