command:notification

getNotifications

getNotifications [--hash=] [--target=] [--zsurl=] [--zskey=] [--zssecret=] [--zsversion=] [--http=] [--output-format=] 

Retrieve a list of system messages, their details and meta information. The list of messages includes state messages which cannot be modified and instance messages which can be changed. The list is always ordered by level and date. Note that “Restart” level is the highest level and will appear first in any list.

  • --hash
    Hash string that represent the notifications. This hash is generated by the getNotifications API and shows in the response structure. Use this parameter to tell what version of notifications you use, and only if notifications are changed they will be sent.
  • --output-format
    Output format. Default is "xml", but you can use "json", or "kv" for key-value.

deleteNotification

deleteNotification --type= [--target=] [--zsurl=] [--zskey=] [--zssecret=] [--zsversion=] [--http=] [--output-format=] 

Delete notification by type.

  • --type
    One of types: serverOffline, restartRequired, daemonOffline, phpExtDirectiveMismatch, phpExtNotLoaded, phpExtNotInstalled, zendExtDirectiveMismatch, zendExtNotLoaded, zendExtNotInstalled, deploymentFailure, deploymentUpdateFailure, deploymentRedeployFailure, deploymentHealthcheckFailure, deploymentRemoveFailure, deploymentRollbackFailure, deploymentDefineAppFailure, serverAddError, serverRemoveError, serverEnableError, serverDisableError, serverForceRemoveError, jobqueueHighConcurrency, serverRestarting, sessionClusteringWrongHandler, invalidLicense, licenseAboutToExpire, webserverNotResponding, maxServersInCluster, licenseAboutToExpire45, licenseAboutToExpire15, databaseConnectionRestored, sessionClusteringStdbyMode, zendServerDaemonOffline, sessionClusteringErrorMode.
  • --output-format
    Output format. Default is "xml", but you can use "json", or "kv" for key-value.

updateNotification

updateNotification --type= [--repeat=] [--target=] [--zsurl=] [--zskey=] [--zssecret=] [--zsversion=] [--http=] [--output-format=] 

Update notification properties.

  • --type
    One of types: serverOffline, restartRequired, daemonOffline, phpExtDirectiveMismatch, phpExtNotLoaded, phpExtNotInstalled, zendExtDirectiveMismatch, zendExtNotLoaded, zendExtNotInstalled, deploymentFailure, deploymentUpdateFailure, deploymentRedeployFailure, deploymentHealthcheckFailure, deploymentRemoveFailure, deploymentRollbackFailure, deploymentDefineAppFailure, serverAddError, serverRemoveError, serverEnableError, serverDisableError, serverForceRemoveError, jobqueueHighConcurrency, serverRestarting, sessionClusteringWrongHandler, invalidLicense, licenseAboutToExpire, webserverNotResponding, maxServersInCluster, licenseAboutToExpire45, licenseAboutToExpire15, databaseConnectionRestored, sessionClusteringStdbyMode, zendServerDaemonOffline, sessionClusteringErrorMode.
  • --repeat
    How long the notification should be hidden from user (in minutes).
  • --output-format
    Output format. Default is "xml", but you can use "json", or "kv" for key-value.

sendNotification

sendNotification --type= --ip= [--target=] [--zsurl=] [--zskey=] [--zssecret=] [--zsversion=] [--http=] [--output-format=] 

Send a notification email message of a given type.

  • --type
    One of types: serverOffline, restartRequired, daemonOffline, phpExtDirectiveMismatch, phpExtNotLoaded, phpExtNotInstalled, zendExtDirectiveMismatch, zendExtNotLoaded, zendExtNotInstalled, deploymentFailure, deploymentUpdateFailure, deploymentRedeployFailure, deploymentHealthcheckFailure, deploymentRemoveFailure, deploymentRollbackFailure, deploymentDefineAppFailure, serverAddError, serverRemoveError, serverEnableError, serverDisableError, serverForceRemoveError, jobqueueHighConcurrency, serverRestarting, sessionClusteringWrongHandler, invalidLicense, licenseAboutToExpire, webserverNotResponding, maxServersInCluster, licenseAboutToExpire45, licenseAboutToExpire15, databaseConnectionRestored, sessionClusteringStdbyMode, zendServerDaemonOffline, sessionClusteringErrorMode.
  • --ip
    The public IP of Zend Server.
  • --output-format
    Output format. Default is "xml", but you can use "json", or "kv" for key-value.