此内容没有您所选择的语言版本。
13.2.8. Restart Cartridge
Description
Restart a running embedded cartridge.
Method and URL Structure
Method | Resource URL |
---|---|
POST | /broker/rest/application/:id/cartridge/:name/events |
Request Parameters
Name | Description | Required | Default |
---|---|---|---|
event | Event | Yes |
See Section A.7, “Cartridges” for more information about the valid options applicable to these request parameters.
Request
{ "event": "restart" }
{
"event": "restart"
}
cURL Command Example
curl -X POST https://openshift.redhat.com/broker/rest/application/534253991015616165707776/cartridge/mysql-5.5/events --user user@example.com --data-urlencode event=restart
$ curl -X POST https://openshift.redhat.com/broker/rest/application/534253991015616165707776/cartridge/mysql-5.5/events --user user@example.com --data-urlencode event=restart
JSON Response
The API returns the application resource. Unnecessary information and related resource links returned by the API have been removed for brevity. See Chapter 11, Applications for more information on all application parameters.