1. Packages
  2. Dynatrace
  3. API Docs
  4. getHubItems
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.getHubItems

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 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,
        };
    }
    
    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)
    
    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
    	})
    }
    
    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)),
        };
    });
    
    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());
        }
    }
    
    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}
    

    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>
    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]
    func GetHubItems(ctx *Context, args *GetHubItemsArgs, opts ...InvokeOption) (*GetHubItemsResult, error)
    func GetHubItemsOutput(ctx *Context, args *GetHubItemsOutputArgs, opts ...InvokeOption) GetHubItemsResultOutput

    > 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)
    }
    public static CompletableFuture<GetHubItemsResult> getHubItems(GetHubItemsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dynatrace:index/getHubItems:getHubItems
      arguments:
        # arguments dictionary

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