@Generated public class ServicePrincipalSecretsAPI extends Object
You can use the generated secrets to obtain OAuth access tokens for a service principal, which can then be used to access Databricks Accounts and Workspace APIs. For more information, see [Authentication using OAuth tokens for service principals],
In addition, the generated secrets can be used to configure the Databricks Terraform Provider to authenticate with the service principal. For more information, see [Databricks Terraform Provider].
[Authentication using OAuth tokens for service principals]: https://docs.databricks.com/dev-tools/authentication-oauth.html [Databricks Terraform Provider]: https://github.com/databricks/terraform-provider-databricks/blob/master/docs/index.md#authenticating-with-service-principal
Constructor and Description |
---|
ServicePrincipalSecretsAPI(ApiClient apiClient)
Regular-use constructor
|
ServicePrincipalSecretsAPI(ServicePrincipalSecretsService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
CreateServicePrincipalSecretResponse |
create(CreateServicePrincipalSecretRequest request)
Create service principal secret.
|
CreateServicePrincipalSecretResponse |
create(long servicePrincipalId) |
void |
delete(DeleteServicePrincipalSecretRequest request)
Delete service principal secret.
|
void |
delete(long servicePrincipalId,
String secretId) |
ServicePrincipalSecretsService |
impl() |
Iterable<SecretInfo> |
list(ListServicePrincipalSecretsRequest request)
List service principal secrets.
|
Iterable<SecretInfo> |
list(long servicePrincipalId) |
public ServicePrincipalSecretsAPI(ApiClient apiClient)
public ServicePrincipalSecretsAPI(ServicePrincipalSecretsService mock)
public CreateServicePrincipalSecretResponse create(long servicePrincipalId)
public CreateServicePrincipalSecretResponse create(CreateServicePrincipalSecretRequest request)
Create a secret for the given service principal.
public void delete(long servicePrincipalId, String secretId)
public void delete(DeleteServicePrincipalSecretRequest request)
Delete a secret from the given service principal.
public Iterable<SecretInfo> list(long servicePrincipalId)
public Iterable<SecretInfo> list(ListServicePrincipalSecretsRequest request)
List all secrets associated with the given service principal. This operation only returns information about the secrets themselves and does not include the secret values.
public ServicePrincipalSecretsService impl()
Copyright © 2023. All rights reserved.