Retrieves information about databricks_service_principal.
Adding service principal 11111111-2222-3333-4444-555666777888
to administrative group
data "databricks_group" "admins" {
display_name = "admins"
}
data "databricks_service_principal" "spn" {
application_id = "11111111-2222-3333-4444-555666777888"
}
resource "databricks_group_member" "my_member_a" {
group_id = data.databricks_group.admins.id
member_id = data.databricks_service_principal.spn.id
}
Data source allows you to pick service principals by one of the following attributes (only one of them):
application_id
- (Required if display_name
isn't used) ID of the service principal. The service principal must exist before this resource can be retrieved.display_name
- (Required if application_id
isn't used) Exact display name of the service principal. The service principal must exist before this resource can be retrieved. In case if there are several service principals with the same name, an error is thrown.Data source exposes the following attributes:
id
- The id of the service principal.external_id
- ID of the service principal in an external identity provider.display_name
- Display name of the service principal, e.g. Foo SPN
.home
- Home folder of the service principal, e.g. /Users/11111111-2222-3333-4444-555666777888
.repos
- Repos location of the service principal, e.g. /Repos/11111111-2222-3333-4444-555666777888
.active
- Whether service principal is active or not.
acl_principal_id
- identifier for use in databricks_access_control_rule_set, e.g. servicePrincipals/00000000-0000-0000-0000-000000000000
.
The following resources are used in the same context: