Account Service Principal
The details of a ServicePrincipal resource.
ServicePrincipal object
The details of a ServicePrincipal resource.
- account_idstringBeta
The parent account ID for the service principal in <Databricks>.
- service_principal_idstringBeta
Internal service principal ID of the service principal in <Databricks>.
- external_idstringBeta
ExternalId of the service principal in the customer's IdP.
- application_idstringBeta
Application ID of the service principal. Set at creation time and cannot be changed afterwards; when omitted, the server generates one.
- display_namestringBeta
Display name of the service principal.
- account_sp_statusstringBeta
The activity status of a service principal in a <Databricks> account.
Get Beta
GET
Fetches a service principal from the <Databricks> account by its internal ID.
API scopes: identity
Parameters
- account_idstringpath
Required. The account ID for which the service principal is being fetched.
- service_principal_idstringpath
Required. Internal ID of the service principal in <Databricks>.
Response
Returns the ServicePrincipal object.
List Beta
GET
Lists the service principals in the <Databricks> account, returning one page per call. Supports filtering by application ID or external ID.
API scopes: identity
Parameters
- account_idstringpath
Required. The account ID for which the service principals are being fetched.
- page_sizeint32query
The maximum number of service principals to return. The service may return fewer than this value.
- page_tokenstringquery
A page token, received from a previous ListServicePrincipals call. Provide this to retrieve the subsequent page.
- filterstringquery
Optional. Allows filtering service principals by application id or external id.
Response
Returns a list of ServicePrincipal objects.
Create Beta
POST
Creates a local service principal in the <Databricks> account and returns the created service principal. A local service principal is one that is not synced from the customer's identity provider, and can be created whether or not Account Identity Management (AIM) is enabled.
When AIM is enabled, supplying an external ID returns an error. To provision the identity from your identity provider, resolve it by its external ID with ResolveServicePrincipal; to read an existing external identity, use the ExternalServicePrincipal resource.
API scopes: identity
Parameters
- account_idstringpath
Required. The account ID for which the service principal is being created.
Request body
- service_principalobject
Required. Service principal to be created in <Databricks>
Show child attributesHide child attributes
- account_idstring
The parent account ID for the service principal in <Databricks>.
- service_principal_idstring
Internal service principal ID of the service principal in <Databricks>.
- external_idstring
ExternalId of the service principal in the customer's IdP.
- application_idstring
Application ID of the service principal. Set at creation time and cannot be changed afterwards; when omitted, the server generates one.
- display_namestring
Display name of the service principal.
- account_sp_statusstring
The activity status of a service principal in a <Databricks> account.
Response
Returns the ServicePrincipal object.
Update Beta
PATCH
Updates an existing service principal in the <Databricks> account. Only the fields named in the update mask are modified. Returns the updated ServicePrincipal resource.
When AIM is enabled and the service principal is an external identity (its external_id is set), only external_id can be updated; its other fields are sourced from your identity provider.
API scopes: identity
Parameters
- account_idstringpath
Required. The account ID for which the service principal is being updated.
- service_principal_idstringpath
Required. Internal ID of the service principal in <Databricks>.
- update_maskstringquery
Optional. The list of fields to update.
Request body
- service_principalobject
Required. Service Principal to be updated in <Databricks>
Show child attributesHide child attributes
- account_idstring
The parent account ID for the service principal in <Databricks>.
- service_principal_idstring
Internal service principal ID of the service principal in <Databricks>.
- external_idstring
ExternalId of the service principal in the customer's IdP.
- application_idstring
Application ID of the service principal. Set at creation time and cannot be changed afterwards; when omitted, the server generates one.
- display_namestring
Display name of the service principal.
- account_sp_statusstring
The activity status of a service principal in a <Databricks> account.
Response
Returns the ServicePrincipal object.
Delete Beta
DELETE
Deletes a service principal from the <Databricks> account by its internal ID.
API scopes: identity
Parameters
- account_idstringpath
Required. The account ID for which the service principal is being deleted.
- service_principal_idstringpath
Required. Internal ID of the service principal in <Databricks>.