The serverValidateLicense Web API Method

Validate a Zend Server license.

Version: 1.3

Required Permissions: Read-only

HTTP method: POST

Supported by Editions: All

Request Parameters:  

Parameter

 Type

Required

Description

licenseName

String

Yes

The name of the license

licenseValue

String

Yes

The value of the license

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

Response Format: licenseValidated

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

500

internalServerError

License validation failed (various causes)

500

clusterNotAllowed

This license cannot be used on a Zend Server which is connected to a cluster.

Example

Usage Example

Request

POST /ZendServer/Api/serverValidateLicense licenseName=zend&licenseValue=XY9I9G100G18708F3A015D956DF82231

Response

<?xml version="1.0" encoding="UTF-8"?>
<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.3">
	<requestData>
		<apiKeyName><![CDATA[Admin]]></apiKeyName>
		<method>serverValidateLicense</method>
	</requestData>
	<responseData>
		<licenseValidated>true</licenseValidated>
		<licenseChange>
			<currentLicense>
				<edition>Enterprise</edition>
				<evaluation>true</evaluation>
			</currentLicense>
			<newLicense>
				<edition>Enterprise</edition>
				<evaluation>false</evaluation>
			</newLicense>
		</licenseChange>
	</responseData>
</zendServerAPIResponse>