createNotificationPolicy
通知ポリシーの作成と保存を行います。
Cloud および 統合アプライアンス に適用されます。
パラメーター:
- policy
- ポリシーの名前。
- 戻り:
- 通知ポリシーが正常に作成された場合は、そのポリシーの ID。 作成に失敗した場合は、-1 が返されます。
例:
以下の例は、通知ポリシーを作成するための SOAP 要求です。
<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>
以下は、要求に対する SOAP 応答の例です。
<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>