Notifications

13 views

This endpoint allows generating a full resolved configuration file by sending a template name and a config data set name. All placeholders and javascript snippets will be replaced with the actual content in the current active snapshot for the provided config data set name. More info on configuring parser templates can be found in KB0854318 - Configuring configFile templates.

The user must have the VIEW permissions on the config data set name in order to retrieve its content. 

Endpoint

method
POST
URI
/api/v1/tenant/template-parser/replace?parser=<parserTemplateName>&amp;mds=<mdsName>

Headers

!
Authorization
Bearer <userToken or APIkey>

!
Content-Type
application/x-www-form-urlencoded

!
Accept
application/vnd.siren+json

Response

The response is a string that can be output to a file. 

In case of insufficient permissions, the response object will contain a {"AccessDeniedException"} message

Example cURL

curl -X POST -H "Authorization: bearer XX2d5adc-b31b-474d-a5f2-14cbdc559b1f" -H "Accept: application/vnd.siren+json" -H "Content-Type: application/x-www-form-urlencoded" 'https://demo.sweagle.com/api/v1/tenant/template-parser/replace?parser=myTemplateName&mds=myMdsName' --output myConfig.yaml

Article Information

Last Updated:2020-10-15 01:14:40
Published:2020-10-15