Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
This data source requires the OAuth scope
extensions:definitions:read.
The dynatrace.getHubExtensionV2LatestVersion data source retrieves the latest 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 latestVersion = await dynatrace.getHubExtensionV2LatestVersion({
name: "com.dynatrace.extension.jmx-weblogic-cp",
});
return {
latestVersion: latestVersion.latestVersion,
};
}
import pulumi
import pulumi_dynatrace as dynatrace
latest_version = dynatrace.get_hub_extension_v2_latest_version(name="com.dynatrace.extension.jmx-weblogic-cp")
pulumi.export("latestVersion", latest_version.latest_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 {
latestVersion, err := dynatrace.GetHubExtensionV2LatestVersion(ctx, &dynatrace.GetHubExtensionV2LatestVersionArgs{
Name: "com.dynatrace.extension.jmx-weblogic-cp",
}, nil)
if err != nil {
return err
}
ctx.Export("latestVersion", latestVersion.LatestVersion)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.Dynatrace;
return await Deployment.RunAsync(() =>
{
var latestVersion = Dynatrace.GetHubExtensionV2LatestVersion.Invoke(new()
{
Name = "com.dynatrace.extension.jmx-weblogic-cp",
});
return new Dictionary<string, object?>
{
["latestVersion"] = latestVersion.Apply(getHubExtensionV2LatestVersionResult => getHubExtensionV2LatestVersionResult.LatestVersion),
};
});
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.GetHubExtensionV2LatestVersionArgs;
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 latestVersion = DynatraceFunctions.getHubExtensionV2LatestVersion(GetHubExtensionV2LatestVersionArgs.builder()
.name("com.dynatrace.extension.jmx-weblogic-cp")
.build());
ctx.export("latestVersion", latestVersion.latestVersion());
}
}
variables:
latestVersion:
fn::invoke:
function: dynatrace:getHubExtensionV2LatestVersion
arguments:
name: com.dynatrace.extension.jmx-weblogic-cp
outputs:
latestVersion: ${latestVersion.latestVersion}
pulumi {
required_providers {
dynatrace = {
source = "pulumi/dynatrace"
}
}
}
data "dynatrace_gethubextensionv2latestversion" "latestVersion" {
name = "com.dynatrace.extension.jmx-weblogic-cp"
}
output "latestVersion" {
value = data.dynatrace_gethubextensionv2latestversion.latestVersion.latest_version
}
Using getHubExtensionV2LatestVersion
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 getHubExtensionV2LatestVersion(args: GetHubExtensionV2LatestVersionArgs, opts?: InvokeOptions): Promise<GetHubExtensionV2LatestVersionResult>
function getHubExtensionV2LatestVersionOutput(args: GetHubExtensionV2LatestVersionOutputArgs, opts?: InvokeOptions): Output<GetHubExtensionV2LatestVersionResult>def get_hub_extension_v2_latest_version(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHubExtensionV2LatestVersionResult
def get_hub_extension_v2_latest_version_output(name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHubExtensionV2LatestVersionResult]func GetHubExtensionV2LatestVersion(ctx *Context, args *GetHubExtensionV2LatestVersionArgs, opts ...InvokeOption) (*GetHubExtensionV2LatestVersionResult, error)
func GetHubExtensionV2LatestVersionOutput(ctx *Context, args *GetHubExtensionV2LatestVersionOutputArgs, opts ...InvokeOption) GetHubExtensionV2LatestVersionResultOutput> Note: This function is named GetHubExtensionV2LatestVersion in the Go SDK.
public static class GetHubExtensionV2LatestVersion
{
public static Task<GetHubExtensionV2LatestVersionResult> InvokeAsync(GetHubExtensionV2LatestVersionArgs args, InvokeOptions? opts = null)
public static Output<GetHubExtensionV2LatestVersionResult> Invoke(GetHubExtensionV2LatestVersionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHubExtensionV2LatestVersionResult> getHubExtensionV2LatestVersion(GetHubExtensionV2LatestVersionArgs args, InvokeOptions options)
public static Output<GetHubExtensionV2LatestVersionResult> getHubExtensionV2LatestVersion(GetHubExtensionV2LatestVersionArgs args, InvokeOptions options)
fn::invoke:
function: dynatrace:index/getHubExtensionV2LatestVersion:getHubExtensionV2LatestVersion
arguments:
# arguments dictionarydata "dynatrace_gethubextensionv2latestversion" "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
getHubExtensionV2LatestVersion Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version string - The latest installed version of the extension
- Name string
- The name of the extension
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version string - The latest installed version of the extension
- Name string
- The name of the extension
- id string
- The provider-assigned unique ID for this managed resource.
- latest_
version string - The latest installed version of the extension
- name string
- The name of the extension
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version String - The latest installed version of the extension
- name String
- The name of the extension
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version string - The latest installed version of the extension
- name string
- The name of the extension
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version str - The latest installed version of the extension
- name str
- The name of the extension
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version String - The latest installed version of the extension
- 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
dynatraceTerraform Provider.
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse