Este contenido no está disponible en el idioma seleccionado.
14.3. Activate a Deployment of an Application
Activate a particular deployment for the specified application.
Method | Resource URL |
---|---|
POST | /broker/rest/application/:id/events |
Name | Description | Required | Default |
---|---|---|---|
event | Event | Yes | |
deployment_id | Deployment ID to activate the application | Yes |
{ "event": "activate", "deployment_id": "f36f59c0" }
{
"event": "activate",
"deployment_id": "f36f59c0"
}
curl -X POST https://openshift.redhat.com/broker/rest/application/528424f6dbd93c204d000001/events --user user@example.com:password --data-urlencode event=activate --data-urlencode deployment_id=56e71f70
$ curl -X POST https://openshift.redhat.com/broker/rest/application/528424f6dbd93c204d000001/events --user user@example.com:password --data-urlencode event=activate --data-urlencode deployment_id=56e71f70
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.