1. Packages
  2. Dynatrace
  3. API Docs
  4. getHubItems
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.getHubItems

Explore with Pulumi AI

Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

This data source requires the API token scope hub.read)

  • type (String) The type of hub item you are interested in. Possible values are TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumi/dynatrace";

export = async () => {
    const extension_20_items = await dynatrace.getHubItems({
        type: "EXTENSION2",
    });
    return {
        "artifact-ids": extension_20_items.artifacts,
        "hub-items": extension_20_items.items,
    };
}
Copy
import pulumi
import pulumi_dynatrace as dynatrace

extension_20_items = dynatrace.get_hub_items(type="EXTENSION2")
pulumi.export("artifact-ids", extension_20_items.artifacts)
pulumi.export("hub-items", extension_20_items.items)
Copy
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 {
		extension_20_items, err := dynatrace.GetHubItems(ctx, &dynatrace.GetHubItemsArgs{
			Type: pulumi.StringRef("EXTENSION2"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("artifact-ids", extension_20_items.Artifacts)
		ctx.Export("hub-items", extension_20_items.Items)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumi.Dynatrace;

return await Deployment.RunAsync(() => 
{
    var extension_20_items = Dynatrace.GetHubItems.Invoke(new()
    {
        Type = "EXTENSION2",
    });

    return new Dictionary<string, object?>
    {
        ["artifact-ids"] = extension_20_items.Apply(extension_20_items => extension_20_items.Apply(getHubItemsResult => getHubItemsResult.Artifacts)),
        ["hub-items"] = extension_20_items.Apply(extension_20_items => extension_20_items.Apply(getHubItemsResult => getHubItemsResult.Items)),
    };
});
Copy
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.List;
import java.util.ArrayList;
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());

        ctx.export("artifact-ids", extension_20_items.artifacts());
        ctx.export("hub-items", extension_20_items.items());
    }
}
Copy
variables:
  extension-20-items:
    fn::invoke:
      function: dynatrace:getHubItems
      arguments:
        type: EXTENSION2
outputs:
  artifact-ids: ${["extension-20-items"].artifacts}
  hub-items: ${["extension-20-items"].items}
Copy

Using getHubItems

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 getHubItems(args: GetHubItemsArgs, opts?: InvokeOptions): Promise<GetHubItemsResult>
function getHubItemsOutput(args: GetHubItemsOutputArgs, opts?: InvokeOptions): Output<GetHubItemsResult>
Copy
def get_hub_items(type: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetHubItemsResult
def get_hub_items_output(type: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetHubItemsResult]
Copy
func GetHubItems(ctx *Context, args *GetHubItemsArgs, opts ...InvokeOption) (*GetHubItemsResult, error)
func GetHubItemsOutput(ctx *Context, args *GetHubItemsOutputArgs, opts ...InvokeOption) GetHubItemsResultOutput
Copy

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

public static class GetHubItems 
{
    public static Task<GetHubItemsResult> InvokeAsync(GetHubItemsArgs args, InvokeOptions? opts = null)
    public static Output<GetHubItemsResult> Invoke(GetHubItemsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetHubItemsResult> getHubItems(GetHubItemsArgs args, InvokeOptions options)
public static Output<GetHubItemsResult> getHubItems(GetHubItemsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: dynatrace:index/getHubItems:getHubItems
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Type string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
Type string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
type String
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
type string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
type str
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
type String
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens

getHubItems Result

The following output properties are available:

Artifacts Dictionary<string, string>
The fully qualified names of the items as a map
Id string
The provider-assigned unique ID for this managed resource.
Items List<Pulumiverse.Dynatrace.Outputs.GetHubItemsItem>
The items within this list
Type string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
Artifacts map[string]string
The fully qualified names of the items as a map
Id string
The provider-assigned unique ID for this managed resource.
Items []GetHubItemsItem
The items within this list
Type string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
artifacts Map<String,String>
The fully qualified names of the items as a map
id String
The provider-assigned unique ID for this managed resource.
items List<GetHubItemsItem>
The items within this list
type String
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
artifacts {[key: string]: string}
The fully qualified names of the items as a map
id string
The provider-assigned unique ID for this managed resource.
items GetHubItemsItem[]
The items within this list
type string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
artifacts Mapping[str, str]
The fully qualified names of the items as a map
id str
The provider-assigned unique ID for this managed resource.
items Sequence[GetHubItemsItem]
The items within this list
type str
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens
artifacts Map<String>
The fully qualified names of the items as a map
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
The items within this list
type String
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2. If not specified, no restriction regarding type happens

Supporting Types

GetHubItemsItem

ActivationLink This property is required. string
The activation link for a technology
ArtifactId This property is required. string
The unique ID used by the artifacts contained in releases
AuthorLogo This property is required. string
URL for the author's logo
AuthorName This property is required. string
Name of the author of the item
ClusterCompatible This property is required. bool
Checks if the item is compatible with the cluster version
ComingSoon This property is required. bool
Whether or not the item is planned to be released soon
Description This property is required. string
Description of the item
DocumentationLink This property is required. string
An absolute link to the documentation page of this item
HasDescriptionBlocks This property is required. bool
Whether or not the details call will contain description blocks
ItemId This property is required. string
Unique Id of the item
Logo This property is required. string
The logo of the item. Can be a URL or Base64 encoded. Intended for HTML tags
MarketingLink This property is required. string
An absolute link to the marketing page of this item
Name This property is required. string
Name of the item
NotCompatibleReason This property is required. string
The reason why the item is not compatible with the cluster version
Tags This property is required. List<string>
Grouping of items with keywords
Type This property is required. string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2
ActivationLink This property is required. string
The activation link for a technology
ArtifactId This property is required. string
The unique ID used by the artifacts contained in releases
AuthorLogo This property is required. string
URL for the author's logo
AuthorName This property is required. string
Name of the author of the item
ClusterCompatible This property is required. bool
Checks if the item is compatible with the cluster version
ComingSoon This property is required. bool
Whether or not the item is planned to be released soon
Description This property is required. string
Description of the item
DocumentationLink This property is required. string
An absolute link to the documentation page of this item
HasDescriptionBlocks This property is required. bool
Whether or not the details call will contain description blocks
ItemId This property is required. string
Unique Id of the item
Logo This property is required. string
The logo of the item. Can be a URL or Base64 encoded. Intended for HTML tags
MarketingLink This property is required. string
An absolute link to the marketing page of this item
Name This property is required. string
Name of the item
NotCompatibleReason This property is required. string
The reason why the item is not compatible with the cluster version
Tags This property is required. []string
Grouping of items with keywords
Type This property is required. string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2
activationLink This property is required. String
The activation link for a technology
artifactId This property is required. String
The unique ID used by the artifacts contained in releases
authorLogo This property is required. String
URL for the author's logo
authorName This property is required. String
Name of the author of the item
clusterCompatible This property is required. Boolean
Checks if the item is compatible with the cluster version
comingSoon This property is required. Boolean
Whether or not the item is planned to be released soon
description This property is required. String
Description of the item
documentationLink This property is required. String
An absolute link to the documentation page of this item
hasDescriptionBlocks This property is required. Boolean
Whether or not the details call will contain description blocks
itemId This property is required. String
Unique Id of the item
logo This property is required. String
The logo of the item. Can be a URL or Base64 encoded. Intended for HTML tags
marketingLink This property is required. String
An absolute link to the marketing page of this item
name This property is required. String
Name of the item
notCompatibleReason This property is required. String
The reason why the item is not compatible with the cluster version
tags This property is required. List<String>
Grouping of items with keywords
type This property is required. String
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2
activationLink This property is required. string
The activation link for a technology
artifactId This property is required. string
The unique ID used by the artifacts contained in releases
authorLogo This property is required. string
URL for the author's logo
authorName This property is required. string
Name of the author of the item
clusterCompatible This property is required. boolean
Checks if the item is compatible with the cluster version
comingSoon This property is required. boolean
Whether or not the item is planned to be released soon
description This property is required. string
Description of the item
documentationLink This property is required. string
An absolute link to the documentation page of this item
hasDescriptionBlocks This property is required. boolean
Whether or not the details call will contain description blocks
itemId This property is required. string
Unique Id of the item
logo This property is required. string
The logo of the item. Can be a URL or Base64 encoded. Intended for HTML tags
marketingLink This property is required. string
An absolute link to the marketing page of this item
name This property is required. string
Name of the item
notCompatibleReason This property is required. string
The reason why the item is not compatible with the cluster version
tags This property is required. string[]
Grouping of items with keywords
type This property is required. string
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2
activation_link This property is required. str
The activation link for a technology
artifact_id This property is required. str
The unique ID used by the artifacts contained in releases
author_logo This property is required. str
URL for the author's logo
author_name This property is required. str
Name of the author of the item
cluster_compatible This property is required. bool
Checks if the item is compatible with the cluster version
coming_soon This property is required. bool
Whether or not the item is planned to be released soon
description This property is required. str
Description of the item
documentation_link This property is required. str
An absolute link to the documentation page of this item
has_description_blocks This property is required. bool
Whether or not the details call will contain description blocks
item_id This property is required. str
Unique Id of the item
logo This property is required. str
The logo of the item. Can be a URL or Base64 encoded. Intended for HTML tags
marketing_link This property is required. str
An absolute link to the marketing page of this item
name This property is required. str
Name of the item
not_compatible_reason This property is required. str
The reason why the item is not compatible with the cluster version
tags This property is required. Sequence[str]
Grouping of items with keywords
type This property is required. str
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2
activationLink This property is required. String
The activation link for a technology
artifactId This property is required. String
The unique ID used by the artifacts contained in releases
authorLogo This property is required. String
URL for the author's logo
authorName This property is required. String
Name of the author of the item
clusterCompatible This property is required. Boolean
Checks if the item is compatible with the cluster version
comingSoon This property is required. Boolean
Whether or not the item is planned to be released soon
description This property is required. String
Description of the item
documentationLink This property is required. String
An absolute link to the documentation page of this item
hasDescriptionBlocks This property is required. Boolean
Whether or not the details call will contain description blocks
itemId This property is required. String
Unique Id of the item
logo This property is required. String
The logo of the item. Can be a URL or Base64 encoded. Intended for HTML tags
marketingLink This property is required. String
An absolute link to the marketing page of this item
name This property is required. String
Name of the item
notCompatibleReason This property is required. String
The reason why the item is not compatible with the cluster version
tags This property is required. List<String>
Grouping of items with keywords
type This property is required. String
Represents the type of item. It can be TECHNOLOGY, EXTENSION1 or EXTENSION2

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse