1. Packages
  2. Databricks Provider
  3. API Docs
  4. getWorkspaceEntityTagAssignments
Databricks v1.87.0 published on Friday, Feb 20, 2026 by Pulumi
databricks logo
Databricks v1.87.0 published on Friday, Feb 20, 2026 by Pulumi

    Public Beta

    This data source allows you to retrieve tag assignments that have been applied to a particular workspace scoped entity.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const appTags = databricks.getWorkspaceEntityTagAssignments({
        entityType: "apps",
        entityId: "2807324866692453",
    });
    const dashboardTags = databricks.getWorkspaceEntityTagAssignments({
        entityType: "dashboards",
        entityId: "2807324866692453",
    });
    const geniespaceTags = databricks.getWorkspaceEntityTagAssignments({
        entityType: "geniespaces",
        entityId: "2807324866692453",
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    app_tags = databricks.get_workspace_entity_tag_assignments(entity_type="apps",
        entity_id="2807324866692453")
    dashboard_tags = databricks.get_workspace_entity_tag_assignments(entity_type="dashboards",
        entity_id="2807324866692453")
    geniespace_tags = databricks.get_workspace_entity_tag_assignments(entity_type="geniespaces",
        entity_id="2807324866692453")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.GetWorkspaceEntityTagAssignments(ctx, &databricks.GetWorkspaceEntityTagAssignmentsArgs{
    			EntityType: "apps",
    			EntityId:   "2807324866692453",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = databricks.GetWorkspaceEntityTagAssignments(ctx, &databricks.GetWorkspaceEntityTagAssignmentsArgs{
    			EntityType: "dashboards",
    			EntityId:   "2807324866692453",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = databricks.GetWorkspaceEntityTagAssignments(ctx, &databricks.GetWorkspaceEntityTagAssignmentsArgs{
    			EntityType: "geniespaces",
    			EntityId:   "2807324866692453",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var appTags = Databricks.GetWorkspaceEntityTagAssignments.Invoke(new()
        {
            EntityType = "apps",
            EntityId = "2807324866692453",
        });
    
        var dashboardTags = Databricks.GetWorkspaceEntityTagAssignments.Invoke(new()
        {
            EntityType = "dashboards",
            EntityId = "2807324866692453",
        });
    
        var geniespaceTags = Databricks.GetWorkspaceEntityTagAssignments.Invoke(new()
        {
            EntityType = "geniespaces",
            EntityId = "2807324866692453",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.DatabricksFunctions;
    import com.pulumi.databricks.inputs.GetWorkspaceEntityTagAssignmentsArgs;
    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 appTags = DatabricksFunctions.getWorkspaceEntityTagAssignments(GetWorkspaceEntityTagAssignmentsArgs.builder()
                .entityType("apps")
                .entityId("2807324866692453")
                .build());
    
            final var dashboardTags = DatabricksFunctions.getWorkspaceEntityTagAssignments(GetWorkspaceEntityTagAssignmentsArgs.builder()
                .entityType("dashboards")
                .entityId("2807324866692453")
                .build());
    
            final var geniespaceTags = DatabricksFunctions.getWorkspaceEntityTagAssignments(GetWorkspaceEntityTagAssignmentsArgs.builder()
                .entityType("geniespaces")
                .entityId("2807324866692453")
                .build());
    
        }
    }
    
    variables:
      appTags:
        fn::invoke:
          function: databricks:getWorkspaceEntityTagAssignments
          arguments:
            entityType: apps
            entityId: '2807324866692453'
      dashboardTags:
        fn::invoke:
          function: databricks:getWorkspaceEntityTagAssignments
          arguments:
            entityType: dashboards
            entityId: '2807324866692453'
      geniespaceTags:
        fn::invoke:
          function: databricks:getWorkspaceEntityTagAssignments
          arguments:
            entityType: geniespaces
            entityId: '2807324866692453'
    

    Using getWorkspaceEntityTagAssignments

    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 getWorkspaceEntityTagAssignments(args: GetWorkspaceEntityTagAssignmentsArgs, opts?: InvokeOptions): Promise<GetWorkspaceEntityTagAssignmentsResult>
    function getWorkspaceEntityTagAssignmentsOutput(args: GetWorkspaceEntityTagAssignmentsOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceEntityTagAssignmentsResult>
    def get_workspace_entity_tag_assignments(entity_id: Optional[str] = None,
                                             entity_type: Optional[str] = None,
                                             page_size: Optional[int] = None,
                                             provider_config: Optional[GetWorkspaceEntityTagAssignmentsProviderConfig] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetWorkspaceEntityTagAssignmentsResult
    def get_workspace_entity_tag_assignments_output(entity_id: Optional[pulumi.Input[str]] = None,
                                             entity_type: Optional[pulumi.Input[str]] = None,
                                             page_size: Optional[pulumi.Input[int]] = None,
                                             provider_config: Optional[pulumi.Input[GetWorkspaceEntityTagAssignmentsProviderConfigArgs]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceEntityTagAssignmentsResult]
    func GetWorkspaceEntityTagAssignments(ctx *Context, args *GetWorkspaceEntityTagAssignmentsArgs, opts ...InvokeOption) (*GetWorkspaceEntityTagAssignmentsResult, error)
    func GetWorkspaceEntityTagAssignmentsOutput(ctx *Context, args *GetWorkspaceEntityTagAssignmentsOutputArgs, opts ...InvokeOption) GetWorkspaceEntityTagAssignmentsResultOutput

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

    public static class GetWorkspaceEntityTagAssignments 
    {
        public static Task<GetWorkspaceEntityTagAssignmentsResult> InvokeAsync(GetWorkspaceEntityTagAssignmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceEntityTagAssignmentsResult> Invoke(GetWorkspaceEntityTagAssignmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkspaceEntityTagAssignmentsResult> getWorkspaceEntityTagAssignments(GetWorkspaceEntityTagAssignmentsArgs args, InvokeOptions options)
    public static Output<GetWorkspaceEntityTagAssignmentsResult> getWorkspaceEntityTagAssignments(GetWorkspaceEntityTagAssignmentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: databricks:index/getWorkspaceEntityTagAssignments:getWorkspaceEntityTagAssignments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EntityId string
    The identifier of the entity to which the tag is assigned
    EntityType string
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    PageSize int
    Optional. Maximum number of tag assignments to return in a single page
    ProviderConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    Configure the provider for management through account provider.
    EntityId string
    The identifier of the entity to which the tag is assigned
    EntityType string
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    PageSize int
    Optional. Maximum number of tag assignments to return in a single page
    ProviderConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    Configure the provider for management through account provider.
    entityId String
    The identifier of the entity to which the tag is assigned
    entityType String
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    pageSize Integer
    Optional. Maximum number of tag assignments to return in a single page
    providerConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    Configure the provider for management through account provider.
    entityId string
    The identifier of the entity to which the tag is assigned
    entityType string
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    pageSize number
    Optional. Maximum number of tag assignments to return in a single page
    providerConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    Configure the provider for management through account provider.
    entity_id str
    The identifier of the entity to which the tag is assigned
    entity_type str
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    page_size int
    Optional. Maximum number of tag assignments to return in a single page
    provider_config GetWorkspaceEntityTagAssignmentsProviderConfig
    Configure the provider for management through account provider.
    entityId String
    The identifier of the entity to which the tag is assigned
    entityType String
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    pageSize Number
    Optional. Maximum number of tag assignments to return in a single page
    providerConfig Property Map
    Configure the provider for management through account provider.

    getWorkspaceEntityTagAssignments Result

    The following output properties are available:

    EntityId string
    (string) - The identifier of the entity to which the tag is assigned
    EntityType string
    (string) - The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    Id string
    The provider-assigned unique ID for this managed resource.
    TagAssignments List<GetWorkspaceEntityTagAssignmentsTagAssignment>
    PageSize int
    ProviderConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    EntityId string
    (string) - The identifier of the entity to which the tag is assigned
    EntityType string
    (string) - The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    Id string
    The provider-assigned unique ID for this managed resource.
    TagAssignments []GetWorkspaceEntityTagAssignmentsTagAssignment
    PageSize int
    ProviderConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    entityId String
    (string) - The identifier of the entity to which the tag is assigned
    entityType String
    (string) - The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    id String
    The provider-assigned unique ID for this managed resource.
    tagAssignments List<GetWorkspaceEntityTagAssignmentsTagAssignment>
    pageSize Integer
    providerConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    entityId string
    (string) - The identifier of the entity to which the tag is assigned
    entityType string
    (string) - The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    id string
    The provider-assigned unique ID for this managed resource.
    tagAssignments GetWorkspaceEntityTagAssignmentsTagAssignment[]
    pageSize number
    providerConfig GetWorkspaceEntityTagAssignmentsProviderConfig
    entity_id str
    (string) - The identifier of the entity to which the tag is assigned
    entity_type str
    (string) - The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    id str
    The provider-assigned unique ID for this managed resource.
    tag_assignments Sequence[GetWorkspaceEntityTagAssignmentsTagAssignment]
    page_size int
    provider_config GetWorkspaceEntityTagAssignmentsProviderConfig
    entityId String
    (string) - The identifier of the entity to which the tag is assigned
    entityType String
    (string) - The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    id String
    The provider-assigned unique ID for this managed resource.
    tagAssignments List<Property Map>
    pageSize Number
    providerConfig Property Map

    Supporting Types

    GetWorkspaceEntityTagAssignmentsProviderConfig

    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspace_id str
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

    GetWorkspaceEntityTagAssignmentsTagAssignment

    EntityId string
    The identifier of the entity to which the tag is assigned
    EntityType string
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    TagKey string
    (string) - The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
    TagValue string
    (string) - The value of the tag
    ProviderConfig GetWorkspaceEntityTagAssignmentsTagAssignmentProviderConfig
    Configure the provider for management through account provider.
    EntityId string
    The identifier of the entity to which the tag is assigned
    EntityType string
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    TagKey string
    (string) - The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
    TagValue string
    (string) - The value of the tag
    ProviderConfig GetWorkspaceEntityTagAssignmentsTagAssignmentProviderConfig
    Configure the provider for management through account provider.
    entityId String
    The identifier of the entity to which the tag is assigned
    entityType String
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    tagKey String
    (string) - The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
    tagValue String
    (string) - The value of the tag
    providerConfig GetWorkspaceEntityTagAssignmentsTagAssignmentProviderConfig
    Configure the provider for management through account provider.
    entityId string
    The identifier of the entity to which the tag is assigned
    entityType string
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    tagKey string
    (string) - The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
    tagValue string
    (string) - The value of the tag
    providerConfig GetWorkspaceEntityTagAssignmentsTagAssignmentProviderConfig
    Configure the provider for management through account provider.
    entity_id str
    The identifier of the entity to which the tag is assigned
    entity_type str
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    tag_key str
    (string) - The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
    tag_value str
    (string) - The value of the tag
    provider_config GetWorkspaceEntityTagAssignmentsTagAssignmentProviderConfig
    Configure the provider for management through account provider.
    entityId String
    The identifier of the entity to which the tag is assigned
    entityType String
    The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces
    tagKey String
    (string) - The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed
    tagValue String
    (string) - The value of the tag
    providerConfig Property Map
    Configure the provider for management through account provider.

    GetWorkspaceEntityTagAssignmentsTagAssignmentProviderConfig

    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspace_id str
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.87.0 published on Friday, Feb 20, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate