nerdexam
Cisco

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.

Controller-Based Network Automation

Question

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?
{
 "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)
  • A
    4% (2)
  • B
    82% (45)
  • C
    11% (6)
  • D
    4% (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.

A"subscribeNotifications": [

"subscribeNotifications" is not the correct key for defining the webhook endpoints in the DNA Center event subscription API.

B"subscriptionEndpoints": [Correct

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.

C"subscribeDnac": [

"subscribeDnac" is not a recognized or valid key for configuring event subscription endpoints in the Cisco Catalyst Center API.

D"subscriptionWhbook": [

"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

#Cisco DNA Center#API Subscription#REST API#Webhooks

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice