1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. HubExtensionActiveVersion
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
dynatrace logo
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse

    This resource requires the API token scopes extensions.write, extensionEnvironment.write, extension.read and extensionEnvironment.read.

    Using this resource you can determine which version of a specified Extension should currently be active within your environment. In case the extension has not yet gotten installed for the specified version the installation happens automatically.

    The name attribute needs to refer to the fully qualified name of the extension. For a list of eligible names you can utilize the data source dynatrace.getHubItems like in this example:

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    const extension_20_items = dynatrace.getHubItems({
        type: "EXTENSION2",
    });
    
    import pulumi
    import pulumi_dynatrace as dynatrace
    
    extension_20_items = dynatrace.get_hub_items(type="EXTENSION2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dynatrace.GetHubItems(ctx, &dynatrace.GetHubItemsArgs{
    			Type: pulumi.StringRef("EXTENSION2"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var extension_20_items = Dynatrace.GetHubItems.Invoke(new()
        {
            Type = "EXTENSION2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.DynatraceFunctions;
    import com.pulumi.dynatrace.inputs.GetHubItemsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var extension-20-items = DynatraceFunctions.getHubItems(GetHubItemsArgs.builder()
                .type("EXTENSION2")
                .build());
    
        }
    }
    
    variables:
      extension-20-items:
        fn::invoke:
          function: dynatrace:getHubItems
          arguments:
            type: EXTENSION2
    
    pulumi {
      required_providers {
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    data "dynatrace_gethubitems" "extension-20-items" {
      type = "EXTENSION2"
    }
    

    Deleting resources of type dynatrace.HubExtensionActiveVersion has no real effect on your Dynatrace Environment. Terraform will just stop managing the active version of that extension.

    For installing Monitoring Configurations for a specific Extension you can use the resource dynatrace.HubExtensionConfig.

    Dynatrace Documentation

    • Extensions API - https://docs.dynatrace.com/docs/dynatrace-api/environment-api/extensions-20

    Export Example Usage

    • terraform-provider-dynatrace -export dynatrace.HubExtensionActiveVersion downloads a resource for the currently active version of every installed extension.

    The full documentation of the export feature is available here.

    Resource Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    const jmx_weblogic_cp = new dynatrace.HubExtensionActiveVersion("jmx-weblogic-cp", {
        name: "com.dynatrace.extension.jmx-weblogic-cp",
        version: "2.1.1",
    });
    
    import pulumi
    import pulumiverse_dynatrace as dynatrace
    
    jmx_weblogic_cp = dynatrace.HubExtensionActiveVersion("jmx-weblogic-cp",
        name="com.dynatrace.extension.jmx-weblogic-cp",
        version="2.1.1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dynatrace.NewHubExtensionActiveVersion(ctx, "jmx-weblogic-cp", &dynatrace.HubExtensionActiveVersionArgs{
    			Name:    pulumi.String("com.dynatrace.extension.jmx-weblogic-cp"),
    			Version: pulumi.String("2.1.1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var jmx_weblogic_cp = new Dynatrace.HubExtensionActiveVersion("jmx-weblogic-cp", new()
        {
            Name = "com.dynatrace.extension.jmx-weblogic-cp",
            Version = "2.1.1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.HubExtensionActiveVersion;
    import com.pulumi.dynatrace.HubExtensionActiveVersionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var jmx_weblogic_cp = new HubExtensionActiveVersion("jmx-weblogic-cp", HubExtensionActiveVersionArgs.builder()
                .name("com.dynatrace.extension.jmx-weblogic-cp")
                .version("2.1.1")
                .build());
    
        }
    }
    
    resources:
      jmx-weblogic-cp:
        type: dynatrace:HubExtensionActiveVersion
        properties:
          name: com.dynatrace.extension.jmx-weblogic-cp
          version: 2.1.1
    
    pulumi {
      required_providers {
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    resource "dynatrace_hubextensionactiveversion" "jmx-weblogic-cp" {
      name    = "com.dynatrace.extension.jmx-weblogic-cp"
      version = "2.1.1"
    }
    

    Create HubExtensionActiveVersion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new HubExtensionActiveVersion(name: string, args: HubExtensionActiveVersionArgs, opts?: CustomResourceOptions);
    @overload
    def HubExtensionActiveVersion(resource_name: str,
                                  args: HubExtensionActiveVersionArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def HubExtensionActiveVersion(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  version: Optional[str] = None,
                                  name: Optional[str] = None)
    func NewHubExtensionActiveVersion(ctx *Context, name string, args HubExtensionActiveVersionArgs, opts ...ResourceOption) (*HubExtensionActiveVersion, error)
    public HubExtensionActiveVersion(string name, HubExtensionActiveVersionArgs args, CustomResourceOptions? opts = null)
    public HubExtensionActiveVersion(String name, HubExtensionActiveVersionArgs args)
    public HubExtensionActiveVersion(String name, HubExtensionActiveVersionArgs args, CustomResourceOptions options)
    
    type: dynatrace:HubExtensionActiveVersion
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_hubextensionactiveversion" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args HubExtensionActiveVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HubExtensionActiveVersionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HubExtensionActiveVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HubExtensionActiveVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HubExtensionActiveVersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var hubExtensionActiveVersionResource = new Dynatrace.HubExtensionActiveVersion("hubExtensionActiveVersionResource", new()
    {
        Version = "string",
        Name = "string",
    });
    
    example, err := dynatrace.NewHubExtensionActiveVersion(ctx, "hubExtensionActiveVersionResource", &dynatrace.HubExtensionActiveVersionArgs{
    	Version: pulumi.String("string"),
    	Name:    pulumi.String("string"),
    })
    
    resource "dynatrace_hubextensionactiveversion" "hubExtensionActiveVersionResource" {
      version = "string"
      name    = "string"
    }
    
    var hubExtensionActiveVersionResource = new HubExtensionActiveVersion("hubExtensionActiveVersionResource", HubExtensionActiveVersionArgs.builder()
        .version("string")
        .name("string")
        .build());
    
    hub_extension_active_version_resource = dynatrace.HubExtensionActiveVersion("hubExtensionActiveVersionResource",
        version="string",
        name="string")
    
    const hubExtensionActiveVersionResource = new dynatrace.HubExtensionActiveVersion("hubExtensionActiveVersionResource", {
        version: "string",
        name: "string",
    });
    
    type: dynatrace:HubExtensionActiveVersion
    properties:
        name: string
        version: string
    

    HubExtensionActiveVersion Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The HubExtensionActiveVersion resource accepts the following input properties:

    Version string
    The version that should be active
    Name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    Version string
    The version that should be active
    Name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version string
    The version that should be active
    name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version String
    The version that should be active
    name String
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version string
    The version that should be active
    name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version str
    The version that should be active
    name str
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version String
    The version that should be active
    name String
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HubExtensionActiveVersion resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing HubExtensionActiveVersion Resource

    Get an existing HubExtensionActiveVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: HubExtensionActiveVersionState, opts?: CustomResourceOptions): HubExtensionActiveVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            version: Optional[str] = None) -> HubExtensionActiveVersion
    func GetHubExtensionActiveVersion(ctx *Context, name string, id IDInput, state *HubExtensionActiveVersionState, opts ...ResourceOption) (*HubExtensionActiveVersion, error)
    public static HubExtensionActiveVersion Get(string name, Input<string> id, HubExtensionActiveVersionState? state, CustomResourceOptions? opts = null)
    public static HubExtensionActiveVersion get(String name, Output<String> id, HubExtensionActiveVersionState state, CustomResourceOptions options)
    resources:  _:    type: dynatrace:HubExtensionActiveVersion    get:      id: ${id}
    import {
      to = dynatrace_hubextensionactiveversion.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    Version string
    The version that should be active
    Name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    Version string
    The version that should be active
    name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version string
    The version that should be active
    name String
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version String
    The version that should be active
    name string
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version string
    The version that should be active
    name str
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version str
    The version that should be active
    name String
    The fully qualified name of the extension, such as com.dynatrace.extension.jmx-liberty-cp. You can query for these names using the data source dynatrace.getHubItems
    version String
    The version that should be active

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial