Web API Reference Guide > Available API Methods > Notification Center Methods > The sendNotification Method

The sendNotification Method

Sends notification email message.

Version: 1.3

Required Permissions: Full

HTTP method: POST

Supported by Editions: All

Request Parameters:  

Parameter

 Type

Required

Description

type

String

Yes

One of types.

ip

String

Yes

The public IP of Zend Server.

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

Response Format: none

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

Example

Usage Example

Request

POST /ZendServer/Api/sendNotificationtype=phpRestart&ip=127.0.0.1

Response

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

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

<requestData>

<apiKeyName><![CDATA[Admin]]></apiKeyName>

<method>sendNotifications</method>

</requestData>

<responseData>

</responseData>

</zendServerAPIResponse>

 

Read Also

  Available API Methods    
  Notification Center Methods