300-435 · Question #111
A network engineer wants to create an event subscription via a POST to /dna/intent/api/v1/event/subscription. Which line of code completes the JSON snippet? ``json { "name": "Cisco-DNA-Devnet"…
The correct answer is B. "subscriptionEndpoints": [. To create an event subscription in Cisco Catalyst Center (DNA Center), the JSON payload requires the "subscriptionEndpoints" key to define the details of the webhook destination.
Question
{
"name": "Cisco-DNA-Devnet",
"description": "Cisco-DNA-Devnet API subscription",
"subscriptionDetails": [
{
"instanceId": "1",
"url": "https://publicserver.cisco",
"method": "POST",
"connectorType": "REST"
}
],
"filter": {
"eventIds": [
"NETWORK-NON-FABRIC_WIRED-1-251"
]
}
}
Response Status 200 and Response Body: "statusUri": "/dna/intent/api/v1/event/api-status/8d6dff7b-3313-78ad-9d3d-9453d43d5c6"Options
- A"subscribeNotifications": [
- B"subscriptionEndpoints": [
- C"subscribeDnac": [
- D"subscriptionWhbook": [
How the community answered
(55 responses)- A4% (2)
- B82% (45)
- C11% (6)
- D4% (2)
Why each option
To create an event subscription in Cisco Catalyst Center (DNA Center), the JSON payload requires the "subscriptionEndpoints" key to define the details of the webhook destination.
"subscribeNotifications" is not the correct key for defining the webhook endpoints in the DNA Center event subscription API.
The `subscriptionEndpoints` key is the correct top-level attribute within the JSON payload used to define the list of destinations (endpoints) where event notifications will be sent when creating an event subscription via the Cisco Catalyst Center API. It encapsulates the details of how and where the events should be delivered.
"subscribeDnac" is not a recognized or valid key for configuring event subscription endpoints in the Cisco Catalyst Center API.
"subscriptionWhbook" is not the correct or standard key used in the Cisco Catalyst Center API for defining webhook subscription endpoints; "subscriptionEndpoints" is the appropriate term.
Concept tested: Cisco Catalyst Center event subscription JSON structure
Source: https://developer.cisco.com/docs/dna-center/#!create-an-event-subscription
Topics
Community Discussion
No community discussion yet for this question.