Databricks v1.75.0 published on Thursday, Sep 11, 2025 by Pulumi
databricks.getTagPolicy
Explore with Pulumi AI
This data source can be used to get a single tag policy by its tag key.
Note This resource can only be used with an account-level provider!
Using getTagPolicy
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 getTagPolicy(args: GetTagPolicyArgs, opts?: InvokeOptions): Promise<GetTagPolicyResult>
function getTagPolicyOutput(args: GetTagPolicyOutputArgs, opts?: InvokeOptions): Output<GetTagPolicyResult>
def get_tag_policy(description: Optional[str] = None,
tag_key: Optional[str] = None,
values: Optional[Sequence[GetTagPolicyValue]] = None,
workspace_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTagPolicyResult
def get_tag_policy_output(description: Optional[pulumi.Input[str]] = None,
tag_key: Optional[pulumi.Input[str]] = None,
values: Optional[pulumi.Input[Sequence[pulumi.Input[GetTagPolicyValueArgs]]]] = None,
workspace_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTagPolicyResult]
func LookupTagPolicy(ctx *Context, args *LookupTagPolicyArgs, opts ...InvokeOption) (*LookupTagPolicyResult, error)
func LookupTagPolicyOutput(ctx *Context, args *LookupTagPolicyOutputArgs, opts ...InvokeOption) LookupTagPolicyResultOutput
> Note: This function is named LookupTagPolicy
in the Go SDK.
public static class GetTagPolicy
{
public static Task<GetTagPolicyResult> InvokeAsync(GetTagPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetTagPolicyResult> Invoke(GetTagPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTagPolicyResult> getTagPolicy(GetTagPolicyArgs args, InvokeOptions options)
public static Output<GetTagPolicyResult> getTagPolicy(GetTagPolicyArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getTagPolicy:getTagPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Tag
Key string - Description string
- (string)
- Values
List<Get
Tag Policy Value> - (list of Value)
- Workspace
Id string - Workspace ID of the resource
- Tag
Key string - Description string
- (string)
- Values
[]Get
Tag Policy Value - (list of Value)
- Workspace
Id string - Workspace ID of the resource
- tag
Key String - description String
- (string)
- values
List<Get
Tag Policy Value> - (list of Value)
- workspace
Id String - Workspace ID of the resource
- tag
Key string - description string
- (string)
- values
Get
Tag Policy Value[] - (list of Value)
- workspace
Id string - Workspace ID of the resource
- tag_
key str - description str
- (string)
- values
Sequence[Get
Tag Policy Value] - (list of Value)
- workspace_
id str - Workspace ID of the resource
- tag
Key String - description String
- (string)
- values List<Property Map>
- (list of Value)
- workspace
Id String - Workspace ID of the resource
getTagPolicy Result
The following output properties are available:
- Id string
- (string)
- Tag
Key string - (string)
- Description string
- (string)
- Values
List<Get
Tag Policy Value> - (list of Value)
- Workspace
Id string
- Id string
- (string)
- Tag
Key string - (string)
- Description string
- (string)
- Values
[]Get
Tag Policy Value - (list of Value)
- Workspace
Id string
- id String
- (string)
- tag
Key String - (string)
- description String
- (string)
- values
List<Get
Tag Policy Value> - (list of Value)
- workspace
Id String
- id string
- (string)
- tag
Key string - (string)
- description string
- (string)
- values
Get
Tag Policy Value[] - (list of Value)
- workspace
Id string
- id str
- (string)
- tag_
key str - (string)
- description str
- (string)
- values
Sequence[Get
Tag Policy Value] - (list of Value)
- workspace_
id str
- id String
- (string)
- tag
Key String - (string)
- description String
- (string)
- values List<Property Map>
- (list of Value)
- workspace
Id String
Supporting Types
GetTagPolicyValue
- 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
databricks
Terraform Provider.