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

    This data source requires the OAuth scope extensions:definitions:read.

    The dynatrace.getHubExtensionV2ActiveVersion data source retrieves the active installed version of an extension.

    Dynatrace Documentation

    • Extensions 2.0 - https://docs.dynatrace.com/docs/ingest-from/extensions

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    export = async () => {
        const activeVersion = await dynatrace.getHubExtensionV2ActiveVersion({
            name: "com.dynatrace.extension.jmx-weblogic-cp",
        });
        return {
            activeVersion: activeVersion.activeVersion,
        };
    }
    
    import pulumi
    import pulumi_dynatrace as dynatrace
    
    active_version = dynatrace.get_hub_extension_v2_active_version(name="com.dynatrace.extension.jmx-weblogic-cp")
    pulumi.export("activeVersion", active_version.active_version)
    
    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 {
    		activeVersion, err := dynatrace.GetHubExtensionV2ActiveVersion(ctx, &dynatrace.GetHubExtensionV2ActiveVersionArgs{
    			Name: "com.dynatrace.extension.jmx-weblogic-cp",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("activeVersion", activeVersion.ActiveVersion)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var activeVersion = Dynatrace.GetHubExtensionV2ActiveVersion.Invoke(new()
        {
            Name = "com.dynatrace.extension.jmx-weblogic-cp",
        });
    
        return new Dictionary<string, object?>
        {
            ["activeVersion"] = activeVersion.Apply(getHubExtensionV2ActiveVersionResult => getHubExtensionV2ActiveVersionResult.ActiveVersion),
        };
    });
    
    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.GetHubExtensionV2ActiveVersionArgs;
    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 activeVersion = DynatraceFunctions.getHubExtensionV2ActiveVersion(GetHubExtensionV2ActiveVersionArgs.builder()
                .name("com.dynatrace.extension.jmx-weblogic-cp")
                .build());
    
            ctx.export("activeVersion", activeVersion.activeVersion());
        }
    }
    
    variables:
      activeVersion:
        fn::invoke:
          function: dynatrace:getHubExtensionV2ActiveVersion
          arguments:
            name: com.dynatrace.extension.jmx-weblogic-cp
    outputs:
      activeVersion: ${activeVersion.activeVersion}
    
    pulumi {
      required_providers {
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    data "dynatrace_gethubextensionv2activeversion" "activeVersion" {
      name = "com.dynatrace.extension.jmx-weblogic-cp"
    }
    
    output "activeVersion" {
      value = data.dynatrace_gethubextensionv2activeversion.activeVersion.active_version
    }
    

    Using getHubExtensionV2ActiveVersion

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getHubExtensionV2ActiveVersion(args: GetHubExtensionV2ActiveVersionArgs, opts?: InvokeOptions): Promise<GetHubExtensionV2ActiveVersionResult>
    function getHubExtensionV2ActiveVersionOutput(args: GetHubExtensionV2ActiveVersionOutputArgs, opts?: InvokeOptions): Output<GetHubExtensionV2ActiveVersionResult>
    def get_hub_extension_v2_active_version(name: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetHubExtensionV2ActiveVersionResult
    def get_hub_extension_v2_active_version_output(name: pulumi.Input[Optional[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetHubExtensionV2ActiveVersionResult]
    func GetHubExtensionV2ActiveVersion(ctx *Context, args *GetHubExtensionV2ActiveVersionArgs, opts ...InvokeOption) (*GetHubExtensionV2ActiveVersionResult, error)
    func GetHubExtensionV2ActiveVersionOutput(ctx *Context, args *GetHubExtensionV2ActiveVersionOutputArgs, opts ...InvokeOption) GetHubExtensionV2ActiveVersionResultOutput

    > Note: This function is named GetHubExtensionV2ActiveVersion in the Go SDK.

    public static class GetHubExtensionV2ActiveVersion 
    {
        public static Task<GetHubExtensionV2ActiveVersionResult> InvokeAsync(GetHubExtensionV2ActiveVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetHubExtensionV2ActiveVersionResult> Invoke(GetHubExtensionV2ActiveVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHubExtensionV2ActiveVersionResult> getHubExtensionV2ActiveVersion(GetHubExtensionV2ActiveVersionArgs args, InvokeOptions options)
    public static Output<GetHubExtensionV2ActiveVersionResult> getHubExtensionV2ActiveVersion(GetHubExtensionV2ActiveVersionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dynatrace:index/getHubExtensionV2ActiveVersion:getHubExtensionV2ActiveVersion
      arguments:
        # arguments dictionary
    data "dynatrace_gethubextensionv2activeversion" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The name of the extension
    Name string
    The name of the extension
    name string
    The name of the extension
    name String
    The name of the extension
    name string
    The name of the extension
    name str
    The name of the extension
    name String
    The name of the extension

    getHubExtensionV2ActiveVersion Result

    The following output properties are available:

    ActiveVersion string
    The active version of the extension
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the extension
    ActiveVersion string
    The active version of the extension
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the extension
    active_version string
    The active version of the extension
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the extension
    activeVersion String
    The active version of the extension
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the extension
    activeVersion string
    The active version of the extension
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the extension
    active_version str
    The active version of the extension
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the extension
    activeVersion String
    The active version of the extension
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the extension

    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.37.0
    published on Tuesday, Jun 23, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial