Creating an event subscription
To create an event subscription, run the otd_createEventSubscription
command, as shown in the example.
props = {}
props['configuration'] = 'foo'
props['event-subscription'] = 'bar'
props['url'] = 'http://example.com:7777/subscriber'
otd_createEventSubscription(props)
The first command subscribes to the URL: http://example.com:7777/subscriber
Viewing a list of event subscriptions
To view a list of subscribed event subscriptions, run the otd_listEventSubscriptions
command.
For example, to display the event subscriptions scheduled for instances of the configuration:
props = {} props['configuration'] = 'foo' otd_listEventSubscriptions(props)
Deleting an event subscription
To delete an event subscription, run the otd_deleteEventSubscription
command, as shown in the example.
props = {} props['configuration'] = 'foo' props['event-subscription'] = 'bar' otd_deleteEventSubscription(props)
Setting an event subscription properties
When you create an event subscription, it is enabled automatically.
The command otd_setEventSubscriptionProperties
with 'enabled' as 'false' can be used to disable event subscriptions.
To disable an event, set the enabled
property to false.
props = {} props['configuration'] = 'foo' props['event-subscription'] = 'bar' props['enabled'] = 'true' otd_setEventSubscriptionProperties(props)
Getting an event subscription properties
The command otd_getEventSubscriptionProperties with 'enabled' as 'true' must be used to get the event subscription properties.
To enable an event, set the enabled
property to true:
props = {} props['configuration'] = 'foo' props['event-subscription'] = 'bar' otd_getEventSubscriptionProperties(props)
For more information about the WLST commands mentioned in this section, see WebLogic Scripting Tool Command Reference for Oracle Traffic Director.
To know the details of the command and its each parameter/option, use help, as shown below:
help('otd_createEventSubscription')