このコンテンツは選択した言語では利用できません。
11.9. Update an Application
Description
Update an application.
Method and URL Structure
| Method | Resource URL | 
|---|---|
 PUT  |  /broker/rest/application/:id  | 
Request Parameters
| Name | Description | Required | Default Value | 
|---|---|---|---|
 auto_deploy  |  Indicates whether an application should build and deploy automatically whenever git push is executed  | No | |
 deployment_type  | Indicates whether an application is configured for binary or Git based deployments | No | |
 deployment_branch  | If automatic deployment is enabled, this indicates from which branch automatic deployment occurs | No | |
 keep_deployments  | Indicates how many total deployments are preserved; must be greater than zero | No | 
		See Section A.6, “Applications” for more information about the valid options applicable to these request parameters.
	
Request
{
  "auto_deploy": true,
  "deployment_type": "git"
}
{
  "auto_deploy": true,
  "deployment_type": "git"
}
cURL Command Example
curl -X PUT https://openshift.redhat.com/broker/rest/application/527ade9d7f9c48d37100000a --user user@myemail.com:password --data-urlencode auto_deploy=true --data-urlencode deployment_type=git
$ curl -X PUT https://openshift.redhat.com/broker/rest/application/527ade9d7f9c48d37100000a --user user@myemail.com:password --data-urlencode auto_deploy=true --data-urlencode deployment_type=git
JSON Response
The API returns the deployment resource. See Chapter 11, Applications for more information on all deployment parameters.