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.
POST | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/hub/extensions2/{extensionName}/actions/addToEnvironment |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/hub/extensions2/{extensionName}/actions/addToEnvironment | |
Environment ActiveGate | https://{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.install
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
extensionName | string | Fully qualified name of the extension | path | required |
extensionVersion | string | Version of the extension. Fallback to the evaluated recommended version when the version is not provided | query | optional |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | Registered | OK |
400 | ErrorEnvelope | Bad request |
404 | ErrorEnvelope | Not found |
503 | ErrorEnvelope | Unavailable |
Response body objects
The RegisteredExtensionResultDto
object
Element | Type | Description |
---|---|---|
extensionName | string | FQN of the extension registered in the tenant. |
extensionVersion | string | Version number of the extension. |
Response body JSON model
{
"extensionName": "string",
"extensionVersion": "string"
}