• Home
  • Dynatrace API
  • Environment
  • Hub items
  • POST an extension 2.0 to environment

Hub capabilities API - POST an extension 2.0 to environment

Registers an extension 2.0 in your environment. If no version is specified, the recommended version is used.

The request produces an application/json payload.

POSTManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/hub/extensions2/{extensionName}/actions/addToEnvironment
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/hub/extensions2/{extensionName}/actions/addToEnvironment
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/hub/extensions2/{extensionName}/actions/addToEnvironment

Authentication

To execute this request, you need an access token with hub.write scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
extensionNamestring

Fully qualified name of the extension

pathrequired
extensionVersionstring

Version of the extension. Fallback to the evaluated recommended version when the version is not provided

queryoptional

Response

Response codes

CodeTypeDescription
200RegisteredExtensionResultDto

OK

400ErrorEnvelope

Bad request

404ErrorEnvelope

Not found

503ErrorEnvelope

Unavailable

Response body objects

The RegisteredExtensionResultDto object

ElementTypeDescription
extensionVersionstring

Version number of the extension.

extensionNamestring

FQN of the extension registered in the tenant.

Response body JSON model

json
{ "extensionVersion": "string", "extensionName": "string" }