summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVitezslav Crhonek <vcrhonek@redhat.com>2013-10-23 13:04:08 +0200
committerVitezslav Crhonek <vcrhonek@redhat.com>2013-10-23 13:04:08 +0200
commitc365bd126b1d60a32a51e50d9cdadca11c4eb5fb (patch)
tree642bfad05185ae28ea5d0449d06bdce3fa6dc1b0 /doc
parentf0de56c3d20d72aa38f685dee79486da967863fb (diff)
downloadopenlmi-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.rst14
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