20 Apr 2023 06:31 AM - last edited on 20 Apr 2023 12:01 PM by MaciejNeumann
The GET API at least does not seem to support JMX, or in fact anything that's not an "ActiveGate":
curl -X GET https://{environmentid}.live.dynatrace.com/api/config/v1/plugins/custom.jmx.plugin-name -H 'Authorization: Api-Token REDACTED'
{"error":{"code":400,"message":"Available only for ActiveGate plugins."}}
And in fact when I try it without the name on the URL, it doesn't give back all the plugins/extensions, just the ActiveGate ones.
Are they supported from some other API or are there plans to open this up? Many thanks!
20 Apr 2023 12:15 PM - edited 20 Apr 2023 12:16 PM
Are you looking to download the JMX extension, or do you want to get the configurations of it?
Use the extensions endpoint for OneAgent extensions, such as this one to get the binary: https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/extensions-api/get-extension-...
20 Apr 2023 11:15 PM
Thanks, yes I want the whole extension so I can source-control the config. Do you know if extensions are also supported by the Terraform provider? It looks like the extensions are only supported by the v1 API, whereas the Terraform provider uses mostly the v2 API.
The list of resources at https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs#exporting-existing-confi... only has these listed: