The redeployAllApplications Web API Method

Redeploy all applications currently registered in the system for the specified servers. This action only sends the operation request and will not wait on completion.

Version: 1.3

Required Permissions: Read-only

HTTP method: POST

Supported by Editions:Zend Server

Request Parameters:

Parameter

 Type

Required

Description

servers

Array

No

List of servers to perform the operation on. Default: All servers.

Expected Response Code: 200 OK  - For more information see Response Format.

Response Type: applicationsList

Possible Action Specific Error Codes: This action has no specific error codes

Example

Usage Example

Figure 1. Request

POST /ZendServer/Api/redeployAllApplications

servers[]=1&servers[]=4

Figure 2. Response

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.3">

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>redeployAllApplications</method>

</requestData>

<responseData>

<applicationsList>

<applicationInfo>

<id>1</id>

<baseUrl>http://example.com/myapp</baseUrl>

<appName>Wordpress</appName>

<userAppName>Wolfgang's Blog</userAppName>

<installedLocation>/usr/local/somewhere</installedLocation>

<status>partiallyDeployed</status>

<servers>

<applicationServer>

<id>1</id>

<deployedVersion>1.6</deployedVersion>

<status>Staging</status>

</applicationServer>

<applicationServer>

<id>4</id>

<deployedVersion>1.6</deployedVersion>

<status>Unstaging</status>

</applicationServer>

<applicationServer>

<id>8</id>

<deployedVersion>1.5</deployedVersion>

<status>OK</status>

</applicationServer>

</servers>

<deployedVersions>

<deployedVersion>1.6</deployedVersion>

<deployedVersion>1.5</deployedVersion>

<applicationRollbackVersion>1.5</applicationRollbackVersion>

</deployedVersions>

<messageList />

<creationTime>1970-01-01T02:00:00+02:00</creationTime>

<lastUsed>1970-01-01T02:00:00+02:00</lastUsed>

</applicationInfo>

<applicationInfo>

<id>2</id>

<baseUrl>http://oapp.example.com:8080/</baseUrl>

<appName>Blog 2.0</appName>

<userAppName>Wolfgang's Blog</userAppName>

<installedLocation>/usr/local/somewhere</installedLocation>

<status>staging</status>

<servers>

<applicationServer>

<id>1</id>

<deployedVersion>1.6</deployedVersion>

<status>staging</status>

</applicationServer>

<applicationServer>

<id>4</id>

<deployedVersion>1.6</deployedVersion>

<status>staging</status>

</applicationServer>

<applicationServer>

<id>8</id>

<deployedVersion>1.5</deployedVersion>

<status>staging</status>

</applicationServer>

</servers>

<deployedVersions>

<deployedVersion>1.6</deployedVersion>

<deployedVersion>1.5</deployedVersion>

</deployedVersions>

<messageList />

<creationTime>1970-01-01T02:00:00+02:00</creationTime>

<lastUsed>1970-01-01T02:00:00+02:00</lastUsed>

</applicationInfo>

</applicationsList>

</responseData>

</zendServerAPIResponse>

Important Note:

For Zend Serveron Linux, this action is also available via the command line using CLI Tools. For more information see CLI Tools.