Web API Reference Guide > Available API Methods > Server and Cluster Management Methods > The getServerInfo Method

The getServerInfo Method

Provide version information about the various external components installed on Zend Server as well as version information about Zend Server itself. A complete phpInfo render is also provided in base64 encoding.

Version: 1.3

Required Permissions: read

HTTP method: GET

Supported by Editions: All

Request Parameters:

Parameter

 Type

Required

Description

serverId

Integer

Yes

Server identifier to retrieve information for. On a single-server this should always be 0

Expected Response Code: 200 OK

Response Type: serverData

Possible Action Specific Error Codes:

HTTP Code

 Error Code

Description

404

noSuchServer

Returned if the serverId requested does not exist.

Example

Usage Example

Request

GET /ZendServer/Api/getServerInfo?serverId=0

Response

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

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

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>getServerInfo</method>

</requestData>

<responseData>

<serverData>

<phpInfo><![CDATA[...]]></phpInfo>

<zfversion>1.12.1</zfversion>

<zf2version>2.1.0</zf2version>

<phpversion>5.3.21</phpversion>

<gatewayversion>0.9.0.201301302347</gatewayversion>

<zsversion>branch_zend_server_release_6.0.0:68276</zsversion>

</serverData>

</responseData>

 

 

Read Also

  Available API Methods    
  Server and Cluster Management Methods