Viewing docs for Databricks v1.118.1
published on Tuesday, Oct 27, 2026 by Pulumi
published on Tuesday, Oct 27, 2026 by Pulumi
Viewing docs for Databricks v1.118.1
published on Tuesday, Oct 27, 2026 by Pulumi
published on Tuesday, Oct 27, 2026 by Pulumi
This data source can be used to get a single account federation policy.
Note This data source can only be used with an account-level provider!
Example Usage
Referring to an account federation policy by id:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const myPolicy = databricks.getAccountFederationPolicy({
policyId: "my-policy",
oidcPolicy: {
issuer: "https://myidp.example.com",
subjectClaim: "sub",
},
});
import pulumi
import pulumi_databricks as databricks
my_policy = databricks.get_account_federation_policy(policy_id="my-policy",
oidc_policy={
"issuer": "https://myidp.example.com",
"subjectClaim": "sub",
})
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.GetAccountFederationPolicy(ctx, &databricks.LookupAccountFederationPolicyArgs{
PolicyId: "my-policy",
OidcPolicy: map[string]string{
"issuer": "https://myidp.example.com",
"subjectClaim": "sub",
},
}, 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 myPolicy = Databricks.GetAccountFederationPolicy.Invoke(new()
{
PolicyId = "my-policy",
OidcPolicy =
{
{ "issuer", "https://myidp.example.com" },
{ "subjectClaim", "sub" },
},
});
});
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.GetAccountFederationPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 myPolicy = DatabricksFunctions.getAccountFederationPolicy(GetAccountFederationPolicyArgs.builder()
.policyId("my-policy")
.oidcPolicy(Map.ofEntries(
Map.entry("issuer", "https://myidp.example.com"),
Map.entry("subjectClaim", "sub")
))
.build());
}
}
variables:
myPolicy:
fn::invoke:
function: databricks:getAccountFederationPolicy
arguments:
policyId: my-policy
oidcPolicy:
issuer: https://myidp.example.com
subjectClaim: sub
terraform {
required_providers {
databricks = {
source = "pulumi/databricks"
}
}
}
data "databricks_account_federation_policy" "myPolicy" {
policy_id = "my-policy"
oidc_policy = {
"issuer" = "https://myidp.example.com"
"subjectClaim" = "sub"
}
}
Using getAccountFederationPolicy
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 getAccountFederationPolicy(args: GetAccountFederationPolicyArgs, opts?: InvokeOptions): Promise<GetAccountFederationPolicyResult>
function getAccountFederationPolicyOutput(args: GetAccountFederationPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetAccountFederationPolicyResult>def get_account_federation_policy(policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountFederationPolicyResult
def get_account_federation_policy_output(policy_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAccountFederationPolicyResult]func LookupAccountFederationPolicy(ctx *Context, args *LookupAccountFederationPolicyArgs, opts ...InvokeOption) (*LookupAccountFederationPolicyResult, error)
func LookupAccountFederationPolicyOutput(ctx *Context, args *LookupAccountFederationPolicyOutputArgs, opts ...InvokeOption) LookupAccountFederationPolicyResultOutput> Note: This function is named LookupAccountFederationPolicy in the Go SDK.
public static class GetAccountFederationPolicy
{
public static Task<GetAccountFederationPolicyResult> InvokeAsync(GetAccountFederationPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetAccountFederationPolicyResult> Invoke(GetAccountFederationPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAccountFederationPolicyResult> Invoke(GetAccountFederationPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAccountFederationPolicyResult> getAccountFederationPolicy(GetAccountFederationPolicyArgs args, InvokeOptions options)
public static Output<GetAccountFederationPolicyResult> getAccountFederationPolicy(GetAccountFederationPolicyArgs args, InvokeOptions options)
public static Output<GetAccountFederationPolicyResult> getAccountFederationPolicy(GetAccountFederationPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: databricks:index/getAccountFederationPolicy:getAccountFederationPolicy
arguments:
# arguments dictionarydata "databricks_get_account_federation_policy" "name" {
# arguments
}The following arguments are supported:
- Policy
Id string - The ID of the federation policy. Output only
- Policy
Id string - The ID of the federation policy. Output only
- policy_
id string - The ID of the federation policy. Output only
- policy
Id String - The ID of the federation policy. Output only
- policy
Id string - The ID of the federation policy. Output only
- policy_
id str - The ID of the federation policy. Output only
- policy
Id String - The ID of the federation policy. Output only
getAccountFederationPolicy Result
The following output properties are available:
- Create
Time string - (string) - Creation time of the federation policy
- Description string
- (string) - Description of the federation policy
- Name string
- (string) - Resource name for the federation policy. Example values include
accounts/<account-id>/federationPolicies/my-federation-policyfor Account Federation Policies, andaccounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policyfor Service Principal Federation Policies. Typically an output parameter, which does not need to be specified in create or update requests. If specified in a request, must match the value in the request URL - Oidc
Policy GetAccount Federation Policy Oidc Policy - (OidcFederationPolicy) - auditMode INCLUDE is required on both this message field and its leaf fields so the OIDC policy configuration is captured in create/update audit logs (see go/auditlogs)
- Policy
Id string - (string) - The ID of the federation policy. Output only
- Service
Principal intId - (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
- Uid string
- (string) - Unique, immutable id of the federation policy
- Update
Time string - (string) - Last update time of the federation policy
- Create
Time string - (string) - Creation time of the federation policy
- Description string
- (string) - Description of the federation policy
- Name string
- (string) - Resource name for the federation policy. Example values include
accounts/<account-id>/federationPolicies/my-federation-policyfor Account Federation Policies, andaccounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policyfor Service Principal Federation Policies. Typically an output parameter, which does not need to be specified in create or update requests. If specified in a request, must match the value in the request URL - Oidc
Policy GetAccount Federation Policy Oidc Policy - (OidcFederationPolicy) - auditMode INCLUDE is required on both this message field and its leaf fields so the OIDC policy configuration is captured in create/update audit logs (see go/auditlogs)
- Policy
Id string - (string) - The ID of the federation policy. Output only
- Service
Principal intId - (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
- Uid string
- (string) - Unique, immutable id of the federation policy
- Update
Time string - (string) - Last update time of the federation policy
- create_
time string - (string) - Creation time of the federation policy
- description string
- (string) - Description of the federation policy
- name string
- (string) - Resource name for the federation policy. Example values include
accounts/<account-id>/federationPolicies/my-federation-policyfor Account Federation Policies, andaccounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policyfor Service Principal Federation Policies. Typically an output parameter, which does not need to be specified in create or update requests. If specified in a request, must match the value in the request URL - oidc_
policy object - (OidcFederationPolicy) - auditMode INCLUDE is required on both this message field and its leaf fields so the OIDC policy configuration is captured in create/update audit logs (see go/auditlogs)
- policy_
id string - (string) - The ID of the federation policy. Output only
- service_
principal_ numberid - (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
- uid string
- (string) - Unique, immutable id of the federation policy
- update_
time string - (string) - Last update time of the federation policy
- create
Time String - (string) - Creation time of the federation policy
- description String
- (string) - Description of the federation policy
- name String
- (string) - Resource name for the federation policy. Example values include
accounts/<account-id>/federationPolicies/my-federation-policyfor Account Federation Policies, andaccounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policyfor Service Principal Federation Policies. Typically an output parameter, which does not need to be specified in create or update requests. If specified in a request, must match the value in the request URL - oidc
Policy GetAccount Federation Policy Oidc Policy - (OidcFederationPolicy) - auditMode INCLUDE is required on both this message field and its leaf fields so the OIDC policy configuration is captured in create/update audit logs (see go/auditlogs)
- policy
Id String - (string) - The ID of the federation policy. Output only
- service
Principal IntegerId - (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
- uid String
- (string) - Unique, immutable id of the federation policy
- update
Time String - (string) - Last update time of the federation policy
- create
Time string - (string) - Creation time of the federation policy
- description string
- (string) - Description of the federation policy
- name string
- (string) - Resource name for the federation policy. Example values include
accounts/<account-id>/federationPolicies/my-federation-policyfor Account Federation Policies, andaccounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policyfor Service Principal Federation Policies. Typically an output parameter, which does not need to be specified in create or update requests. If specified in a request, must match the value in the request URL - oidc
Policy GetAccount Federation Policy Oidc Policy - (OidcFederationPolicy) - auditMode INCLUDE is required on both this message field and its leaf fields so the OIDC policy configuration is captured in create/update audit logs (see go/auditlogs)
- policy
Id string - (string) - The ID of the federation policy. Output only
- service
Principal numberId - (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
- uid string
- (string) - Unique, immutable id of the federation policy
- update
Time string - (string) - Last update time of the federation policy
- create_
time str - (string) - Creation time of the federation policy
- description str
- (string) - Description of the federation policy
- name str
- (string) - Resource name for the federation policy. Example values include
accounts/<account-id>/federationPolicies/my-federation-policyfor Account Federation Policies, andaccounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policyfor Service Principal Federation Policies. Typically an output parameter, which does not need to be specified in create or update requests. If specified in a request, must match the value in the request URL - oidc_
policy GetAccount Federation Policy Oidc Policy - (OidcFederationPolicy) - auditMode INCLUDE is required on both this message field and its leaf fields so the OIDC policy configuration is captured in create/update audit logs (see go/auditlogs)
- policy_
id str - (string) - The ID of the federation policy. Output only
- service_
principal_ intid - (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
- uid str
- (string) - Unique, immutable id of the federation policy
- update_
time str - (string) - Last update time of the federation policy
- create
Time String - (string) - Creation time of the federation policy
- description String
- (string) - Description of the federation policy
- name String
- (string) - Resource name for the federation policy. Example values include
accounts/<account-id>/federationPolicies/my-federation-policyfor Account Federation Policies, andaccounts/<account-id>/servicePrincipals/<service-principal-id>/federationPolicies/my-federation-policyfor Service Principal Federation Policies. Typically an output parameter, which does not need to be specified in create or update requests. If specified in a request, must match the value in the request URL - oidc
Policy Property Map - (OidcFederationPolicy) - auditMode INCLUDE is required on both this message field and its leaf fields so the OIDC policy configuration is captured in create/update audit logs (see go/auditlogs)
- policy
Id String - (string) - The ID of the federation policy. Output only
- service
Principal NumberId - (integer) - The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies
- uid String
- (string) - Unique, immutable id of the federation policy
- update
Time String - (string) - Last update time of the federation policy
Supporting Types
GetAccountFederationPolicyOidcPolicy
- Audiences List<string>
- (list of string) - The allowed token audiences, as specified in the 'aud' claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy, the token is considered a match. If audiences is unspecified, defaults to your Databricks account id
- Issuer string
- (string) - The required token issuer, as specified in the 'iss' claim of federated tokens
- Jwks
Json string - (string) - The public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- Jwks
Uri string - (string) - URL of the public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- Subject string
- (string) - The required token subject, as specified in the subject claim of federated tokens. Must be specified for service principal federation policies. Must not be specified for account federation policies
- Subject
Claim string - (string) - The claim that contains the subject of the token. If unspecified, the default value is 'sub'
- Audiences []string
- (list of string) - The allowed token audiences, as specified in the 'aud' claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy, the token is considered a match. If audiences is unspecified, defaults to your Databricks account id
- Issuer string
- (string) - The required token issuer, as specified in the 'iss' claim of federated tokens
- Jwks
Json string - (string) - The public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- Jwks
Uri string - (string) - URL of the public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- Subject string
- (string) - The required token subject, as specified in the subject claim of federated tokens. Must be specified for service principal federation policies. Must not be specified for account federation policies
- Subject
Claim string - (string) - The claim that contains the subject of the token. If unspecified, the default value is 'sub'
- audiences list(string)
- (list of string) - The allowed token audiences, as specified in the 'aud' claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy, the token is considered a match. If audiences is unspecified, defaults to your Databricks account id
- issuer string
- (string) - The required token issuer, as specified in the 'iss' claim of federated tokens
- jwks_
json string - (string) - The public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- jwks_
uri string - (string) - URL of the public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- subject string
- (string) - The required token subject, as specified in the subject claim of federated tokens. Must be specified for service principal federation policies. Must not be specified for account federation policies
- subject_
claim string - (string) - The claim that contains the subject of the token. If unspecified, the default value is 'sub'
- audiences List<String>
- (list of string) - The allowed token audiences, as specified in the 'aud' claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy, the token is considered a match. If audiences is unspecified, defaults to your Databricks account id
- issuer String
- (string) - The required token issuer, as specified in the 'iss' claim of federated tokens
- jwks
Json String - (string) - The public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- jwks
Uri String - (string) - URL of the public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- subject String
- (string) - The required token subject, as specified in the subject claim of federated tokens. Must be specified for service principal federation policies. Must not be specified for account federation policies
- subject
Claim String - (string) - The claim that contains the subject of the token. If unspecified, the default value is 'sub'
- audiences string[]
- (list of string) - The allowed token audiences, as specified in the 'aud' claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy, the token is considered a match. If audiences is unspecified, defaults to your Databricks account id
- issuer string
- (string) - The required token issuer, as specified in the 'iss' claim of federated tokens
- jwks
Json string - (string) - The public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- jwks
Uri string - (string) - URL of the public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- subject string
- (string) - The required token subject, as specified in the subject claim of federated tokens. Must be specified for service principal federation policies. Must not be specified for account federation policies
- subject
Claim string - (string) - The claim that contains the subject of the token. If unspecified, the default value is 'sub'
- audiences Sequence[str]
- (list of string) - The allowed token audiences, as specified in the 'aud' claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy, the token is considered a match. If audiences is unspecified, defaults to your Databricks account id
- issuer str
- (string) - The required token issuer, as specified in the 'iss' claim of federated tokens
- jwks_
json str - (string) - The public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- jwks_
uri str - (string) - URL of the public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- subject str
- (string) - The required token subject, as specified in the subject claim of federated tokens. Must be specified for service principal federation policies. Must not be specified for account federation policies
- subject_
claim str - (string) - The claim that contains the subject of the token. If unspecified, the default value is 'sub'
- audiences List<String>
- (list of string) - The allowed token audiences, as specified in the 'aud' claim of federated tokens. The audience identifier is intended to represent the recipient of the token. Can be any non-empty string value. As long as the audience in the token matches at least one audience in the policy, the token is considered a match. If audiences is unspecified, defaults to your Databricks account id
- issuer String
- (string) - The required token issuer, as specified in the 'iss' claim of federated tokens
- jwks
Json String - (string) - The public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- jwks
Uri String - (string) - URL of the public keys used to validate the signature of federated tokens, in JWKS format. Most use cases should not need to specify this field. If jwksUri and jwksJson are both unspecified (recommended), Databricks automatically fetches the public keys from your issuer’s well known endpoint. Databricks strongly recommends relying on your issuer’s well known endpoint for discovering public keys
- subject String
- (string) - The required token subject, as specified in the subject claim of federated tokens. Must be specified for service principal federation policies. Must not be specified for account federation policies
- subject
Claim String - (string) - The claim that contains the subject of the token. If unspecified, the default value is 'sub'
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
Viewing docs for Databricks v1.118.1
published on Tuesday, Oct 27, 2026 by Pulumi
published on Tuesday, Oct 27, 2026 by Pulumi