cisco.dnac.event_subscription – Manage EventSubscription objects of EventManagement¶
Note
This plugin is part of the cisco.dnac collection (version 2.0.7).
To install it use: ansible-galaxy collection install cisco.dnac
.
To use it in a playbook, specify: cisco.dnac.event_subscription
.
New in version 1.0.0: of cisco.dnac
Synopsis¶
Delete EventSubscriptions.
Gets the list of Subscriptions’s based on provided offset and limit.
Subscribe SubscriptionEndpoint to list of registered events.
Update SubscriptionEndpoint to list of registered events.
Returns the Count of EventSubscriptions.
Note
This module has a corresponding action plugin.
Parameters¶
See Also¶
See also
- cisco.dnac.plugins.module_utils.definitions.event_subscription
The official documentation on the cisco.dnac.plugins.module_utils.definitions.event_subscription module.
- EventSubscription reference
Complete reference of the EventSubscription object model.
- EventSubscription reference
SDK reference.
Examples¶
- name: delete_event_subscriptions
cisco.dnac.event_subscription:
state: delete # required
subscriptions: SomeValue # string, required
- name: get_event_subscriptions
cisco.dnac.event_subscription:
state: query # required
event_ids: SomeValue # string
limit: 1 # number
offset: 1 # number
order: SomeValue # string
sort_by: SomeValue # string
register: nm_get_event_subscriptions
- name: create_event_subscriptions
cisco.dnac.event_subscription:
state: create # required
payload: # required
- filter: # required
eventIds:
- SomeValue # string
subscriptionId: SomeValue # string
version: SomeValue # string
name: SomeValue # string
description: SomeValue # string
subscriptionEndpoints:
- instanceId: SomeValue # string
subscriptionDetails:
name: SomeValue # string
url: SomeValue # string
method: SomeValue # string
connectorType: SomeValue # string
- name: update_event_subscriptions
cisco.dnac.event_subscription:
state: update # required
payload: # required
- filter: # required
eventIds:
- SomeValue # string
subscriptionId: SomeValue # string
version: SomeValue # string
name: SomeValue # string
description: SomeValue # string
subscriptionEndpoints:
- instanceId: SomeValue # string
subscriptionDetails:
name: SomeValue # string
url: SomeValue # string
method: SomeValue # string
connectorType: SomeValue # string
- name: count_of_event_subscriptions
cisco.dnac.event_subscription:
state: query # required
event_ids: SomeValue # string, required
count: True # boolean, required
register: nm_count_of_event_subscriptions
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rafael Campos (@racampos)