createNotificationPolicy

Creates and saves a notification policy.

Applies to Clouds and Integration Appliances.

Parameter:

policy
The name of the policy.
Returns:
The notification policy ID of the policy was successfully created. If not successful, returns a -1.

Examples:

The following example is a SOAP request to create a notification policy.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:log="http://www.approuter.com/schemas/2008/1/lognotif">
 <soapenv:Header>
  <log:sessionId>910D9A7B441C97AC2FCC54E3F1274AA7</log:sessionId>
 </soapenv:Header>
 <soapenv:Body>
  <log:createNotificationPolicy>
   <log:name>TestNotif</log:name>
   <log:logComponent>orchestration</log:logComponent>
   <log:logLevel>error</log:logLevel>
   <log:emailAddresses>user@mydomain.com</log:emailAddresses>
   <log:isSnmp>false</log:isSnmp>
  </log:createNotificationPolicy>
 </soapenv:Body>
</soapenv:Envelope>
The following example is the SOAP response to the request.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
 <S:Body>
  <ns2:createNotificationPolicyResponse xmlns:ns2="http://
  www.approuter.com/schemas/2008/1/lognotif" xmlns:ns3="http://
  www.approuter.com/schemas/2008/1/lognotif/types">
   <ns2:policyId>688128</ns2:policyId>
  </ns2:createNotificationPolicyResponse>
 </S:Body>
</S:Envelope>



Feedback | Notices


Timestamp icon Last updated: Wednesday, December 16, 2015


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.api.doc/ci00138.html