Last active
August 29, 2015 14:06
-
-
Save adietish/dac5080ae69cfc510c73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"api_version": 1.6, | |
"data": { | |
"aliases": [ | |
], | |
"app_url": "http://orion-foogoo.rhcloud.com/", | |
"auto_deploy": true, | |
"build_job_url": null, | |
"building_app": null, | |
"building_with": null, | |
"creation_time": "2014-06-27T18:52:44Z", | |
"deployment_branch": "master", | |
"deployment_type": "git", | |
"domain_id": "foogoo", | |
"embedded": { | |
}, | |
"framework": "gorkem-orion-5.0", | |
"gear_count": 1, | |
"gear_profile": "small", | |
"git_url": "ssh://53adbd7c5004462e8000023c@orion-foogoo.rhcloud.com/~/git/orion.git/", | |
"health_check_path": "health", | |
"id": "53adbd7c5004462e8000023c", | |
"initial_git_url": null, | |
"keep_deployments": 1, | |
"links": { | |
"GET": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "Get application", | |
"required_params": [ | |
] | |
}, | |
"GET_DESCRIPTOR": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/descriptor", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "Get application descriptor", | |
"required_params": [ | |
] | |
}, | |
"GET_GEAR_GROUPS": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/gear_groups", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "Get application gear groups", | |
"required_params": [ | |
] | |
}, | |
"START": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Start application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"start" | |
] | |
} | |
] | |
}, | |
"STOP": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Stop application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"stop" | |
] | |
} | |
] | |
}, | |
"FORCE_STOP": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Force stop application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"force-stop" | |
] | |
} | |
] | |
}, | |
"RESTART": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Restart application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"restart" | |
] | |
} | |
] | |
}, | |
"SCALE_UP": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Scale up application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"scale-up" | |
] | |
} | |
] | |
}, | |
"SCALE_DOWN": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Scale down application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"scale-down" | |
] | |
} | |
] | |
}, | |
"TIDY": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Tidy the application framework", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"tidy" | |
] | |
} | |
] | |
}, | |
"RELOAD": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Reload the application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"reload" | |
] | |
} | |
] | |
}, | |
"THREAD_DUMP": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Trigger thread dump", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"thread-dump" | |
] | |
} | |
] | |
}, | |
"ADD_CARTRIDGE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/cartridges", | |
"method": "POST", | |
"optional_params": [ | |
{ | |
"default_value": null, | |
"description": "The component to colocate with", | |
"name": "colocate_with", | |
"type": "string", | |
"valid_options": [ | |
"gorkem-orion-5.0" | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Minimum number of gears to run the component on.", | |
"name": "scales_from", | |
"type": "integer", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Maximum number of gears to run the component on.", | |
"name": "scales_to", | |
"type": "integer", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Additional GB of space to request on all gears running this component.", | |
"name": "additional_gear_storage", | |
"type": "integer", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": "small", | |
"description": "Gear size for the cartridge.", | |
"name": "gear_size", | |
"type": "string", | |
"valid_options": [ | |
"small", | |
"medium", | |
"large" | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "A URL to a downloadable cartridge.", | |
"name": "url", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", | |
"name": "environment_variables", | |
"type": "array", | |
"valid_options": [ | |
] | |
} | |
], | |
"rel": "Add embedded cartridge", | |
"required_params": [ | |
{ | |
"description": "Name of a cartridge.", | |
"invalid_options": [ | |
], | |
"name": "name", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"LIST_CARTRIDGES": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/cartridges", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "List embedded cartridges", | |
"required_params": [ | |
] | |
}, | |
"DNS_RESOLVABLE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/dns_resolvable", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "Resolve DNS", | |
"required_params": [ | |
] | |
}, | |
"ADD_ALIAS": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/aliases", | |
"method": "POST", | |
"optional_params": [ | |
{ | |
"default_value": null, | |
"description": "Content of SSL Certificate", | |
"name": "ssl_certificate", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Private key for the certificate. Required if adding a certificate", | |
"name": "private_key", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Optional passphrase for the private key", | |
"name": "pass_phrase", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
], | |
"rel": "Create new alias", | |
"required_params": [ | |
{ | |
"description": "Alias for application", | |
"invalid_options": [ | |
], | |
"name": "id", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"LIST_ALIASES": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/aliases", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "List application aliases", | |
"required_params": [ | |
] | |
}, | |
"LIST_MEMBERS": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/members", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "List members of this application", | |
"required_params": [ | |
] | |
}, | |
"ADD_ENVIRONMENT_VARIABLE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/environment-variables", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Add an environment variable", | |
"required_params": [ | |
{ | |
"description": "Name of the environment variable", | |
"invalid_options": [ | |
], | |
"name": "name", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"description": "Value of the environment variable", | |
"invalid_options": [ | |
], | |
"name": "value", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"SET_UNSET_ENVIRONMENT_VARIABLES": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/environment-variables", | |
"method": "PATCH", | |
"optional_params": [ | |
{ | |
"default_value": null, | |
"description": "Name of the environment variable to add/update", | |
"name": "name", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Value of the environment variable", | |
"name": "value", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], {Delete: [{'name':'FOO'}, {'name':'BAR'}]}", | |
"name": "environment_variables", | |
"type": "array", | |
"valid_options": [ | |
] | |
} | |
], | |
"rel": "Add/Update/Delete one or more environment variables", | |
"required_params": [ | |
] | |
}, | |
"LIST_ENVIRONMENT_VARIABLES": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/environment-variables", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "List all environment variables", | |
"required_params": [ | |
] | |
}, | |
"DEPLOY": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/deployments", | |
"method": "POST", | |
"optional_params": [ | |
{ | |
"default_value": "master", | |
"description": "Git ref (tag, branch, commit id)", | |
"name": "ref", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "URL where the deployment artifact can be downloaded from", | |
"name": "artifact_url", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": false, | |
"description": "Indicates whether this is a hot deployment", | |
"name": "hot_deploy", | |
"type": "boolean", | |
"valid_options": [ | |
"true or false" | |
] | |
}, | |
{ | |
"default_value": false, | |
"description": "Indicates whether a clean build should be performed", | |
"name": "force_clean_build", | |
"type": "string", | |
"valid_options": [ | |
"true or false" | |
] | |
} | |
], | |
"rel": "Deploy the application", | |
"required_params": [ | |
] | |
}, | |
"UPDATE_DEPLOYMENTS": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/deployments", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Update deployments (Special permissions is required to update deployments)", | |
"required_params": [ | |
{ | |
"description": "An array of deployments", | |
"invalid_options": [ | |
], | |
"name": "deployments", | |
"type": "array", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"ACTIVATE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Activate a specific deployment of the application", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"activate" | |
] | |
}, | |
{ | |
"description": "The deployment ID to activate the application", | |
"invalid_options": [ | |
], | |
"name": "deployment_id", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"LIST_DEPLOYMENTS": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/deployments", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "List all deployments", | |
"required_params": [ | |
] | |
}, | |
"UPDATE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c", | |
"method": "PUT", | |
"optional_params": [ | |
{ | |
"default_value": null, | |
"description": "Indicates if OpenShift should build and deploy automatically whenever the user executes git push", | |
"name": "auto_deploy", | |
"type": "boolean", | |
"valid_options": [ | |
true, | |
false | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Indicates whether the app is setup for binary or git based deployments", | |
"name": "deployment_type", | |
"type": "string", | |
"valid_options": [ | |
"git", | |
"binary" | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Indicates which branch should trigger an automatic deployment, if automatic deployment is enabled.", | |
"name": "deployment_branch", | |
"type": "string", | |
"valid_options": [ | |
] | |
}, | |
{ | |
"default_value": null, | |
"description": "Indicates how many total deployments to preserve. Must be greater than 0", | |
"name": "keep_deployments", | |
"type": "integer", | |
"valid_options": [ | |
] | |
} | |
], | |
"rel": "Update application", | |
"required_params": [ | |
] | |
}, | |
"MAKE_HA": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/events", | |
"method": "POST", | |
"optional_params": [ | |
], | |
"rel": "Make the application Highly Available (HA)", | |
"required_params": [ | |
{ | |
"description": "event", | |
"invalid_options": [ | |
], | |
"name": "event", | |
"type": "string", | |
"valid_options": [ | |
"make-ha" | |
] | |
} | |
] | |
}, | |
"DELETE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c", | |
"method": "DELETE", | |
"optional_params": [ | |
], | |
"rel": "Delete application", | |
"required_params": [ | |
] | |
} | |
}, | |
"members": [ | |
{ | |
"explicit_role": null, | |
"from": [ | |
{ | |
"type": "domain", | |
"role": "admin" | |
} | |
], | |
"id": "511a780cf2cb83f4d0001b23", | |
"links": { | |
"GET": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/511a780cf2cb83f4d0001b23", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "Get member", | |
"required_params": [ | |
] | |
}, | |
"UPDATE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/511a780cf2cb83f4d0001b23", | |
"method": "PUT", | |
"optional_params": [ | |
], | |
"rel": "Update member", | |
"required_params": [ | |
{ | |
"description": "New role for member", | |
"invalid_options": [ | |
], | |
"name": "role", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"DELETE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/511a780cf2cb83f4d0001b23", | |
"method": "DELETE", | |
"optional_params": [ | |
], | |
"rel": "Delete member", | |
"required_params": [ | |
] | |
} | |
}, | |
"login": "adietish@redhat.com", | |
"owner": true, | |
"role": "admin", | |
"type": "user" | |
}, | |
{ | |
"explicit_role": null, | |
"from": [ | |
{ | |
"type": "domain", | |
"role": "edit" | |
} | |
], | |
"id": "511a79bdf2cb8331b0005a53", | |
"links": { | |
"GET": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/511a79bdf2cb8331b0005a53", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "Get member", | |
"required_params": [ | |
] | |
}, | |
"UPDATE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/511a79bdf2cb8331b0005a53", | |
"method": "PUT", | |
"optional_params": [ | |
], | |
"rel": "Update member", | |
"required_params": [ | |
{ | |
"description": "New role for member", | |
"invalid_options": [ | |
], | |
"name": "role", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"DELETE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/511a79bdf2cb8331b0005a53", | |
"method": "DELETE", | |
"optional_params": [ | |
], | |
"rel": "Delete member", | |
"required_params": [ | |
] | |
} | |
}, | |
"login": "bsutter@redhat.com", | |
"owner": false, | |
"role": "edit", | |
"type": "user" | |
}, | |
{ | |
"explicit_role": null, | |
"from": [ | |
{ | |
"type": "domain", | |
"role": "view" | |
} | |
], | |
"id": "526e9cbde0b8cdee65000165", | |
"links": { | |
"GET": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/526e9cbde0b8cdee65000165", | |
"method": "GET", | |
"optional_params": [ | |
], | |
"rel": "Get member", | |
"required_params": [ | |
] | |
}, | |
"UPDATE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/526e9cbde0b8cdee65000165", | |
"method": "PUT", | |
"optional_params": [ | |
], | |
"rel": "Update member", | |
"required_params": [ | |
{ | |
"description": "New role for member", | |
"invalid_options": [ | |
], | |
"name": "role", | |
"type": "string", | |
"valid_options": [ | |
] | |
} | |
] | |
}, | |
"DELETE": { | |
"href": "https://openshift.redhat.com/broker/rest/application/53adbd7c5004462e8000023c/member/526e9cbde0b8cdee65000165", | |
"method": "DELETE", | |
"optional_params": [ | |
], | |
"rel": "Delete member", | |
"required_params": [ | |
] | |
} | |
}, | |
"login": "jcantril@redhat.com", | |
"owner": false, | |
"role": "view", | |
"type": "user" | |
} | |
], | |
"name": "orion", | |
"scalable": false, | |
"ssh_url": "ssh://53adbd7c5004462e8000023c@orion-foogoo.rhcloud.com" | |
}, | |
"messages": [ | |
{ | |
"exit_code": 0, | |
"field": null, | |
"index": null, | |
"severity": "info", | |
"text": "Application 'orion' found" | |
} | |
], | |
"status": "ok", | |
"supported_api_versions": [ | |
1.0, | |
1.1, | |
1.2, | |
1.3, | |
1.4, | |
1.5, | |
1.6, | |
1.7 | |
], | |
"type": "application", | |
"version": "1.6" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment