이 콘텐츠는 선택한 언어로 제공되지 않습니다.
13.2.4. Update Cartridge Configuration
Update the configuration of an existing cartridge. Minimum and maximum scaling factors and additional filesystem storage in gigabytes on each gear that contains the specified cartridge can be set with this API resource.
Note
Method | Resource URL |
---|---|
PUT | /broker/rest/application/:id/cartridge/:name |
Name | Description | Required | Default |
---|---|---|---|
additional_gear_storage | Additional filesystem storage (GB) | No | |
scales_from | Minimum number of gears to run component | No | |
scales_to | Maximum number of gears to run component | No |
{ "additional_gear_storage": 10 }
{
"additional_gear_storage": 10
}
curl -X PUT https://openshift.redhat.com/broker/rest/application/534253991015616165707776/cartridge/mysql-5.5 --user user@example.com --data-urlencode additional_gear_storage=10
$ curl -X PUT https://openshift.redhat.com/broker/rest/application/534253991015616165707776/cartridge/mysql-5.5 --user user@example.com --data-urlencode additional_gear_storage=10
The API returns the embedded cartridge resource with related resource links, and the updated values for the parameters that were changed. Unnecessary information and related resource links returned by the API have been removed for brevity. See Chapter 13, Cartridges for more information on all cartridge parameters.