cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot get JMX Plugin from the API

andrewinwlg
Visitor

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!

2 REPLIES 2

Mike_L
Dynatrace Guru
Dynatrace Guru

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-...

Mike

andrewinwlg
Visitor

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:

andrewinwlg_0-1682028858044.png

 

Featured Posts