create template config
POST https://{{dcnm}}/rest/config/templates/template
Creates a configuration template within DCNM using the verified configuration data from the verification step
Request Body
{"templatename"=>"telemetry_config", "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\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 subscription 1\n dst-grp 1\n snsr-grp 1 sample-interval 10000\n##"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
dcnm-token | string | ||
Content-Type | string |