update template config

PUT https://{{dcnm}}/rest/config/templates/telemetry_config

Updates the configuration defined in an existing template within DCNM

Request Body

{"content"=>"##template properties \nname=telemetry_config;\ndescription = ;\ntags = ;\nuserDefined = true;\nsupportedPlatforms = All;\ntemplateType = POLICY;\ntemplateSubType = DEVICE;\ncontentType = TEMPLATE_CLI;\nimplements = implements;\ndependencies = ;\npublished = false;\n##\n##template variables\n @(DisplayName=\"Certificate Path\", Description=\"Location of certificate for telemetry export\")\nstring CRT_PATH;\n\n##\n##template content\nfeature telemetry\n\ntelemetry\n  certificate $$CRT_PATH$$ telegraf\n  destination-profile\n    use-vrf management\n  destination-group 1\n    ip address 10.195.225.176 port 57000 protocol gRPC encoding GPB\n  sensor-group 1\n    data-source DME\n    path sys/ch depth unbounded\n  sensor-group 2\n    data-source DME\n    path sys/intf depth unbounded\n  sensor-group 3\n    data-source DME\n    path sys/bgp depth unbounded\n  sensor-group 4\n    data-source DME\n    path sys/procsys/syscpusummary/syscpuhistory-last60seconds\n  sensor-group 5\n    data-source DME\n    path sys/procsys/sysmem/sysmemusage\n  sensor-group 6\n    data-source DME\n    path sys/bd depth unbounded\n  sensor-group 7\n    data-source DME\n    path sys/mac depth unbounded\n  sensor-group 8\n    data-source DME\n    path sys/evpn depth 4\n  sensor-group 9\n    data-source DME\n    path sys/urib depth unbounded query-condition rsp-foreign-subtree=ephemeral\n  sensor-group 10\n    data-source DME\n    path sys/u6rib depth unbounded query-condition rsp-foreign-subtree=ephemeral\n  sensor-group 11\n    data-source DME\n    path sys/bgp/inst/dom-default/af-[l2vpn-evpn] depth unbounded query-condition rsp-foreign-subtree=ephemeral\n  subscription 1\n    dst-grp 1\n    snsr-grp 1 sample-interval 10000\n  subscription 2\n    dst-grp 1\n    snsr-grp 2 sample-interval 10000\n  subscription 3\n    dst-grp 1\n    snsr-grp 3 sample-interval 30000\n  subscription 4\n    dst-grp 1\n    snsr-grp 4 sample-interval 15000\n  subscription 5\n    dst-grp 1\n    snsr-grp 5 sample-interval 15000\n  subscription 6\n    dst-grp 1\n    snsr-grp 6 sample-interval 0\n  subscription 7\n    dst-grp 1\n    snsr-grp 7 sample-interval 10000\n  subscription 8\n    dst-grp 1\n    snsr-grp 8 sample-interval 15000\n  subscription 9\n    dst-grp 1\n    snsr-grp 9 sample-interval 15000\n  subscription 10\n    dst-grp 1\n    snsr-grp 10 sample-interval 15000\n  subscription 11\n    dst-grp 1\n    snsr-grp 11 sample-interval 15000##"}

HEADERS

KeyDatatypeRequiredDescription
dcnm-tokenstring
Content-Typestring