diff options
author | Vitezslav Crhonek <vcrhonek@redhat.com> | 2013-10-23 13:04:08 +0200 |
---|---|---|
committer | Vitezslav Crhonek <vcrhonek@redhat.com> | 2013-10-23 13:04:08 +0200 |
commit | c365bd126b1d60a32a51e50d9cdadca11c4eb5fb (patch) | |
tree | 642bfad05185ae28ea5d0449d06bdce3fa6dc1b0 /doc | |
parent | f0de56c3d20d72aa38f685dee79486da967863fb (diff) | |
download | openlmi-providers-c365bd126b1d60a32a51e50d9cdadca11c4eb5fb.tar.gz openlmi-providers-c365bd126b1d60a32a51e50d9cdadca11c4eb5fb.tar.xz openlmi-providers-c365bd126b1d60a32a51e50d9cdadca11c4eb5fb.zip |
doc: fix account indication examples
Diffstat (limited to 'doc')
-rw-r--r-- | doc/admin/account/usage.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/admin/account/usage.rst b/doc/admin/account/usage.rst index f8a5e89..6d55851 100644 --- a/doc/admin/account/usage.rst +++ b/doc/admin/account/usage.rst @@ -205,13 +205,15 @@ The following example creates filter, handler and subscription (lmi shell do it :: # Notify when a user is created - c.root.interop.create_indication( + c.subscribe_indication( FilterCreationClassName="CIM_IndicationFilter", FilterSystemCreationClassName="CIM_ComputerSystem", FilterSourceNamespace="root/cimv2", - QueryLanguage="WQL", + QueryLanguage="DMTF:CQL", Query='SELECT * FROM LMI_AccountInstanceCreationIndication WHERE SOURCEINSTANCE ISA LMI_Account', Name="account_creation", + CreationNamespace="root/interop", + SubscriptionCreationClassName="CIM_IndicationSubscription", HandlerCreationClassName="CIM_IndicationHandlerCIMXML", HandlerSystemCreationClassName="CIM_ComputerSystem", Destination="http://192.168.122.1:5988" # this is the destination computer, where all the indications will be delivered @@ -225,13 +227,15 @@ Client can be notified when instance is deleted. The same rules like in `Creatio :: # Notify when a user is deleted - c.root.interop.create_indication( + c.subscribe_indication( FilterCreationClassName="CIM_IndicationFilter", FilterSystemCreationClassName="CIM_ComputerSystem", FilterSourceNamespace="root/cimv2", - QueryLanguage="WQL", + QueryLanguage="DMTF:CQL", Query='SELECT * FROM LMI_AccountInstanceDeletionIndication WHERE SOURCEINSTANCE ISA LMI_Account', - Name="account_creation", + Name="account_deletion", + CreationNamespace="root/interop", + SubscriptionCreationClassName="CIM_IndicationSubscription", HandlerCreationClassName="CIM_IndicationHandlerCIMXML", HandlerSystemCreationClassName="CIM_ComputerSystem", Destination="http://192.168.122.1:5988" # this is the destination computer, where all the indications will be delivered |