API - consume data through exportersThis endpoint allows requesting data for a given config data set name. By using the parameter "forIncoming=true" this method returns the content of the pending data for the given config data set name. The user must have the VIEW permissions on the config data set name in order to retrieve its content. Note that there is a wizard in the UI that creates the commands for consuming the data automatically. See: KB0853663 - API method - for exporters and templates. Endpoint method POST URI /api/v1/tenant/metadata-parser/parse Headers ! Authorization Bearer <userToken or APIkey> Parameters ! mds myMdsName the exact name of the config data set for which a snapshot should be taken ! parser returnDatafromNode the exact name of the parser to be used to filter/define the response content and syntax ! format json | yaml | props | xml | csv | raw any of the supported output formats. Not all formats are available for all responses. For XML there might be forbidden characters in the response, and csv requires an exporter which prepares the data for csv format. Raw basically returns the response a plain text object args node1,nodeA any arguments to be provided for the parser to work. use a comma (,) to seperate the various argument values. (obsolete as of 3.12 - use the arg object moving forward) arg ["node1"] any arguments to be provided for the parser to work. Use either a JSON, YAML or XML syntax which allows for proper parsing of its content. This example arg value is easy to use in the parser logic as it can be stored in a regular variable using the myVar=JSON.parse(arg); returning an array of values provided. But the arg value can also be a multi level nested JSON/YAML/XML object. When uploading through the API ensure that the arg value is properly url-encoded. validationLevel ALL | VALID | WARNING will return the latest snapshot for the given validationLevel. Default behavior is ALL meaning that the most recent created snapshot will be returned even if the validation status is ERROR. tag releaseX.Y.Z will respond with the content of the snapshot that has this specific tag assigned. In this case, the validationLevel is not taken into account. Response The response is an object in the format as provided. In case of insufficient permissions, the response object will contain a {"AccessDeniedException"} message Example cURL curl -X POST 'https://demo.sweagle.com/api/v1/tenant/metadata-parser/parse' -H "Authorization: bearer Xeb940d3-ea37-4766-bb6c-f0b83deafb6f" -d 'mds=myMdsName&parser=returnDatafromNode&arg=%5B%22node1%22%5D&format=JSON'