Web API Reference Guide > Available API Methods > Library Methods > The libraryVersionSynchronize Method

The libraryVersionSynchronize Method

Cause the library version to be deployed again from its original package file. This can be used to cause the library to deploy in a cluster on members that are missing files or the library was not deployed at all on them.

Version: 1.5

Required Permissions: Full

HTTP method: POST

Supported by Editions: Zend Server

Request Parameters:

Parameter

 Type

Required

Description

libraryVersionId

Integer

Yes

Library version ID.

Expected Response Code: 202 Accepted  - For more information see Response Format.

Response Type: libraryVersionInfo

Possible Action Specific Error Codes:

HTTP Code

 Error Code

Description

400

invalidParameter

A value provided for a parameter is invalid

Example

Usage Example

Request

POST /ZendServer/Api/libraryVersionSynchronize

Response

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

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

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>libraryVersionSynchronize</method>

</requestData>

 

<responseData>

<libraryVersion>

<libraryVersionId>1</libraryVersionId>

<version>1.12.1</version>

<default>true</default>

<status>removing</status>

<installedLocation><![CDATA[/path/to/lib]]></installedLocation>

<isDefinedLibrary>false</isDefinedLibrary>

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

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

<servers>

<libraryServer>

<serverId>1</serverId>

<status>OK</status>

</libraryServer>

<libraryServer>

<serverId>4</serverId>

<status>OK</status>

</libraryServer>

<libraryServer>

<serverId>8</serverId>

<status>OK</status>

</libraryServer>

</servers>

</libraryVersion>

</responseData>

</zendServerAPIResponse>

 

Read Also

  Available API Methods    
  Library Methods