此内容没有您所选择的语言版本。
13.2.4. Update Cartridge Configuration
Description
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
Contact your system administrator for more information.
Method and URL Structure
Method | Resource URL |
---|---|
PUT | /broker/rest/application/:id/cartridge/:name |
Request Parameters
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 |
See Section A.7, “Cartridges” for more information about the valid options applicable to these request parameters.
Request
{ "additional_gear_storage": 10 }
{
"additional_gear_storage": 10
}
cURL Command Example
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
JSON Response
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.
The API returns an error message if the user account does not allow additional gear storage.