이 콘텐츠는 선택한 언어로 제공되지 않습니다.
11.16. Scale Up Application
Description
Scale up an application that was created with the scaling function enabled.
Method and URL Structure
Method | Resource URL |
---|---|
POST | /broker/rest/application/:id/events |
Request Parameters
Name | Description | Required | Default |
---|---|---|---|
event | Event | Yes |
See Section A.6, “Applications” for more information about the valid options applicable to these request parameters.
Request
{ "event": "scale-up" }
{
"event": "scale-up"
}
cURL Command Example
curl -X POST https://openshift.redhat.com/broker/rest/application/534253991015616165707776/events --user user@example.com --data-urlencode event=scale-up
$ curl -X POST https://openshift.redhat.com/broker/rest/application/534253991015616165707776/events --user user@example.com --data-urlencode event=scale-up
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.
The API returns an error message if a user has reached the maximum number of gears allowed for their account, as shown in the sample response output below.
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow