Plugins API - GET a plugin
Lists the properties of the specified plugin.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/plugins/{id} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/plugins/{id} | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/plugins/{id} |
Authentication
To execute this request, you need an access token with ReadConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the required plugin. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | Plugin | Success |
Response body objects
The Plugin
object
General configuration of a plugin.
Element | Type | Description |
---|---|---|
id | string | The ID of the plugin, for example |
metadata | ConfigurationMetadata | Metadata useful for debugging |
metricGroup | string | The metric group of the plugin. All the metrics, captured by the plugin are children of this group. |
name | string | The name of the plugin, displayed in Dynatrace. |
properties | PluginProperty[] | A list of plugin properties. |
type | string | The type of the plugin. It indicates the runtime environment of the plugin (for example, ActiveGate).
|
version | string | The version of the plugin, displayed in Dynatrace. |
The ConfigurationMetadata
object
Metadata useful for debugging
Element | Type | Description |
---|---|---|
clusterVersion | string | Dynatrace version. |
configurationVersions | integer[] | A sorted list of the version numbers of the configuration. |
currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. |
The PluginProperty
object
A property of a plugin.
Element | Type | Description |
---|---|---|
defaultValue | string | The default value of the property. |
dropdownValues | string[] | The list of possible values of the property. If such a list is defined, only values from this list can be assigned to the property. |
key | string | The key of the property. |
type | string | The type of the property. |
Response body JSON model
1{2 "id": "custom.remote.python.demo",3 "metricGroup": "custom.demo_metrics",4 "name": "ActiveGate demo plugin",5 "properties": [6 {7 "defaultValue": "127.0.0.1",8 "key": "serverIp",9 "type": "STRING"10 },11 {12 "defaultValue": "",13 "key": "password",14 "type": "PASSWORD"15 },16 {17 "defaultValue": "dynatrace",18 "key": "username",19 "type": "STRING"20 },21 {22 "defaultValue": "one",23 "dropdownValues": [24 "one",25 "two",26 "three"27 ],28 "key": "dropdownProperty",29 "type": "DROPDOWN"30 }31 ],32 "type": "ActiveGate",33 "version": "1.01"34}
Example
In this example, the request inquires for parameters of the SAP plugin, which has the ID of custom.remote.python.sap.
The API token is passed in the Authorization header.
Curl
1curl -X GET \2 https://mySampleEnv.live.dynatrace.com/api/config/v1/plugins/custom.remote.python.sap \3 -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/config/v1/plugins/custom.remote.python.sap
Response body
1{2 "metadata": {3 "configurationVersions": [4 05 ],6 "clusterVersion": "1.173.0.20190611-111714"7 },8 "id": "custom.remote.python.sap",9 "name": "SAP plugin",10 "type": "ActiveGate",11 "properties": [12 {13 "key": "password",14 "type": "PASSWORD",15 "defaultValue": ""16 },17 {18 "key": "instance",19 "type": "STRING",20 "defaultValue": ""21 },22 {23 "key": "serverIp",24 "type": "TEXTAREA",25 "defaultValue": ""26 },27 {28 "key": "clientno",29 "type": "STRING",30 "defaultValue": ""31 },32 {33 "key": "username",34 "type": "STRING",35 "defaultValue": ""36 }37 ]38}
Response code
200