Account Federation Policy
FederationPolicy object
- namestringOutput onlyImmutable
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.
- descriptionstring
Description of the federation policy.
- oidc_policyobject
Show child attributesHide child attributes
- issuerstring
The required token issuer, as specified in the 'iss' claim of federated tokens.
- subjectstring
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.
- audiencesarray 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.
- subject_claimstring
The claim that contains the subject of the token. If unspecified, the default value is 'sub'.
- jwks_uristring
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 jwks_uri and jwks_json 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_jsonstring
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 jwks_uri and jwks_json 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.
- create_timestringOutput onlyImmutable
Creation time of the federation policy.
- update_timestringOutput only
Last update time of the federation policy.
- uidstringOutput onlyImmutable
Unique, immutable id of the federation policy.
- service_principal_idint64Output onlyImmutable
The service principal ID that this federation policy applies to. Output only. Only set for service principal federation policies.
- policy_idstringOutput onlyImmutable
The ID of the federation policy. Output only.
Get GA
GET
Get account federation policy.
API scopes: authentication
Parameters
- account_idstringRequiredpath
The account id for the federation policy.
- policy_idstringRequiredpath
The identifier for the federation policy.
- service_principal_idint64Requiredquery
The service principal id for the federation policy.
Response
Returns the FederationPolicy object.
List GA
GET
List account federation policies.
API scopes: authentication
Parameters
- account_idstringRequiredpath
The account id for the federation policy.
- service_principal_idint64Requiredquery
The service principal id for the federation policy.
- page_sizeint32query
- page_tokenstringquery
Response
Returns a list of FederationPolicy objects.
Create GA
POST
Create account federation policy.
API scopes: authentication
Parameters
- account_idstringRequiredpath
The account id for the federation policy.
- service_principal_idint64Requiredquery
The service principal id for the federation policy.
- policy_idstringquery
The identifier for the federation policy. The identifier must contain only lowercase alphanumeric characters, numbers, hyphens, and slashes. If unspecified, the id will be assigned by <Databricks>.
Request body
- policyobjectRequired
Show child attributesHide child attributes
- descriptionstring
Description of the federation policy.
- oidc_policyobject
Show child attributesHide child attributes
- issuerstring
The required token issuer, as specified in the 'iss' claim of federated tokens.
- subjectstring
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.
- audiencesarray 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.
- subject_claimstring
The claim that contains the subject of the token. If unspecified, the default value is 'sub'.
- jwks_uristring
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 jwks_uri and jwks_json 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_jsonstring
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 jwks_uri and jwks_json 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.
Response
Returns the FederationPolicy object.
Update GA
PATCH
Update account federation policy.
API scopes: authentication
Parameters
- account_idstringRequiredpath
The account id for the federation policy.
- policy_idstringRequiredpath
The identifier for the federation policy.
- service_principal_idint64Requiredquery
The service principal id for the federation policy.
- update_maskstringquery
The field mask specifies which fields of the policy to update. To specify multiple fields in the field mask, use comma as the separator (no space). The special value '*' indicates that all fields should be updated (full replacement). If unspecified, all fields that are set in the policy provided in the update request will overwrite the corresponding fields in the existing policy. Example value: 'description,oidc_policy.audiences'.
Request body
- policyobjectRequired
Show child attributesHide child attributes
- descriptionstring
Description of the federation policy.
- oidc_policyobject
Show child attributesHide child attributes
- issuerstring
The required token issuer, as specified in the 'iss' claim of federated tokens.
- subjectstring
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.
- audiencesarray 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.
- subject_claimstring
The claim that contains the subject of the token. If unspecified, the default value is 'sub'.
- jwks_uristring
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 jwks_uri and jwks_json 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_jsonstring
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 jwks_uri and jwks_json 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.
Response
Returns the FederationPolicy object.
Delete GA
DELETE
Delete account federation policy.
API scopes: authentication
Parameters
- account_idstringRequiredpath
The account id for the federation policy.
- policy_idstringRequiredpath
The identifier for the federation policy.
- service_principal_idint64Requiredquery
The service principal id for the federation policy.