After comparing a POST request to /telegrafs sent from the UI to the definitions in openapi
(components/schemas/TelegrafPluginRequest) there appears to be a number of differences.
There are five top level properties name, description, agent, orgID, plugins.
The document components/schemas/TelegrafPluginRequest.yml also includes fields for metadata and config, however it makes no mention of an agent field. Also during blackbox testing, when sending a request body with a combination {name, description, orgID, config} the server returns HTTP 500.
The fields metadata and config do show up as part of the response, however the response config field seems to ignore the config field sent in the request. I see the word "legacy" in the comments of the yaml document, So, the question arises: are these schema definitions up-to-date?
After comparing a POST request to
/telegrafs
sent from the UI to the definitions in openapi (components/schemas/TelegrafPluginRequest) there appears to be a number of differences.The UI request body looks like this.
There are five top level properties
name
,description
,agent
,orgID
,plugins
.The document components/schemas/TelegrafPluginRequest.yml also includes fields for
metadata
andconfig
, however it makes no mention of anagent
field. Also during blackbox testing, when sending a request body with a combination{name, description, orgID, config}
the server returns HTTP 500.The fields
metadata
andconfig
do show up as part of the response, however the responseconfig
field seems to ignore theconfig
field sent in the request. I see the word "legacy" in the comments of the yaml document, So, the question arises: are these schema definitions up-to-date?Related Issue
610