a.storage_credentials: Account Storage Credentials¶
- class databricks.sdk.service.catalog.AccountStorageCredentialsAPI¶
These APIs manage storage credentials for a particular metastore.
- create(metastore_id: str [, credential_info: Optional[CreateAccountsStorageCredential], skip_validation: Optional[bool]]) AccountsCreateStorageCredentialInfo¶
Creates a new storage credential. The request object is specific to the cloud: - AwsIamRole for AWS credentials - AzureServicePrincipal for Azure credentials - GcpServiceAccountKey for GCP credentials
The caller must be a metastore admin and have the CREATE_STORAGE_CREDENTIAL privilege on the metastore.
- Parameters:
metastore_id – str Unity Catalog metastore ID
credential_info –
CreateAccountsStorageCredential(optional)skip_validation – bool (optional) Optional, default false. Supplying true to this argument skips validation of the created set of credentials.
- Returns:
- delete(metastore_id: str, storage_credential_name: str [, force: Optional[bool]]) AccountsDeleteStorageCredentialResponse¶
Deletes a storage credential from the metastore. The caller must be an owner of the storage credential.
- Parameters:
metastore_id – str Unity Catalog metastore ID
storage_credential_name – str Name of the storage credential.
force – bool (optional) Force deletion even if the Storage Credential is not empty. Default is false.
- Returns:
- get(metastore_id: str, storage_credential_name: str) AccountsStorageCredentialInfo¶
Gets a storage credential from the metastore. The caller must be a metastore admin, the owner of the storage credential, or have a level of privilege on the storage credential.
- Parameters:
metastore_id – str Unity Catalog metastore ID
storage_credential_name – str Required. Name of the storage credential.
- Returns:
- list(metastore_id: str) Iterator[StorageCredentialInfo]¶
Gets a list of all storage credentials that have been assigned to given metastore.
- Parameters:
metastore_id – str Unity Catalog metastore ID
- Returns:
Iterator over
StorageCredentialInfo
- update(metastore_id: str, storage_credential_name: str [, credential_info: Optional[UpdateAccountsStorageCredential], skip_validation: Optional[bool]]) AccountsUpdateStorageCredentialResponse¶
Updates a storage credential on the metastore. The caller must be the owner of the storage credential. If the caller is a metastore admin, only the owner credential can be changed.
- Parameters:
metastore_id – str Unity Catalog metastore ID
storage_credential_name – str Name of the storage credential.
credential_info –
UpdateAccountsStorageCredential(optional)skip_validation – bool (optional) Optional. Supplying true to this argument skips validation of the updated set of credentials.
- Returns: