The following sample RPC creates a periodic subscription using RESTCONF: URI:https://10.85.116.28:443/restconf/data/Cisco-IOS-XE-mdt-cfg:mdt-config-data Headers: application/yang-data.collection+json, application/yang-data+json, application/yang-data.errors+json Content-Type: application/yang-data+json BODY: { "mdt-config-data": { "mdt-subscription":[ { "subscription-id": "102", "base": { "stream": "yang-push", "encoding": "encode-kvgpb", "period": "6000", "xpath": "/memory-ios-xe-oper:memory-statistics/memory-statistic" } "mdt-receivers": { "address": "10.22.23.48" "port":
"57555" } } ] } } On-Change Subscription The following sample RPC shows how to create an on-change subscription using NETCONF that sends updates only when there is a change in the target database: message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-mdt-cfg"> 200 yang-push encode-kvgpb false /cdp-ios-xe-oper:cdp-neighbor-details/cdp-neighbor-detail 10.22.23.48 57555 grpc-tcp Model-Driven Telemetry Creating Configured Subscriptions Model-Driven Telemetry 18