Databricks v1.78.0 published on Friday, Nov 7, 2025 by Pulumi
databricks.getTagPolicies
Start a Neo task
Explain and create a databricks.getTagPolicies resource
This data source can be used to list all tag policies in the account.
Note This resource can only be used with a workspace-level provider!
Example Usage
Getting a list of all tag policies:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const all = databricks.getTagPolicies({});
export const allTagPolicies = all.then(all => all.tagPolicies);
import pulumi
import pulumi_databricks as databricks
all = databricks.get_tag_policies()
pulumi.export("allTagPolicies", all.tag_policies)
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 {
all, err := databricks.GetTagPolicies(ctx, &databricks.GetTagPoliciesArgs{}, nil)
if err != nil {
return err
}
ctx.Export("allTagPolicies", all.TagPolicies)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var all = Databricks.GetTagPolicies.Invoke();
return new Dictionary<string, object?>
{
["allTagPolicies"] = all.Apply(getTagPoliciesResult => getTagPoliciesResult.TagPolicies),
};
});
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.GetTagPoliciesArgs;
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 all = DatabricksFunctions.getTagPolicies(GetTagPoliciesArgs.builder()
.build());
ctx.export("allTagPolicies", all.tagPolicies());
}
}
variables:
all:
fn::invoke:
function: databricks:getTagPolicies
arguments: {}
outputs:
allTagPolicies: ${all.tagPolicies}
Using getTagPolicies
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 getTagPolicies(args: GetTagPoliciesArgs, opts?: InvokeOptions): Promise<GetTagPoliciesResult>
function getTagPoliciesOutput(args: GetTagPoliciesOutputArgs, opts?: InvokeOptions): Output<GetTagPoliciesResult>def get_tag_policies(page_size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetTagPoliciesResult
def get_tag_policies_output(page_size: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTagPoliciesResult]func GetTagPolicies(ctx *Context, args *GetTagPoliciesArgs, opts ...InvokeOption) (*GetTagPoliciesResult, error)
func GetTagPoliciesOutput(ctx *Context, args *GetTagPoliciesOutputArgs, opts ...InvokeOption) GetTagPoliciesResultOutput> Note: This function is named GetTagPolicies in the Go SDK.
public static class GetTagPolicies
{
public static Task<GetTagPoliciesResult> InvokeAsync(GetTagPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetTagPoliciesResult> Invoke(GetTagPoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTagPoliciesResult> getTagPolicies(GetTagPoliciesArgs args, InvokeOptions options)
public static Output<GetTagPoliciesResult> getTagPolicies(GetTagPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getTagPolicies:getTagPolicies
arguments:
# arguments dictionaryThe following arguments are supported:
- Page
Size int - The maximum number of results to return in this request. Fewer results may be returned than requested. If unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down to 1000
- Page
Size int - The maximum number of results to return in this request. Fewer results may be returned than requested. If unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down to 1000
- page
Size Integer - The maximum number of results to return in this request. Fewer results may be returned than requested. If unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down to 1000
- page
Size number - The maximum number of results to return in this request. Fewer results may be returned than requested. If unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down to 1000
- page_
size int - The maximum number of results to return in this request. Fewer results may be returned than requested. If unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down to 1000
- page
Size Number - The maximum number of results to return in this request. Fewer results may be returned than requested. If unspecified or set to 0, this defaults to 1000. The maximum value is 1000; values above 1000 will be coerced down to 1000
getTagPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Tag
Policies List<GetTag Policies Tag Policy> - Page
Size int
- Id string
- The provider-assigned unique ID for this managed resource.
- Tag
Policies []GetTag Policies Tag Policy - Page
Size int
- id String
- The provider-assigned unique ID for this managed resource.
- tag
Policies List<GetTag Policies Tag Policy> - page
Size Integer
- id string
- The provider-assigned unique ID for this managed resource.
- tag
Policies GetTag Policies Tag Policy[] - page
Size number
- id str
- The provider-assigned unique ID for this managed resource.
- tag_
policies Sequence[GetTag Policies Tag Policy] - page_
size int
- id String
- The provider-assigned unique ID for this managed resource.
- tag
Policies List<Property Map> - page
Size Number
Supporting Types
GetTagPoliciesTagPolicy
- Create
Time string - (string) - Timestamp when the tag policy was created
- Description string
- (string)
- Id string
- (string)
- Tag
Key string - (string)
- Update
Time string - (string) - Timestamp when the tag policy was last updated
- Values
List<Get
Tag Policies Tag Policy Value> - (list of Value)
- Create
Time string - (string) - Timestamp when the tag policy was created
- Description string
- (string)
- Id string
- (string)
- Tag
Key string - (string)
- Update
Time string - (string) - Timestamp when the tag policy was last updated
- Values
[]Get
Tag Policies Tag Policy Value - (list of Value)
- create
Time String - (string) - Timestamp when the tag policy was created
- description String
- (string)
- id String
- (string)
- tag
Key String - (string)
- update
Time String - (string) - Timestamp when the tag policy was last updated
- values
List<Get
Tag Policies Tag Policy Value> - (list of Value)
- create
Time string - (string) - Timestamp when the tag policy was created
- description string
- (string)
- id string
- (string)
- tag
Key string - (string)
- update
Time string - (string) - Timestamp when the tag policy was last updated
- values
Get
Tag Policies Tag Policy Value[] - (list of Value)
- create_
time str - (string) - Timestamp when the tag policy was created
- description str
- (string)
- id str
- (string)
- tag_
key str - (string)
- update_
time str - (string) - Timestamp when the tag policy was last updated
- values
Sequence[Get
Tag Policies Tag Policy Value] - (list of Value)
- create
Time String - (string) - Timestamp when the tag policy was created
- description String
- (string)
- id String
- (string)
- tag
Key String - (string)
- update
Time String - (string) - Timestamp when the tag policy was last updated
- values List<Property Map>
- (list of Value)
GetTagPoliciesTagPolicyValue
- Name string
- (string)
- Name string
- (string)
- name String
- (string)
- name string
- (string)
- name str
- (string)
- name String
- (string)
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
