Este contenido no está disponible en el idioma seleccionado.

11.9. Update an Application


Description

Update an application.

Method and URL Structure

Expand
Method Resource URL
PUT /broker/rest/application/:id

Request Parameters

Expand
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"
}
Copy to Clipboard Toggle word wrap

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
Copy to Clipboard Toggle word wrap

JSON Response

The API returns the deployment resource. See Chapter 11, Applications for more information on all deployment parameters.

{
  "api_version": 1.6,
  "data": {
    "aliases": [

    ],
    "app_url": "http://myapplication-mydomain.rhcloud.com/",
    "auto_deploy": true,
    "build_job_url": null,
    "building_app": null,
    "building_with": null,
    "creation_time": "2013-11-07T00:28:13Z",
    "deployment_branch": "master",
    "deployment_type": "git",
    "domain_id": "mydomain",
    "embedded": {
      "haproxy-1.4": {
      }
    },
    "framework": "ruby-2.0",
    "gear_count": 1,
    "gear_profile": "small",
    "git_url": "ssh://527ade9d7f9c48d37100000a@myapplication-mydomain.rhcloud.com/~/git/myapplication.git/",
    "health_check_path": "health",
    "id": "527ade9d7f9c48d37100000a",
    "initial_git_url": null,
    "keep_deployments": 1,
    "members": [
      {
        "explicit_role": null,
        "from": [
          {
            "type": "domain",
            "role": "admin"
          }
        ],
        "id": "527ade897f9c48d371000001",
        "login": "user@myemail.com",
        "owner": true,
        "role": "admin",
        "type": "user"
      }
    ],
    "name": "myapplication",
    "scalable": true,
    "ssh_url": "ssh://527ade9d7f9c48d37100000a@myapplication-mydomain.rhcloud.com"
  },
  "messages": [
    {
      "exit_code": 0,
      "field": null,
      "index": null,
      "severity": "info",
      "text": "Application myapplication was updated."
    }
  ],
  "status": "ok",
  "supported_api_versions": [
    1.0,
    1.1,
    1.2,
    1.3,
    1.4,
    1.5,
    1.6
  ],
  "type": "application",
  "version": "1.6"
}
Copy to Clipboard Toggle word wrap

Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat