Skip to main content

Databricks

This Integration is part of the Databricks Pack.#

Supported versions

Available on Cortex XSOAR (versions 6.10.0 and later) and Cortex XSIAM.

Databricks Integration#

Comprehensive integration with Databricks workspace APIs for managing clusters, jobs, SQL, pipelines, Unity Catalog, MLflow, IAM, and more.

This integration was integrated and tested with the Databricks REST API.

Configure Databricks on Cortex XSIAM#

  1. Navigate to Settings > Integrations > Servers & Services.
  2. Search for Databricks.
  3. Click Add instance to create and configure a new integration instance.
ParameterDescriptionRequired
Databricks Workspace URLe.g., https://dbc-xxxxx.cloud.databricks.comTrue
Personal Access TokenTrue
Trust any certificate (not secure)Default: false.False
Use system proxy settingsDefault: false.False
Fetch incidentsDefault: false.False
Incident typeFalse
Fetch typesTypes of events to fetch as incidents.False
Maximum incidents per fetchDefault: 50.False
First fetch timee.g., 3 days, 1 week Default: 3 days.False
Incidents Fetch IntervalDefault: 1.False
  1. Click Test to validate the connection.

Commands#

You can execute these commands from the Cortex XSIAM CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message is shown in the War Room with the command details.

Total Commands: 193#

databricks-cluster-get#


Retrieves information about a cluster by its ID.

Base Command#

databricks-cluster-get

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to retrieve.Required

Context Output#

PathTypeDescription
Databricks.Cluster.cluster_idStringThe unique identifier of the cluster.
Databricks.Cluster.cluster_nameStringThe name of the cluster.
Databricks.Cluster.stateStringThe current state of the cluster.
Databricks.Cluster.creator_user_nameStringThe user who created the cluster.
Databricks.Cluster.spark_versionStringThe Spark version of the cluster.
Databricks.Cluster.node_type_idStringThe node type of the cluster workers.
Databricks.Cluster.num_workersNumberThe number of workers in the cluster.
Databricks.Cluster.autotermination_minutesNumberAuto-termination time in minutes.
Databricks.Cluster.start_timeDateThe time the cluster was started.
Databricks.Cluster.cluster_sourceStringThe source that created the cluster.

Command Example#

!databricks-cluster-get cluster_id=0831-000000-abcdefgh

databricks-cluster-list#


Lists all clusters in the workspace.

Base Command#

databricks-cluster-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.Cluster.cluster_idStringThe unique identifier of the cluster.
Databricks.Cluster.cluster_nameStringThe name of the cluster.
Databricks.Cluster.stateStringThe current state of the cluster.
Databricks.Cluster.creator_user_nameStringThe user who created the cluster.
Databricks.Cluster.spark_versionStringThe Spark version of the cluster.
Databricks.Cluster.node_type_idStringThe node type of the cluster workers.
Databricks.Cluster.num_workersNumberThe number of workers in the cluster.
Databricks.Cluster.autotermination_minutesNumberAuto-termination time in minutes.
Databricks.Cluster.start_timeDateThe time the cluster was started.
Databricks.Cluster.cluster_sourceStringThe source that created the cluster.

Command Example#

!databricks-cluster-list

databricks-cluster-create#


Creates a new Databricks cluster.

Base Command#

databricks-cluster-create

Input#

Argument NameDescriptionRequired
cluster_nameThe name for the new cluster.Required
spark_versionThe Spark version for the cluster.Required
node_type_idThe node type ID for cluster workers.Required
num_workersThe number of workers for the cluster.Optional
autotermination_minutesAuto-termination time in minutes.Optional
custom_tagsCustom tags as a JSON string.Optional

Context Output#

PathTypeDescription
Databricks.Cluster.cluster_idStringThe ID of the newly created cluster.

Command Example#

!databricks-cluster-create cluster_name="test-cluster" spark_version="14.3.x-scala2.12" node_type_id="i3.xlarge" num_workers="2"

databricks-cluster-edit#


Edits the configuration of an existing cluster.

Base Command#

databricks-cluster-edit

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to edit.Required
cluster_nameNew name for the cluster.Optional
spark_versionNew Spark version for the cluster.Optional
node_type_idNew node type ID for cluster workers.Optional
num_workersNew number of workers.Optional
autotermination_minutesNew auto-termination time in minutes.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-edit

databricks-cluster-delete#


Terminates a cluster.

Base Command#

databricks-cluster-delete

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to terminate.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-delete cluster_id=0831-000000-abcdefgh

databricks-cluster-permanent-delete#


Permanently deletes a cluster.

Base Command#

databricks-cluster-permanent-delete

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to permanently delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-permanent-delete

databricks-cluster-start#


Starts a previously terminated cluster.

Base Command#

databricks-cluster-start

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to start.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-start cluster_id=0831-000000-abcdefgh

databricks-cluster-restart#


Restarts a running cluster.

Base Command#

databricks-cluster-restart

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to restart.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-restart cluster_id=0831-000000-abcdefgh

databricks-cluster-resize#


Resizes a cluster by changing the number of workers.

Base Command#

databricks-cluster-resize

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to resize.Required
num_workersThe new number of workers.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-resize

databricks-cluster-pin#


Pins a cluster to keep it visible in the cluster list.

Base Command#

databricks-cluster-pin

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to pin.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-pin cluster_id=0831-000000-abcdefgh

databricks-cluster-unpin#


Unpins a cluster.

Base Command#

databricks-cluster-unpin

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to unpin.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-unpin cluster_id=0831-000000-abcdefgh

databricks-cluster-change-owner#


Changes the owner of a cluster.

Base Command#

databricks-cluster-change-owner

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
owner_usernameThe username of the new owner.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-change-owner

databricks-cluster-list-zones#


Lists available availability zones for cluster deployment.

Base Command#

databricks-cluster-list-zones

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.Zone.zonesUnknownList of available zones.

Command Example#

!databricks-cluster-list-zones

databricks-cluster-update#


Updates specific properties of a cluster.

Base Command#

databricks-cluster-update

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster to update.Required
cluster_nameNew name for the cluster.Optional
spark_versionNew Spark version for the cluster.Optional
node_type_idNew node type ID for cluster workers.Optional
num_workersNew number of workers.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-update

databricks-cluster-policy-get#


Retrieves a cluster policy by its ID.

Base Command#

databricks-cluster-policy-get

Input#

Argument NameDescriptionRequired
policy_idThe ID of the cluster policy to retrieve.Required

Context Output#

PathTypeDescription
Databricks.ClusterPolicy.policy_idStringThe unique identifier of the policy.
Databricks.ClusterPolicy.nameStringThe name of the policy.
Databricks.ClusterPolicy.definitionStringThe policy definition as a JSON string.
Databricks.ClusterPolicy.creator_user_nameStringThe user who created the policy.
Databricks.ClusterPolicy.created_at_timestampDateWhen the policy was created.

Command Example#

!databricks-cluster-policy-get policy_id=ABC123

databricks-cluster-policy-list#


Lists all cluster policies in the workspace.

Base Command#

databricks-cluster-policy-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.ClusterPolicy.policy_idStringThe unique identifier of the policy.
Databricks.ClusterPolicy.nameStringThe name of the policy.
Databricks.ClusterPolicy.definitionStringThe policy definition as a JSON string.
Databricks.ClusterPolicy.creator_user_nameStringThe user who created the policy.
Databricks.ClusterPolicy.created_at_timestampDateWhen the policy was created.

Command Example#

!databricks-cluster-policy-list

databricks-cluster-policy-create#


Creates a new cluster policy.

Base Command#

databricks-cluster-policy-create

Input#

Argument NameDescriptionRequired
nameThe name of the cluster policy.Required
definitionThe policy definition as a JSON string.Required

Context Output#

PathTypeDescription
Databricks.ClusterPolicy.policy_idStringThe ID of the newly created policy.

Command Example#

!databricks-cluster-policy-create

databricks-cluster-policy-edit#


Edits an existing cluster policy.

Base Command#

databricks-cluster-policy-edit

Input#

Argument NameDescriptionRequired
policy_idThe ID of the policy to edit.Required
nameNew name for the policy.Optional
definitionNew policy definition as a JSON string.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-policy-edit

databricks-cluster-policy-delete#


Deletes a cluster policy.

Base Command#

databricks-cluster-policy-delete

Input#

Argument NameDescriptionRequired
policy_idThe ID of the policy to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-cluster-policy-delete

databricks-instance-pool-get#


Retrieves information about an instance pool.

Base Command#

databricks-instance-pool-get

Input#

Argument NameDescriptionRequired
instance_pool_idThe ID of the instance pool.Required

Context Output#

PathTypeDescription
Databricks.InstancePool.instance_pool_idStringThe unique identifier of the pool.
Databricks.InstancePool.instance_pool_nameStringThe name of the pool.
Databricks.InstancePool.node_type_idStringThe node type ID used by the pool.
Databricks.InstancePool.min_idle_instancesNumberMinimum number of idle instances maintained.
Databricks.InstancePool.max_capacityNumberMaximum number of instances in the pool.
Databricks.InstancePool.stateStringThe current state of the pool.

Command Example#

!databricks-instance-pool-get instance_pool_id=0831-pool-1

databricks-instance-pool-list#


Lists all instance pools in the workspace.

Base Command#

databricks-instance-pool-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.InstancePool.instance_pool_idStringThe unique identifier of the pool.
Databricks.InstancePool.instance_pool_nameStringThe name of the pool.
Databricks.InstancePool.node_type_idStringThe node type ID used by the pool.
Databricks.InstancePool.min_idle_instancesNumberMinimum number of idle instances maintained.
Databricks.InstancePool.max_capacityNumberMaximum number of instances in the pool.
Databricks.InstancePool.stateStringThe current state of the pool.

Command Example#

!databricks-instance-pool-list

databricks-instance-pool-create#


Creates a new instance pool.

Base Command#

databricks-instance-pool-create

Input#

Argument NameDescriptionRequired
instance_pool_nameThe name of the instance pool.Required
node_type_idThe node type ID for the pool.Required
min_idle_instancesMinimum number of idle instances.Optional
max_capacityMaximum number of instances in the pool.Optional

Context Output#

PathTypeDescription
Databricks.InstancePool.instance_pool_idStringThe ID of the newly created pool.

Command Example#

!databricks-instance-pool-create

databricks-instance-pool-edit#


Edits an existing instance pool.

Base Command#

databricks-instance-pool-edit

Input#

Argument NameDescriptionRequired
instance_pool_idThe ID of the pool to edit.Required
instance_pool_nameNew name for the pool.Optional
node_type_idNew node type ID.Optional
min_idle_instancesNew minimum number of idle instances.Optional
max_capacityNew maximum capacity.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-instance-pool-edit

databricks-instance-pool-delete#


Deletes an instance pool.

Base Command#

databricks-instance-pool-delete

Input#

Argument NameDescriptionRequired
instance_pool_idThe ID of the pool to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-instance-pool-delete

databricks-library-cluster-status#


Retrieves the status of libraries on a specific cluster.

Base Command#

databricks-library-cluster-status

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required

Context Output#

PathTypeDescription
Databricks.LibraryStatus.libraryUnknownThe library specification.
Databricks.LibraryStatus.statusStringThe installation status of the library.
Databricks.LibraryStatus.is_library_for_all_clustersBooleanWhether the library is installed on all clusters.

Command Example#

!databricks-library-cluster-status cluster_id=0831-000000-abcdefgh

databricks-library-all-cluster-statuses#


Retrieves library statuses for all clusters.

Base Command#

databricks-library-all-cluster-statuses

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.LibraryClusterStatus.cluster_idStringThe cluster ID.
Databricks.LibraryClusterStatus.library_statusesUnknownThe library statuses for this cluster.

Command Example#

!databricks-library-all-cluster-statuses

databricks-library-install#


Installs libraries on a cluster.

Base Command#

databricks-library-install

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
librariesJSON array of library specifications to install.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-library-install

databricks-library-uninstall#


Uninstalls libraries from a cluster.

Base Command#

databricks-library-uninstall

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
librariesJSON array of library specifications to uninstall.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-library-uninstall

databricks-context-create#


Creates an execution context on a cluster.

Base Command#

databricks-context-create

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
languageThe programming language for the context. Possible values are: python, scala, sql, r.Required

Context Output#

PathTypeDescription
Databricks.Context.idStringThe ID of the created execution context.

Command Example#

!databricks-context-create

databricks-context-destroy#


Destroys an execution context.

Base Command#

databricks-context-destroy

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
context_idThe ID of the context to destroy.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-context-destroy

databricks-context-status#


Gets the status of an execution context.

Base Command#

databricks-context-status

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
context_idThe ID of the context.Required

Context Output#

PathTypeDescription
Databricks.Context.idStringThe ID of the context.
Databricks.Context.statusStringThe status of the context.

Command Example#

!databricks-context-status

databricks-command-execute#


Executes a command in an execution context.

Base Command#

databricks-command-execute

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
context_idThe ID of the execution context.Required
languageThe programming language. Possible values are: python, scala, sql, r.Required
commandThe command text to execute.Required

Context Output#

PathTypeDescription
Databricks.Command.idStringThe ID of the command.
Databricks.Command.statusStringThe execution status of the command.

Command Example#

!databricks-command-execute

databricks-command-status#


Gets the status and results of a command.

Base Command#

databricks-command-status

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
command_idThe ID of the command.Required
context_idThe ID of the execution context.Required

Context Output#

PathTypeDescription
Databricks.Command.idStringThe ID of the command.
Databricks.Command.statusStringThe execution status of the command.
Databricks.Command.resultsUnknownThe results of the command execution.

Command Example#

!databricks-command-status

databricks-command-cancel#


Cancels a running command.

Base Command#

databricks-command-cancel

Input#

Argument NameDescriptionRequired
cluster_idThe ID of the cluster.Required
command_idThe ID of the command to cancel.Required
context_idThe ID of the execution context.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-command-cancel

databricks-job-get#


Retrieves details about a specific job.

Base Command#

databricks-job-get

Input#

Argument NameDescriptionRequired
job_idThe ID of the job.Required

Context Output#

PathTypeDescription
Databricks.Job.job_idNumberThe unique identifier of the job.
Databricks.Job.settingsUnknownThe settings of the job.
Databricks.Job.creator_user_nameStringThe user who created the job.
Databricks.Job.created_timeDateWhen the job was created.

Command Example#

!databricks-job-get job_id=12345

databricks-job-list#


Lists all jobs in the workspace.

Base Command#

databricks-job-list

Input#

Argument NameDescriptionRequired
limitMaximum number of jobs to return. Default is 20.Optional
offsetOffset for pagination.Optional
nameFilter jobs by name.Optional
expand_tasksWhether to include task details. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
Databricks.Job.job_idNumberThe unique identifier of the job.
Databricks.Job.settingsUnknownThe settings of the job.
Databricks.Job.creator_user_nameStringThe user who created the job.
Databricks.Job.created_timeDateWhen the job was created.

Command Example#

!databricks-job-list

databricks-job-create#


Creates a new job.

Base Command#

databricks-job-create

Input#

Argument NameDescriptionRequired
nameThe name of the job.Required
tasksJSON string defining the job tasks.Required
scheduleJSON string defining the schedule.Optional
max_concurrent_runsMaximum number of concurrent runs.Optional

Context Output#

PathTypeDescription
Databricks.Job.job_idNumberThe ID of the newly created job.

Command Example#

!databricks-job-create name="my-job" tasks='[{"task_key":"t1","notebook_task":{"notebook_path":"/test"}}]'

databricks-job-reset#


Overwrites all settings of an existing job.

Base Command#

databricks-job-reset

Input#

Argument NameDescriptionRequired
job_idThe ID of the job to reset.Required
new_settingsJSON string with the new job settings.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-job-reset

databricks-job-update#


Partially updates a job.

Base Command#

databricks-job-update

Input#

Argument NameDescriptionRequired
job_idThe ID of the job to update.Required
fields_to_updateJSON string with the fields to update.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-job-update

databricks-job-delete#


Deletes a job.

Base Command#

databricks-job-delete

Input#

Argument NameDescriptionRequired
job_idThe ID of the job to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-job-delete job_id=12345

databricks-job-run-now#


Triggers an immediate run of a job.

Base Command#

databricks-job-run-now

Input#

Argument NameDescriptionRequired
job_idThe ID of the job to run.Required
notebook_paramsJSON string of notebook parameters.Optional
python_paramsJSON string of Python parameters.Optional
jar_paramsJSON string of JAR parameters.Optional

Context Output#

PathTypeDescription
Databricks.JobRun.run_idNumberThe ID of the triggered run.
Databricks.JobRun.number_in_jobNumberThe run number within the job.

Command Example#

!databricks-job-run-now job_id=12345

databricks-pipeline-get#


Retrieves details about a pipeline.

Base Command#

databricks-pipeline-get

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline.Required

Context Output#

PathTypeDescription
Databricks.Pipeline.pipeline_idStringThe unique identifier of the pipeline.
Databricks.Pipeline.nameStringThe name of the pipeline.
Databricks.Pipeline.stateStringThe current state of the pipeline.
Databricks.Pipeline.creator_user_nameStringThe user who created the pipeline.
Databricks.Pipeline.cluster_idStringThe cluster ID associated with the pipeline.

Command Example#

!databricks-pipeline-get pipeline_id=abc-123-def

databricks-pipeline-list#


Lists pipelines in the workspace.

Base Command#

databricks-pipeline-list

Input#

Argument NameDescriptionRequired
max_resultsMaximum number of pipelines to return.Optional
filterFilter string for pipelines.Optional

Context Output#

PathTypeDescription
Databricks.Pipeline.pipeline_idStringThe unique identifier of the pipeline.
Databricks.Pipeline.nameStringThe name of the pipeline.
Databricks.Pipeline.stateStringThe current state of the pipeline.
Databricks.Pipeline.creator_user_nameStringThe user who created the pipeline.

Command Example#

!databricks-pipeline-list

databricks-pipeline-create#


Creates a new pipeline.

Base Command#

databricks-pipeline-create

Input#

Argument NameDescriptionRequired
nameThe name of the pipeline.Required
configurationPipeline configuration as a JSON string.Required

Context Output#

PathTypeDescription
Databricks.Pipeline.pipeline_idStringThe ID of the newly created pipeline.

Command Example#

!databricks-pipeline-create

databricks-pipeline-update#


Updates an existing pipeline.

Base Command#

databricks-pipeline-update

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline to update.Required
configurationNew pipeline configuration as a JSON string.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-pipeline-update

databricks-pipeline-delete#


Deletes a pipeline.

Base Command#

databricks-pipeline-delete

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-pipeline-delete

databricks-pipeline-clone#


Clones an existing pipeline.

Base Command#

databricks-pipeline-clone

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline to clone.Required

Context Output#

PathTypeDescription
Databricks.Pipeline.pipeline_idStringThe ID of the cloned pipeline.

Command Example#

!databricks-pipeline-clone

databricks-pipeline-start#


Starts a pipeline update.

Base Command#

databricks-pipeline-start

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline to start.Required
full_refreshWhether to do a full refresh. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
Databricks.PipelineUpdate.update_idStringThe ID of the triggered update.

Command Example#

!databricks-pipeline-start

databricks-pipeline-stop#


Stops a running pipeline.

Base Command#

databricks-pipeline-stop

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline to stop.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-pipeline-stop

databricks-pipeline-events#


Retrieves events for a pipeline.

Base Command#

databricks-pipeline-events

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline.Required
max_resultsMaximum number of events to return.Optional
filterFilter string for events.Optional

Context Output#

PathTypeDescription
Databricks.PipelineEvent.idStringThe unique identifier of the event.
Databricks.PipelineEvent.timestampDateWhen the event occurred.
Databricks.PipelineEvent.event_typeStringThe type of event.
Databricks.PipelineEvent.messageStringThe event message.
Databricks.PipelineEvent.levelStringThe severity level of the event.

Command Example#

!databricks-pipeline-events

databricks-pipeline-list-updates#


Lists updates for a pipeline.

Base Command#

databricks-pipeline-list-updates

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline.Required
max_resultsMaximum number of updates to return.Optional

Context Output#

PathTypeDescription
Databricks.PipelineUpdate.update_idStringThe unique identifier of the update.
Databricks.PipelineUpdate.stateStringThe state of the update.
Databricks.PipelineUpdate.creation_timeDateWhen the update was created.

Command Example#

!databricks-pipeline-list-updates

databricks-pipeline-get-update#


Retrieves a specific pipeline update.

Base Command#

databricks-pipeline-get-update

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline.Required
update_idThe ID of the update.Required

Context Output#

PathTypeDescription
Databricks.PipelineUpdate.update_idStringThe unique identifier of the update.
Databricks.PipelineUpdate.stateStringThe state of the update.
Databricks.PipelineUpdate.creation_timeDateWhen the update was created.
Databricks.PipelineUpdate.configUnknownThe update configuration.

Command Example#

!databricks-pipeline-get-update

databricks-pipeline-apply-environment#


Applies environment settings to a pipeline.

Base Command#

databricks-pipeline-apply-environment

Input#

Argument NameDescriptionRequired
pipeline_idThe ID of the pipeline.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-pipeline-apply-environment

databricks-dbfs-get-status#


Gets the status of a file or directory in DBFS.

Base Command#

databricks-dbfs-get-status

Input#

Argument NameDescriptionRequired
pathThe DBFS path.Required

Context Output#

PathTypeDescription
Databricks.DBFS.pathStringThe DBFS path.
Databricks.DBFS.is_dirBooleanWhether the path is a directory.
Databricks.DBFS.file_sizeNumberThe file size in bytes.
Databricks.DBFS.modification_timeDateLast modification time.

Command Example#

!databricks-dbfs-get-status path=/tmp

databricks-dbfs-list#


Lists the contents of a DBFS directory.

Base Command#

databricks-dbfs-list

Input#

Argument NameDescriptionRequired
pathThe DBFS directory path.Required

Context Output#

PathTypeDescription
Databricks.DBFS.pathStringThe DBFS path.
Databricks.DBFS.is_dirBooleanWhether the path is a directory.
Databricks.DBFS.file_sizeNumberThe file size in bytes.
Databricks.DBFS.modification_timeDateLast modification time.

Command Example#

!databricks-dbfs-list path=/

databricks-dbfs-read#


Reads the contents of a file in DBFS.

Base Command#

databricks-dbfs-read

Input#

Argument NameDescriptionRequired
pathThe DBFS file path.Required
offsetThe byte offset to start reading from.Optional
lengthThe number of bytes to read.Optional

Context Output#

PathTypeDescription
Databricks.DBFSFile.bytes_readNumberThe number of bytes read.
Databricks.DBFSFile.dataStringThe base64-encoded file content.

Command Example#

!databricks-dbfs-read

databricks-dbfs-create#


Opens a stream to write a file in DBFS.

Base Command#

databricks-dbfs-create

Input#

Argument NameDescriptionRequired
pathThe DBFS file path.Required
overwriteWhether to overwrite existing file. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
Databricks.DBFSStream.handleNumberThe handle for the write stream.

Command Example#

!databricks-dbfs-create

databricks-dbfs-add-block#


Appends a block of data to a DBFS write stream.

Base Command#

databricks-dbfs-add-block

Input#

Argument NameDescriptionRequired
handleThe handle of the write stream.Required
dataBase64-encoded data block to append.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-dbfs-add-block

databricks-dbfs-close#


Closes a DBFS write stream.

Base Command#

databricks-dbfs-close

Input#

Argument NameDescriptionRequired
handleThe handle of the write stream to close.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-dbfs-close

databricks-dbfs-put#


Uploads a file to DBFS.

Base Command#

databricks-dbfs-put

Input#

Argument NameDescriptionRequired
pathThe DBFS file path.Required
contentsBase64-encoded file contents.Optional
overwriteWhether to overwrite existing file. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-dbfs-put

databricks-dbfs-delete#


Deletes a file or directory in DBFS.

Base Command#

databricks-dbfs-delete

Input#

Argument NameDescriptionRequired
pathThe DBFS path to delete.Required
recursiveWhether to delete recursively. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-dbfs-delete

databricks-dbfs-mkdirs#


Creates a directory in DBFS.

Base Command#

databricks-dbfs-mkdirs

Input#

Argument NameDescriptionRequired
pathThe DBFS directory path to create.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-dbfs-mkdirs path=/tmp/test

databricks-dbfs-move#


Moves a file or directory in DBFS.

Base Command#

databricks-dbfs-move

Input#

Argument NameDescriptionRequired
source_pathThe source DBFS path.Required
destination_pathThe destination DBFS path.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-dbfs-move

databricks-workspace-get-status#


Gets the status of a workspace object.

Base Command#

databricks-workspace-get-status

Input#

Argument NameDescriptionRequired
pathThe workspace path.Required

Context Output#

PathTypeDescription
Databricks.WorkspaceObject.object_typeStringThe type of workspace object.
Databricks.WorkspaceObject.pathStringThe workspace path.
Databricks.WorkspaceObject.object_idNumberThe unique identifier of the object.
Databricks.WorkspaceObject.languageStringThe language of the notebook.

Command Example#

!databricks-workspace-get-status path=/Shared

databricks-workspace-list#


Lists the contents of a workspace directory.

Base Command#

databricks-workspace-list

Input#

Argument NameDescriptionRequired
pathThe workspace directory path.Required

Context Output#

PathTypeDescription
Databricks.WorkspaceObject.object_typeStringThe type of workspace object.
Databricks.WorkspaceObject.pathStringThe workspace path.
Databricks.WorkspaceObject.object_idNumberThe unique identifier of the object.
Databricks.WorkspaceObject.languageStringThe language of the notebook.

Command Example#

!databricks-workspace-list path=/

databricks-workspace-export#


Exports a workspace object.

Base Command#

databricks-workspace-export

Input#

Argument NameDescriptionRequired
pathThe workspace path to export.Required
formatThe export format. Possible values are: SOURCE, HTML, JUPYTER, DBC.Optional

Context Output#

PathTypeDescription
Databricks.WorkspaceExport.contentStringThe base64-encoded exported content.

Command Example#

!databricks-workspace-export path=/Shared/notebook format=SOURCE

databricks-workspace-import#


Imports a workspace object.

Base Command#

databricks-workspace-import

Input#

Argument NameDescriptionRequired
pathThe workspace destination path.Required
contentBase64-encoded content to import.Required
formatThe import format. Possible values are: SOURCE, HTML, JUPYTER, DBC.Optional
languageThe language for the notebook. Possible values are: PYTHON, SCALA, SQL, R.Optional
overwriteWhether to overwrite existing object. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-workspace-import

databricks-workspace-delete#


Deletes a workspace object.

Base Command#

databricks-workspace-delete

Input#

Argument NameDescriptionRequired
pathThe workspace path to delete.Required
recursiveWhether to delete recursively. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-workspace-delete

databricks-workspace-mkdirs#


Creates a directory in the workspace.

Base Command#

databricks-workspace-mkdirs

Input#

Argument NameDescriptionRequired
pathThe workspace directory path to create.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-workspace-mkdirs

databricks-git-credential-get#


Retrieves a Git credential.

Base Command#

databricks-git-credential-get

Input#

Argument NameDescriptionRequired
credential_idThe ID of the Git credential.Required

Context Output#

PathTypeDescription
Databricks.GitCredential.credential_idNumberThe ID of the credential.
Databricks.GitCredential.git_usernameStringThe Git username.
Databricks.GitCredential.git_providerStringThe Git provider.

Command Example#

!databricks-git-credential-get

databricks-git-credential-list#


Lists all Git credentials.

Base Command#

databricks-git-credential-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.GitCredential.credential_idNumberThe ID of the credential.
Databricks.GitCredential.git_usernameStringThe Git username.
Databricks.GitCredential.git_providerStringThe Git provider.

Command Example#

!databricks-git-credential-list

databricks-git-credential-create#


Creates a new Git credential.

Base Command#

databricks-git-credential-create

Input#

Argument NameDescriptionRequired
git_providerThe Git provider name.Required
git_usernameThe Git username.Required
personal_access_tokenThe personal access token for Git.Required

Context Output#

PathTypeDescription
Databricks.GitCredential.credential_idNumberThe ID of the newly created credential.

Command Example#

!databricks-git-credential-create

databricks-git-credential-update#


Updates a Git credential.

Base Command#

databricks-git-credential-update

Input#

Argument NameDescriptionRequired
credential_idThe ID of the credential to update.Required
git_providerThe new Git provider.Optional
git_usernameThe new Git username.Optional
personal_access_tokenThe new personal access token.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-git-credential-update

databricks-git-credential-delete#


Deletes a Git credential.

Base Command#

databricks-git-credential-delete

Input#

Argument NameDescriptionRequired
credential_idThe ID of the credential to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-git-credential-delete

databricks-repo-get#


Retrieves a repo by its ID.

Base Command#

databricks-repo-get

Input#

Argument NameDescriptionRequired
repo_idThe ID of the repo.Required

Context Output#

PathTypeDescription
Databricks.Repo.idNumberThe unique identifier of the repo.
Databricks.Repo.urlStringThe URL of the remote repository.
Databricks.Repo.providerStringThe Git provider.
Databricks.Repo.pathStringThe workspace path of the repo.
Databricks.Repo.branchStringThe current branch.
Databricks.Repo.head_commit_idStringThe HEAD commit ID.

Command Example#

!databricks-repo-get

databricks-repo-list#


Lists repos in the workspace.

Base Command#

databricks-repo-list

Input#

Argument NameDescriptionRequired
path_prefixFilter repos by path prefix.Optional
next_page_tokenPagination token for the next page.Optional

Context Output#

PathTypeDescription
Databricks.Repo.idNumberThe unique identifier of the repo.
Databricks.Repo.urlStringThe URL of the remote repository.
Databricks.Repo.providerStringThe Git provider.
Databricks.Repo.pathStringThe workspace path of the repo.
Databricks.Repo.branchStringThe current branch.
Databricks.Repo.head_commit_idStringThe HEAD commit ID.

Command Example#

!databricks-repo-list

databricks-repo-create#


Creates a new repo.

Base Command#

databricks-repo-create

Input#

Argument NameDescriptionRequired
urlThe URL of the remote repository.Required
providerThe Git provider.Required
pathThe desired workspace path.Optional

Context Output#

PathTypeDescription
Databricks.Repo.idNumberThe ID of the newly created repo.

Command Example#

!databricks-repo-create

databricks-repo-update#


Updates a repo branch or tag.

Base Command#

databricks-repo-update

Input#

Argument NameDescriptionRequired
repo_idThe ID of the repo to update.Required
branchThe branch to checkout.Optional
tagThe tag to checkout.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-repo-update

databricks-warehouse-get#


Retrieves information about a SQL warehouse.

Base Command#

databricks-warehouse-get

Input#

Argument NameDescriptionRequired
warehouse_idThe ID of the SQL warehouse.Required

Context Output#

PathTypeDescription
Databricks.Warehouse.idStringThe unique identifier of the warehouse.
Databricks.Warehouse.nameStringThe name of the warehouse.
Databricks.Warehouse.cluster_sizeStringThe cluster size.
Databricks.Warehouse.stateStringThe current state of the warehouse.
Databricks.Warehouse.num_clustersNumberThe number of clusters.
Databricks.Warehouse.creator_nameStringThe creator of the warehouse.
Databricks.Warehouse.num_active_sessionsNumberNumber of active sessions.

Command Example#

!databricks-warehouse-get warehouse_id=abc123

databricks-warehouse-list#


Lists all SQL warehouses.

Base Command#

databricks-warehouse-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.Warehouse.idStringThe unique identifier of the warehouse.
Databricks.Warehouse.nameStringThe name of the warehouse.
Databricks.Warehouse.cluster_sizeStringThe cluster size.
Databricks.Warehouse.stateStringThe current state of the warehouse.
Databricks.Warehouse.num_clustersNumberThe number of clusters.
Databricks.Warehouse.creator_nameStringThe creator of the warehouse.

Command Example#

!databricks-warehouse-list

databricks-warehouse-create#


Creates a new SQL warehouse.

Base Command#

databricks-warehouse-create

Input#

Argument NameDescriptionRequired
nameThe name of the warehouse.Required
cluster_sizeThe cluster size.Required
max_num_clustersMaximum number of clusters.Optional
auto_stop_minsAuto-stop time in minutes.Optional
enable_serverless_computeWhether to enable serverless compute. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
Databricks.Warehouse.idStringThe ID of the newly created warehouse.

Command Example#

!databricks-warehouse-create

databricks-warehouse-edit#


Edits a SQL warehouse configuration.

Base Command#

databricks-warehouse-edit

Input#

Argument NameDescriptionRequired
warehouse_idThe ID of the warehouse to edit.Required
nameNew name for the warehouse.Optional
cluster_sizeNew cluster size.Optional
max_num_clustersNew maximum number of clusters.Optional
auto_stop_minsNew auto-stop time in minutes.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-warehouse-edit

databricks-warehouse-delete#


Deletes a SQL warehouse.

Base Command#

databricks-warehouse-delete

Input#

Argument NameDescriptionRequired
warehouse_idThe ID of the warehouse to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-warehouse-delete

databricks-warehouse-start#


Starts a SQL warehouse.

Base Command#

databricks-warehouse-start

Input#

Argument NameDescriptionRequired
warehouse_idThe ID of the warehouse to start.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-warehouse-start warehouse_id=abc123

databricks-warehouse-stop#


Stops a SQL warehouse.

Base Command#

databricks-warehouse-stop

Input#

Argument NameDescriptionRequired
warehouse_idThe ID of the warehouse to stop.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-warehouse-stop warehouse_id=abc123

databricks-warehouse-get-config#


Gets the workspace warehouse configuration.

Base Command#

databricks-warehouse-get-config

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.WarehouseConfig.data_access_configUnknownThe data access configuration.
Databricks.WarehouseConfig.sql_configuration_parametersUnknownThe SQL configuration parameters.

Command Example#

!databricks-warehouse-get-config

databricks-warehouse-set-config#


Sets the workspace warehouse configuration.

Base Command#

databricks-warehouse-set-config

Input#

Argument NameDescriptionRequired
configJSON string with the warehouse configuration.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-warehouse-set-config

databricks-sql-statement-execute#


Executes a SQL statement against a warehouse.

Base Command#

databricks-sql-statement-execute

Input#

Argument NameDescriptionRequired
warehouse_idThe ID of the SQL warehouse.Required
statementThe SQL statement to execute.Required
catalogThe catalog to use.Optional
schemaThe schema to use.Optional
wait_timeoutTimeout in seconds to wait for results.Optional
dispositionThe result disposition. Possible values are: INLINE, EXTERNAL_LINKS.Optional
row_limitMaximum number of rows to return.Optional

Context Output#

PathTypeDescription
Databricks.SQLStatement.statement_idStringThe ID of the statement execution.
Databricks.SQLStatement.statusUnknownThe status of the statement.
Databricks.SQLStatement.manifestUnknownThe result manifest.
Databricks.SQLStatement.resultUnknownThe result data.

Command Example#

!databricks-sql-statement-execute warehouse_id=abc123 statement="SELECT 1"

databricks-sql-statement-get-status#


Gets the status and results of a SQL statement.

Base Command#

databricks-sql-statement-get-status

Input#

Argument NameDescriptionRequired
statement_idThe ID of the statement.Required

Context Output#

PathTypeDescription
Databricks.SQLStatement.statement_idStringThe ID of the statement.
Databricks.SQLStatement.statusUnknownThe status of the statement.
Databricks.SQLStatement.manifestUnknownThe result manifest.
Databricks.SQLStatement.resultUnknownThe result data.

Command Example#

!databricks-sql-statement-get-status

databricks-sql-statement-get-result-chunk#


Gets a result chunk of a SQL statement.

Base Command#

databricks-sql-statement-get-result-chunk

Input#

Argument NameDescriptionRequired
statement_idThe ID of the statement.Required
chunk_indexThe index of the result chunk.Required

Context Output#

PathTypeDescription
Databricks.SQLResultChunk.chunk_indexNumberThe chunk index.
Databricks.SQLResultChunk.row_offsetNumberThe row offset of this chunk.
Databricks.SQLResultChunk.row_countNumberThe number of rows in this chunk.
Databricks.SQLResultChunk.data_arrayUnknownThe data array.

Command Example#

!databricks-sql-statement-get-result-chunk

databricks-sql-statement-cancel#


Cancels a running SQL statement.

Base Command#

databricks-sql-statement-cancel

Input#

Argument NameDescriptionRequired
statement_idThe ID of the statement to cancel.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-sql-statement-cancel

databricks-sql-query-get#


Retrieves a saved SQL query.

Base Command#

databricks-sql-query-get

Input#

Argument NameDescriptionRequired
query_idThe ID of the query.Required

Context Output#

PathTypeDescription
Databricks.SQLQuery.idStringThe unique identifier of the query.
Databricks.SQLQuery.nameStringThe name of the query.
Databricks.SQLQuery.queryStringThe SQL text of the query.
Databricks.SQLQuery.descriptionStringThe description of the query.
Databricks.SQLQuery.warehouse_idStringThe warehouse ID for the query.
Databricks.SQLQuery.parent_pathStringThe parent path of the query.

Command Example#

!databricks-sql-query-get query_id=abc-123

databricks-sql-query-list#


Lists saved SQL queries.

Base Command#

databricks-sql-query-list

Input#

Argument NameDescriptionRequired
page_sizeNumber of queries per page.Optional
page_tokenPagination token for the next page.Optional

Context Output#

PathTypeDescription
Databricks.SQLQuery.idStringThe unique identifier of the query.
Databricks.SQLQuery.nameStringThe name of the query.
Databricks.SQLQuery.queryStringThe SQL text of the query.
Databricks.SQLQuery.descriptionStringThe description of the query.
Databricks.SQLQuery.warehouse_idStringThe warehouse ID for the query.

Command Example#

!databricks-sql-query-list

databricks-sql-query-create#


Creates a new saved SQL query.

Base Command#

databricks-sql-query-create

Input#

Argument NameDescriptionRequired
nameThe name of the query.Required
queryThe SQL text.Required
warehouse_idThe warehouse to use.Required
descriptionThe description of the query.Optional
parent_pathThe parent path for the query.Optional

Context Output#

PathTypeDescription
Databricks.SQLQuery.idStringThe ID of the newly created query.

Command Example#

!databricks-sql-query-create

databricks-sql-query-update#


Updates a saved SQL query.

Base Command#

databricks-sql-query-update

Input#

Argument NameDescriptionRequired
query_idThe ID of the query to update.Required
nameNew name for the query.Optional
queryNew SQL text.Optional
descriptionNew description.Optional
warehouse_idNew warehouse ID.Optional

Context Output#

PathTypeDescription
Databricks.SQLQuery.idStringThe ID of the updated query.

Command Example#

!databricks-sql-query-update

databricks-sql-query-delete#


Deletes a saved SQL query.

Base Command#

databricks-sql-query-delete

Input#

Argument NameDescriptionRequired
query_idThe ID of the query to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-sql-query-delete

databricks-sql-alert-list#


Lists all SQL alerts.

Base Command#

databricks-sql-alert-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.SQLAlert.idStringThe unique identifier of the alert.
Databricks.SQLAlert.display_nameStringThe display name of the alert.
Databricks.SQLAlert.query_idStringThe query ID associated with the alert.
Databricks.SQLAlert.stateStringThe current state of the alert.
Databricks.SQLAlert.lifecycle_stateStringThe lifecycle state of the alert.
Databricks.SQLAlert.owner_user_nameStringThe owner of the alert.
Databricks.SQLAlert.create_timeDateWhen the alert was created.
Databricks.SQLAlert.update_timeDateWhen the alert was last updated.

Command Example#

!databricks-sql-alert-list

databricks-sql-alert-get#


Retrieves a SQL alert.

Base Command#

databricks-sql-alert-get

Input#

Argument NameDescriptionRequired
alert_idThe ID of the alert.Required

Context Output#

PathTypeDescription
Databricks.SQLAlert.idStringThe unique identifier of the alert.
Databricks.SQLAlert.display_nameStringThe display name of the alert.
Databricks.SQLAlert.query_idStringThe query ID associated with the alert.
Databricks.SQLAlert.conditionUnknownThe alert condition.
Databricks.SQLAlert.stateStringThe current state of the alert.
Databricks.SQLAlert.lifecycle_stateStringThe lifecycle state of the alert.
Databricks.SQLAlert.owner_user_nameStringThe owner of the alert.
Databricks.SQLAlert.create_timeDateWhen the alert was created.
Databricks.SQLAlert.update_timeDateWhen the alert was last updated.

Command Example#

!databricks-sql-alert-get alert_id=abc-123

databricks-sql-alert-create#


Creates a new SQL alert.

Base Command#

databricks-sql-alert-create

Input#

Argument NameDescriptionRequired
display_nameThe display name of the alert.Required
query_idThe query ID to monitor.Required
conditionThe alert condition as a JSON string.Required

Context Output#

PathTypeDescription
Databricks.SQLAlert.idStringThe ID of the newly created alert.

Command Example#

!databricks-sql-alert-create

databricks-sql-alert-update#


Updates a SQL alert.

Base Command#

databricks-sql-alert-update

Input#

Argument NameDescriptionRequired
alert_idThe ID of the alert to update.Required
display_nameNew display name for the alert.Optional
query_idNew query ID.Optional
conditionNew condition as a JSON string.Optional

Context Output#

PathTypeDescription
Databricks.SQLAlert.idStringThe ID of the updated alert.

Command Example#

!databricks-sql-alert-update

databricks-sql-alert-delete#


Deletes a SQL alert.

Base Command#

databricks-sql-alert-delete

Input#

Argument NameDescriptionRequired
alert_idThe ID of the alert to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-sql-alert-delete

databricks-sql-query-history-list#


Lists SQL query execution history.

Base Command#

databricks-sql-query-history-list

Input#

Argument NameDescriptionRequired
max_resultsMaximum number of results to return.Optional
start_time_msStart time in milliseconds since epoch.Optional
end_time_msEnd time in milliseconds since epoch.Optional
statusesFilter by statuses. Possible values are: QUEUED, RUNNING, CANCELED, FAILED, FINISHED.Optional

Context Output#

PathTypeDescription
Databricks.SQLQueryHistory.query_idStringThe query execution ID.
Databricks.SQLQueryHistory.query_textStringThe SQL text that was executed.
Databricks.SQLQueryHistory.statusStringThe execution status.
Databricks.SQLQueryHistory.user_nameStringThe user who ran the query.
Databricks.SQLQueryHistory.warehouse_idStringThe warehouse used for execution.
Databricks.SQLQueryHistory.durationNumberThe execution duration in milliseconds.

Command Example#

!databricks-sql-query-history-list

databricks-serving-endpoint-list#


Lists all serving endpoints.

Base Command#

databricks-serving-endpoint-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.ServingEndpoint.nameStringThe name of the endpoint.
Databricks.ServingEndpoint.creatorStringThe creator of the endpoint.
Databricks.ServingEndpoint.creation_timestampDateWhen the endpoint was created.
Databricks.ServingEndpoint.stateUnknownThe state of the endpoint.
Databricks.ServingEndpoint.configUnknownThe endpoint configuration.

Command Example#

!databricks-serving-endpoint-list

databricks-serving-endpoint-get#


Retrieves a serving endpoint.

Base Command#

databricks-serving-endpoint-get

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint.Required

Context Output#

PathTypeDescription
Databricks.ServingEndpoint.nameStringThe name of the endpoint.
Databricks.ServingEndpoint.creatorStringThe creator of the endpoint.
Databricks.ServingEndpoint.creation_timestampDateWhen the endpoint was created.
Databricks.ServingEndpoint.stateUnknownThe state of the endpoint.
Databricks.ServingEndpoint.configUnknownThe endpoint configuration.

Command Example#

!databricks-serving-endpoint-get name=my-endpoint

databricks-serving-endpoint-create#


Creates a new serving endpoint.

Base Command#

databricks-serving-endpoint-create

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint.Required
configThe endpoint configuration as a JSON string.Required

Context Output#

PathTypeDescription
Databricks.ServingEndpoint.nameStringThe name of the created endpoint.

Command Example#

!databricks-serving-endpoint-create

databricks-serving-endpoint-update-config#


Updates the configuration of a serving endpoint.

Base Command#

databricks-serving-endpoint-update-config

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint.Required
served_entitiesJSON string of served entity configurations.Required

Context Output#

PathTypeDescription
Databricks.ServingEndpoint.nameStringThe name of the updated endpoint.

Command Example#

!databricks-serving-endpoint-update-config

databricks-serving-endpoint-delete#


Deletes a serving endpoint.

Base Command#

databricks-serving-endpoint-delete

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-serving-endpoint-delete

databricks-serving-endpoint-query#


Queries a serving endpoint for predictions.

Base Command#

databricks-serving-endpoint-query

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint.Required
inputsJSON string of input data.Required

Context Output#

PathTypeDescription
Databricks.ServingEndpointResponse.predictionsUnknownThe prediction results.

Command Example#

!databricks-serving-endpoint-query

databricks-serving-endpoint-get-logs#


Retrieves logs for a served model.

Base Command#

databricks-serving-endpoint-get-logs

Input#

Argument NameDescriptionRequired
nameThe name of the serving endpoint.Required
served_model_nameThe name of the served model.Required

Context Output#

PathTypeDescription
Databricks.ServingEndpointLogs.logsStringThe model logs.

Command Example#

!databricks-serving-endpoint-get-logs

databricks-vector-search-endpoint-list#


Lists all vector search endpoints.

Base Command#

databricks-vector-search-endpoint-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.VectorSearchEndpoint.nameStringThe name of the endpoint.
Databricks.VectorSearchEndpoint.endpoint_typeStringThe type of the endpoint.
Databricks.VectorSearchEndpoint.stateStringThe state of the endpoint.

Command Example#

!databricks-vector-search-endpoint-list

databricks-vector-search-endpoint-get#


Retrieves a vector search endpoint.

Base Command#

databricks-vector-search-endpoint-get

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint.Required

Context Output#

PathTypeDescription
Databricks.VectorSearchEndpoint.nameStringThe name of the endpoint.
Databricks.VectorSearchEndpoint.endpoint_typeStringThe type of the endpoint.
Databricks.VectorSearchEndpoint.stateStringThe state of the endpoint.
Databricks.VectorSearchEndpoint.num_indexesNumberThe number of indexes.
Databricks.VectorSearchEndpoint.creatorStringThe creator of the endpoint.

Command Example#

!databricks-vector-search-endpoint-get endpoint_name=my-vs-endpoint

databricks-vector-search-endpoint-create#


Creates a new vector search endpoint.

Base Command#

databricks-vector-search-endpoint-create

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint.Required
endpoint_typeThe type of the endpoint.Required

Context Output#

PathTypeDescription
Databricks.VectorSearchEndpoint.nameStringThe name of the created endpoint.

Command Example#

!databricks-vector-search-endpoint-create

databricks-vector-search-endpoint-delete#


Deletes a vector search endpoint.

Base Command#

databricks-vector-search-endpoint-delete

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-vector-search-endpoint-delete

databricks-vector-search-endpoint-get-metrics#


Retrieves metrics for a vector search endpoint.

Base Command#

databricks-vector-search-endpoint-get-metrics

Input#

Argument NameDescriptionRequired
nameThe name of the endpoint.Required

Context Output#

PathTypeDescription
Databricks.VectorSearchMetrics.metricsUnknownThe endpoint metrics.

Command Example#

!databricks-vector-search-endpoint-get-metrics

databricks-mlflow-metric-history#


Gets the history of a metric for a run.

Base Command#

databricks-mlflow-metric-history

Input#

Argument NameDescriptionRequired
run_idThe ID of the MLflow run.Required
metric_keyThe metric key to retrieve history for.Required

Context Output#

PathTypeDescription
Databricks.MLflowMetric.keyStringThe metric key.
Databricks.MLflowMetric.valueNumberThe metric value.
Databricks.MLflowMetric.timestampDateWhen the metric was logged.
Databricks.MLflowMetric.stepNumberThe step number.

Command Example#

!databricks-mlflow-metric-history

databricks-mlflow-model-list#


Lists registered MLflow models.

Base Command#

databricks-mlflow-model-list

Input#

Argument NameDescriptionRequired
max_resultsMaximum number of models to return.Optional
page_tokenPagination token.Optional

Context Output#

PathTypeDescription
Databricks.MLflowModel.nameStringThe name of the model.
Databricks.MLflowModel.creation_timestampDateWhen the model was created.
Databricks.MLflowModel.last_updated_timestampDateWhen the model was last updated.
Databricks.MLflowModel.user_idStringThe user who created the model.
Databricks.MLflowModel.descriptionStringThe model description.

Command Example#

!databricks-mlflow-model-list

databricks-mlflow-model-get#


Retrieves a registered MLflow model.

Base Command#

databricks-mlflow-model-get

Input#

Argument NameDescriptionRequired
nameThe name of the model.Required

Context Output#

PathTypeDescription
Databricks.MLflowModel.nameStringThe name of the model.
Databricks.MLflowModel.creation_timestampDateWhen the model was created.
Databricks.MLflowModel.last_updated_timestampDateWhen the model was last updated.
Databricks.MLflowModel.user_idStringThe user who created the model.
Databricks.MLflowModel.descriptionStringThe model description.
Databricks.MLflowModel.latest_versionsUnknownThe latest versions of the model.

Command Example#

!databricks-mlflow-model-get name=my-model

databricks-mlflow-model-version-create#


Creates a new model version.

Base Command#

databricks-mlflow-model-version-create

Input#

Argument NameDescriptionRequired
nameThe name of the registered model.Required
sourceThe source path for the model artifacts.Required
run_idThe MLflow run ID.Optional
descriptionDescription for the model version.Optional

Context Output#

PathTypeDescription
Databricks.MLflowModelVersion.nameStringThe model name.
Databricks.MLflowModelVersion.versionStringThe version number.
Databricks.MLflowModelVersion.creation_timestampDateWhen the version was created.
Databricks.MLflowModelVersion.current_stageStringThe current stage.
Databricks.MLflowModelVersion.sourceStringThe source path.
Databricks.MLflowModelVersion.run_idStringThe associated run ID.
Databricks.MLflowModelVersion.statusStringThe version status.

Command Example#

!databricks-mlflow-model-version-create

databricks-mlflow-model-version-get#


Retrieves a specific model version.

Base Command#

databricks-mlflow-model-version-get

Input#

Argument NameDescriptionRequired
nameThe name of the registered model.Required
versionThe version number.Required

Context Output#

PathTypeDescription
Databricks.MLflowModelVersion.nameStringThe model name.
Databricks.MLflowModelVersion.versionStringThe version number.
Databricks.MLflowModelVersion.creation_timestampDateWhen the version was created.
Databricks.MLflowModelVersion.current_stageStringThe current stage.
Databricks.MLflowModelVersion.sourceStringThe source path.
Databricks.MLflowModelVersion.run_idStringThe associated run ID.
Databricks.MLflowModelVersion.statusStringThe version status.

Command Example#

!databricks-mlflow-model-version-get

databricks-mlflow-model-version-search#


Searches model versions.

Base Command#

databricks-mlflow-model-version-search

Input#

Argument NameDescriptionRequired
filterFilter string for searching versions.Optional
max_resultsMaximum number of results.Optional
order_byOrdering specification.Optional
page_tokenPagination token.Optional

Context Output#

PathTypeDescription
Databricks.MLflowModelVersion.nameStringThe model name.
Databricks.MLflowModelVersion.versionStringThe version number.
Databricks.MLflowModelVersion.creation_timestampDateWhen the version was created.
Databricks.MLflowModelVersion.current_stageStringThe current stage.
Databricks.MLflowModelVersion.sourceStringThe source path.
Databricks.MLflowModelVersion.run_idStringThe associated run ID.
Databricks.MLflowModelVersion.statusStringThe version status.

Command Example#

!databricks-mlflow-model-version-search

databricks-mlflow-model-version-delete#


Deletes a model version.

Base Command#

databricks-mlflow-model-version-delete

Input#

Argument NameDescriptionRequired
nameThe name of the registered model.Required
versionThe version number to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-mlflow-model-version-delete

databricks-mlflow-model-version-transition-stage#


Transitions a model version to a new stage.

Base Command#

databricks-mlflow-model-version-transition-stage

Input#

Argument NameDescriptionRequired
nameThe name of the registered model.Required
versionThe version number.Required
stageThe target stage. Possible values are: None, Staging, Production, Archived.Required

Context Output#

PathTypeDescription
Databricks.MLflowModelVersion.nameStringThe model name.
Databricks.MLflowModelVersion.versionStringThe version number.
Databricks.MLflowModelVersion.current_stageStringThe new current stage.

Command Example#

!databricks-mlflow-model-version-transition-stage

databricks-catalog-get#


Retrieves a Unity Catalog catalog.

Base Command#

databricks-catalog-get

Input#

Argument NameDescriptionRequired
nameThe name of the catalog.Required

Context Output#

PathTypeDescription
Databricks.Catalog.nameStringThe name of the catalog.
Databricks.Catalog.ownerStringThe owner of the catalog.
Databricks.Catalog.commentStringThe catalog comment.
Databricks.Catalog.metastore_idStringThe metastore ID.
Databricks.Catalog.created_atDateWhen the catalog was created.
Databricks.Catalog.created_byStringWho created the catalog.

Command Example#

!databricks-catalog-get name=main

databricks-catalog-list#


Lists all Unity Catalog catalogs.

Base Command#

databricks-catalog-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.Catalog.nameStringThe name of the catalog.
Databricks.Catalog.ownerStringThe owner of the catalog.
Databricks.Catalog.commentStringThe catalog comment.
Databricks.Catalog.metastore_idStringThe metastore ID.
Databricks.Catalog.created_atDateWhen the catalog was created.
Databricks.Catalog.created_byStringWho created the catalog.

Command Example#

!databricks-catalog-list

databricks-catalog-create#


Creates a new Unity Catalog catalog.

Base Command#

databricks-catalog-create

Input#

Argument NameDescriptionRequired
nameThe name of the catalog.Required
commentA comment for the catalog.Optional

Context Output#

PathTypeDescription
Databricks.Catalog.nameStringThe name of the created catalog.

Command Example#

!databricks-catalog-create

databricks-catalog-update#


Updates a Unity Catalog catalog.

Base Command#

databricks-catalog-update

Input#

Argument NameDescriptionRequired
nameThe name of the catalog to update.Required
new_nameNew name for the catalog.Optional
commentNew comment.Optional
ownerNew owner.Optional

Context Output#

PathTypeDescription
Databricks.Catalog.nameStringThe updated catalog name.

Command Example#

!databricks-catalog-update

databricks-catalog-delete#


Deletes a Unity Catalog catalog.

Base Command#

databricks-catalog-delete

Input#

Argument NameDescriptionRequired
nameThe name of the catalog to delete.Required
forceWhether to force delete. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-catalog-delete

databricks-schema-get#


Retrieves a Unity Catalog schema.

Base Command#

databricks-schema-get

Input#

Argument NameDescriptionRequired
full_nameThe full name of the schema (catalog.schema).Required

Context Output#

PathTypeDescription
Databricks.Schema.nameStringThe name of the schema.
Databricks.Schema.catalog_nameStringThe parent catalog name.
Databricks.Schema.ownerStringThe owner of the schema.
Databricks.Schema.commentStringThe schema comment.
Databricks.Schema.full_nameStringThe full name of the schema.
Databricks.Schema.created_atDateWhen the schema was created.

Command Example#

!databricks-schema-get full_name=main.default

databricks-schema-list#


Lists schemas in a catalog.

Base Command#

databricks-schema-list

Input#

Argument NameDescriptionRequired
catalog_nameThe name of the catalog.Required

Context Output#

PathTypeDescription
Databricks.Schema.nameStringThe name of the schema.
Databricks.Schema.catalog_nameStringThe parent catalog name.
Databricks.Schema.ownerStringThe owner of the schema.
Databricks.Schema.commentStringThe schema comment.
Databricks.Schema.full_nameStringThe full name of the schema.
Databricks.Schema.created_atDateWhen the schema was created.

Command Example#

!databricks-schema-list catalog_name=main

databricks-schema-create#


Creates a new schema in a catalog.

Base Command#

databricks-schema-create

Input#

Argument NameDescriptionRequired
nameThe name of the schema.Required
catalog_nameThe parent catalog name.Required
commentA comment for the schema.Optional

Context Output#

PathTypeDescription
Databricks.Schema.full_nameStringThe full name of the created schema.

Command Example#

!databricks-schema-create

databricks-schema-update#


Updates a schema.

Base Command#

databricks-schema-update

Input#

Argument NameDescriptionRequired
full_nameThe full name of the schema to update.Required
new_nameNew name for the schema.Optional
commentNew comment.Optional
ownerNew owner.Optional

Context Output#

PathTypeDescription
Databricks.Schema.full_nameStringThe updated schema full name.

Command Example#

!databricks-schema-update

databricks-schema-delete#


Deletes a schema.

Base Command#

databricks-schema-delete

Input#

Argument NameDescriptionRequired
full_nameThe full name of the schema to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-schema-delete

databricks-table-get#


Retrieves a Unity Catalog table.

Base Command#

databricks-table-get

Input#

Argument NameDescriptionRequired
full_nameThe full name of the table (catalog.schema.table).Required

Context Output#

PathTypeDescription
Databricks.Table.nameStringThe name of the table.
Databricks.Table.catalog_nameStringThe parent catalog.
Databricks.Table.schema_nameStringThe parent schema.
Databricks.Table.table_typeStringThe type of table.
Databricks.Table.data_source_formatStringThe data source format.
Databricks.Table.ownerStringThe owner of the table.
Databricks.Table.created_atDateWhen the table was created.

Command Example#

!databricks-table-get full_name=main.default.my_table

databricks-table-list#


Lists tables in a schema.

Base Command#

databricks-table-list

Input#

Argument NameDescriptionRequired
catalog_nameThe catalog name.Required
schema_nameThe schema name.Required
max_resultsMaximum number of results.Optional
page_tokenPagination token.Optional

Context Output#

PathTypeDescription
Databricks.Table.nameStringThe name of the table.
Databricks.Table.catalog_nameStringThe parent catalog.
Databricks.Table.schema_nameStringThe parent schema.
Databricks.Table.table_typeStringThe type of table.
Databricks.Table.data_source_formatStringThe data source format.
Databricks.Table.ownerStringThe owner of the table.
Databricks.Table.created_atDateWhen the table was created.

Command Example#

!databricks-table-list catalog_name=main schema_name=default

databricks-table-delete#


Deletes a table.

Base Command#

databricks-table-delete

Input#

Argument NameDescriptionRequired
full_nameThe full name of the table to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-table-delete

databricks-table-exists#


Checks if a table exists.

Base Command#

databricks-table-exists

Input#

Argument NameDescriptionRequired
full_nameThe full name of the table.Required

Context Output#

PathTypeDescription
Databricks.TableExists.table_existsBooleanWhether the table exists.

Command Example#

!databricks-table-exists full_name=main.default.my_table

databricks-table-summaries#


Lists table summaries in a catalog.

Base Command#

databricks-table-summaries

Input#

Argument NameDescriptionRequired
catalog_nameThe catalog name.Required
schema_name_patternPattern to filter schema names.Optional
table_name_patternPattern to filter table names.Optional
max_resultsMaximum number of results.Optional
page_tokenPagination token.Optional

Context Output#

PathTypeDescription
Databricks.TableSummary.full_nameStringThe full name of the table.
Databricks.TableSummary.table_typeStringThe type of table.

Command Example#

!databricks-table-summaries catalog_name=main

databricks-volume-get#


Retrieves a Unity Catalog volume.

Base Command#

databricks-volume-get

Input#

Argument NameDescriptionRequired
full_nameThe full name of the volume (catalog.schema.volume).Required

Context Output#

PathTypeDescription
Databricks.Volume.nameStringThe name of the volume.
Databricks.Volume.catalog_nameStringThe parent catalog.
Databricks.Volume.schema_nameStringThe parent schema.
Databricks.Volume.volume_typeStringThe volume type.
Databricks.Volume.storage_locationStringThe storage location.
Databricks.Volume.ownerStringThe owner of the volume.
Databricks.Volume.created_atDateWhen the volume was created.

Command Example#

!databricks-volume-get

databricks-volume-list#


Lists volumes in a schema.

Base Command#

databricks-volume-list

Input#

Argument NameDescriptionRequired
catalog_nameThe catalog name.Required
schema_nameThe schema name.Required

Context Output#

PathTypeDescription
Databricks.Volume.nameStringThe name of the volume.
Databricks.Volume.catalog_nameStringThe parent catalog.
Databricks.Volume.schema_nameStringThe parent schema.
Databricks.Volume.volume_typeStringThe volume type.
Databricks.Volume.storage_locationStringThe storage location.
Databricks.Volume.ownerStringThe owner of the volume.
Databricks.Volume.created_atDateWhen the volume was created.

Command Example#

!databricks-volume-list catalog_name=main schema_name=default

databricks-volume-create#


Creates a new Unity Catalog volume.

Base Command#

databricks-volume-create

Input#

Argument NameDescriptionRequired
nameThe name of the volume.Required
catalog_nameThe parent catalog.Required
schema_nameThe parent schema.Required
volume_typeThe volume type. Possible values are: MANAGED, EXTERNAL.Required
storage_locationThe storage location for EXTERNAL volumes.Optional

Context Output#

PathTypeDescription
Databricks.Volume.nameStringThe name of the created volume.

Command Example#

!databricks-volume-create

databricks-volume-update#


Updates a Unity Catalog volume.

Base Command#

databricks-volume-update

Input#

Argument NameDescriptionRequired
full_nameThe full name of the volume to update.Required
new_nameNew name.Optional
commentNew comment.Optional
ownerNew owner.Optional

Context Output#

PathTypeDescription
Databricks.Volume.nameStringThe updated volume name.

Command Example#

!databricks-volume-update

databricks-volume-delete#


Deletes a Unity Catalog volume.

Base Command#

databricks-volume-delete

Input#

Argument NameDescriptionRequired
full_nameThe full name of the volume to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-volume-delete

databricks-grant-get#


Gets the permissions on a securable object.

Base Command#

databricks-grant-get

Input#

Argument NameDescriptionRequired
securable_typeThe type of securable object.Required
full_nameThe full name of the securable object.Required

Context Output#

PathTypeDescription
Databricks.Grant.principalStringThe principal.
Databricks.Grant.privilegesUnknownThe granted privileges.

Command Example#

!databricks-grant-get securable_type=catalog full_name=main

databricks-grant-update#


Updates permissions on a securable object.

Base Command#

databricks-grant-update

Input#

Argument NameDescriptionRequired
securable_typeThe type of securable object.Required
full_nameThe full name of the securable object.Required
changesJSON string of permission changes.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-grant-update

databricks-user-get#


Retrieves a workspace user.

Base Command#

databricks-user-get

Input#

Argument NameDescriptionRequired
user_idThe ID of the user.Required

Context Output#

PathTypeDescription
Databricks.User.idStringThe user ID.
Databricks.User.userNameStringThe username.
Databricks.User.displayNameStringThe display name.
Databricks.User.activeBooleanWhether the user is active.

Command Example#

!databricks-user-get user_id=12345

databricks-user-list#


Lists workspace users.

Base Command#

databricks-user-list

Input#

Argument NameDescriptionRequired
filterSCIM filter expression.Optional
countMaximum number of results.Optional
startIndexStart index for pagination.Optional

Context Output#

PathTypeDescription
Databricks.User.idStringThe user ID.
Databricks.User.userNameStringThe username.
Databricks.User.displayNameStringThe display name.
Databricks.User.activeBooleanWhether the user is active.

Command Example#

!databricks-user-list

databricks-user-create#


Creates a new workspace user.

Base Command#

databricks-user-create

Input#

Argument NameDescriptionRequired
user_nameThe username (email address).Required
display_nameThe display name.Optional

Context Output#

PathTypeDescription
Databricks.User.idStringThe ID of the created user.

Command Example#

!databricks-user-create

databricks-user-update#


Updates a workspace user.

Base Command#

databricks-user-update

Input#

Argument NameDescriptionRequired
user_idThe ID of the user to update.Required
user_nameNew username.Optional
display_nameNew display name.Optional
activeWhether the user is active. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-user-update

databricks-user-delete#


Deletes a workspace user.

Base Command#

databricks-user-delete

Input#

Argument NameDescriptionRequired
user_idThe ID of the user to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-user-delete

databricks-group-get#


Retrieves a workspace group.

Base Command#

databricks-group-get

Input#

Argument NameDescriptionRequired
group_idThe ID of the group.Required

Context Output#

PathTypeDescription
Databricks.Group.idStringThe group ID.
Databricks.Group.displayNameStringThe display name.
Databricks.Group.membersUnknownThe group members.

Command Example#

!databricks-group-get group_id=12345

databricks-group-list#


Lists workspace groups.

Base Command#

databricks-group-list

Input#

Argument NameDescriptionRequired
filterSCIM filter expression.Optional
countMaximum number of results.Optional
startIndexStart index for pagination.Optional

Context Output#

PathTypeDescription
Databricks.Group.idStringThe group ID.
Databricks.Group.displayNameStringThe display name.
Databricks.Group.membersUnknownThe group members.

Command Example#

!databricks-group-list

databricks-group-create#


Creates a new workspace group.

Base Command#

databricks-group-create

Input#

Argument NameDescriptionRequired
display_nameThe display name for the group.Required

Context Output#

PathTypeDescription
Databricks.Group.idStringThe ID of the created group.

Command Example#

!databricks-group-create

databricks-group-update#


Updates a workspace group.

Base Command#

databricks-group-update

Input#

Argument NameDescriptionRequired
group_idThe ID of the group to update.Required
display_nameNew display name.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-group-update

databricks-group-delete#


Deletes a workspace group.

Base Command#

databricks-group-delete

Input#

Argument NameDescriptionRequired
group_idThe ID of the group to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-group-delete

databricks-service-principal-get#


Retrieves a service principal.

Base Command#

databricks-service-principal-get

Input#

Argument NameDescriptionRequired
sp_idThe ID of the service principal.Required

Context Output#

PathTypeDescription
Databricks.ServicePrincipal.idStringThe service principal ID.
Databricks.ServicePrincipal.applicationIdStringThe application ID.
Databricks.ServicePrincipal.displayNameStringThe display name.
Databricks.ServicePrincipal.activeBooleanWhether the service principal is active.

Command Example#

!databricks-service-principal-get sp_id=12345

databricks-service-principal-list#


Lists service principals.

Base Command#

databricks-service-principal-list

Input#

Argument NameDescriptionRequired
filterSCIM filter expression.Optional
countMaximum number of results.Optional
startIndexStart index for pagination.Optional

Context Output#

PathTypeDescription
Databricks.ServicePrincipal.idStringThe service principal ID.
Databricks.ServicePrincipal.applicationIdStringThe application ID.
Databricks.ServicePrincipal.displayNameStringThe display name.
Databricks.ServicePrincipal.activeBooleanWhether the service principal is active.

Command Example#

!databricks-service-principal-list

databricks-service-principal-create#


Creates a new service principal.

Base Command#

databricks-service-principal-create

Input#

Argument NameDescriptionRequired
application_idThe application ID.Required
display_nameThe display name.Optional

Context Output#

PathTypeDescription
Databricks.ServicePrincipal.idStringThe ID of the created service principal.

Command Example#

!databricks-service-principal-create

databricks-service-principal-update#


Updates a service principal.

Base Command#

databricks-service-principal-update

Input#

Argument NameDescriptionRequired
sp_idThe ID of the service principal to update.Required
display_nameNew display name.Optional
activeWhether the service principal is active. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-service-principal-update

databricks-service-principal-delete#


Deletes a service principal.

Base Command#

databricks-service-principal-delete

Input#

Argument NameDescriptionRequired
sp_idThe ID of the service principal to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-service-principal-delete

databricks-permissions-get#


Gets permissions on a workspace object.

Base Command#

databricks-permissions-get

Input#

Argument NameDescriptionRequired
object_typeThe type of object.Required
object_idThe ID of the object.Required

Context Output#

PathTypeDescription
Databricks.Permission.object_idStringThe object ID.
Databricks.Permission.object_typeStringThe object type.
Databricks.Permission.access_control_listUnknownThe access control list.

Command Example#

!databricks-permissions-get object_type=clusters object_id=abc123

databricks-permissions-set#


Replaces permissions on a workspace object.

Base Command#

databricks-permissions-set

Input#

Argument NameDescriptionRequired
object_typeThe type of object.Required
object_idThe ID of the object.Required
access_control_listJSON string of the access control list.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-permissions-set

databricks-permissions-update#


Partially updates permissions on a workspace object.

Base Command#

databricks-permissions-update

Input#

Argument NameDescriptionRequired
object_typeThe type of object.Required
object_idThe ID of the object.Required
access_control_listJSON string of the access control list.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-permissions-update

databricks-token-list#


Lists all valid tokens for the user.

Base Command#

databricks-token-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.Token.token_idStringThe token ID.
Databricks.Token.creation_timeDateWhen the token was created.
Databricks.Token.expiry_timeDateWhen the token expires.
Databricks.Token.commentStringThe token comment.

Command Example#

!databricks-token-list

databricks-token-create#


Creates a new personal access token.

Base Command#

databricks-token-create

Input#

Argument NameDescriptionRequired
commentA comment for the token.Optional
lifetime_secondsLifetime of the token in seconds.Optional

Context Output#

PathTypeDescription
Databricks.Token.token_idStringThe ID of the new token.
Databricks.Token.token_valueStringThe value of the new token.

Command Example#

!databricks-token-create comment="test token" lifetime_seconds=86400

databricks-token-update#


Updates a token comment.

Base Command#

databricks-token-update

Input#

Argument NameDescriptionRequired
token_idThe ID of the token to update.Required
commentNew comment for the token.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-token-update

databricks-token-delete#


Revokes a personal access token.

Base Command#

databricks-token-delete

Input#

Argument NameDescriptionRequired
token_idThe ID of the token to revoke.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-token-delete

databricks-secret-put#


Stores a secret value in a scope.

Base Command#

databricks-secret-put

Input#

Argument NameDescriptionRequired
scopeThe name of the secret scope.Required
keyThe secret key name.Required
string_valueThe secret value.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-secret-put

databricks-secret-delete#


Deletes a secret from a scope.

Base Command#

databricks-secret-delete

Input#

Argument NameDescriptionRequired
scopeThe name of the secret scope.Required
keyThe secret key name.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-secret-delete

databricks-secret-list#


Lists secrets in a scope.

Base Command#

databricks-secret-list

Input#

Argument NameDescriptionRequired
scopeThe name of the secret scope.Required

Context Output#

PathTypeDescription
Databricks.Secret.keyStringThe secret key name.
Databricks.Secret.last_updated_timestampDateWhen the secret was last updated.

Command Example#

!databricks-secret-list scope=my-scope

databricks-secret-scope-create#


Creates a new secret scope.

Base Command#

databricks-secret-scope-create

Input#

Argument NameDescriptionRequired
scopeThe name of the scope to create.Required
initial_manage_principalThe initial principal to manage the scope.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-secret-scope-create scope=my-scope

databricks-secret-scope-list#


Lists all secret scopes.

Base Command#

databricks-secret-scope-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.SecretScope.nameStringThe name of the scope.
Databricks.SecretScope.backend_typeStringThe backend type of the scope.

Command Example#

!databricks-secret-scope-list

databricks-secret-scope-delete#


Deletes a secret scope.

Base Command#

databricks-secret-scope-delete

Input#

Argument NameDescriptionRequired
scopeThe name of the scope to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-secret-scope-delete

databricks-secret-acl-get#


Gets the ACL for a principal on a scope.

Base Command#

databricks-secret-acl-get

Input#

Argument NameDescriptionRequired
scopeThe name of the secret scope.Required
principalThe principal name.Required

Context Output#

PathTypeDescription
Databricks.SecretACL.principalStringThe principal.
Databricks.SecretACL.permissionStringThe permission level.

Command Example#

!databricks-secret-acl-get

databricks-secret-acl-list#


Lists ACLs on a secret scope.

Base Command#

databricks-secret-acl-list

Input#

Argument NameDescriptionRequired
scopeThe name of the secret scope.Required

Context Output#

PathTypeDescription
Databricks.SecretACL.principalStringThe principal.
Databricks.SecretACL.permissionStringThe permission level.

Command Example#

!databricks-secret-acl-list scope=my-scope

databricks-secret-acl-put#


Creates or updates an ACL on a secret scope.

Base Command#

databricks-secret-acl-put

Input#

Argument NameDescriptionRequired
scopeThe name of the secret scope.Required
principalThe principal name.Required
permissionThe permission level. Possible values are: READ, WRITE, MANAGE.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-secret-acl-put

databricks-secret-acl-delete#


Deletes an ACL from a secret scope.

Base Command#

databricks-secret-acl-delete

Input#

Argument NameDescriptionRequired
scopeThe name of the secret scope.Required
principalThe principal name.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-secret-acl-delete

databricks-dashboard-get#


Retrieves a Lakeview dashboard.

Base Command#

databricks-dashboard-get

Input#

Argument NameDescriptionRequired
dashboard_idThe ID of the dashboard.Required

Context Output#

PathTypeDescription
Databricks.Dashboard.dashboard_idStringThe unique identifier of the dashboard.
Databricks.Dashboard.display_nameStringThe display name of the dashboard.
Databricks.Dashboard.warehouse_idStringThe associated warehouse.
Databricks.Dashboard.pathStringThe workspace path.
Databricks.Dashboard.create_timeDateWhen the dashboard was created.
Databricks.Dashboard.update_timeDateWhen the dashboard was last updated.

Command Example#

!databricks-dashboard-get dashboard_id=abc123

databricks-dashboard-list#


Lists Lakeview dashboards.

Base Command#

databricks-dashboard-list

Input#

Argument NameDescriptionRequired
page_sizeNumber of dashboards per page.Optional
page_tokenPagination token.Optional

Context Output#

PathTypeDescription
Databricks.Dashboard.dashboard_idStringThe unique identifier of the dashboard.
Databricks.Dashboard.display_nameStringThe display name of the dashboard.
Databricks.Dashboard.warehouse_idStringThe associated warehouse.
Databricks.Dashboard.pathStringThe workspace path.
Databricks.Dashboard.create_timeDateWhen the dashboard was created.
Databricks.Dashboard.update_timeDateWhen the dashboard was last updated.

Command Example#

!databricks-dashboard-list

databricks-dashboard-create#


Creates a new Lakeview dashboard.

Base Command#

databricks-dashboard-create

Input#

Argument NameDescriptionRequired
display_nameThe display name of the dashboard.Required
warehouse_idThe warehouse to use.Required
parent_pathThe parent workspace path.Optional
serialized_dashboardThe dashboard definition as a JSON string.Optional

Context Output#

PathTypeDescription
Databricks.Dashboard.dashboard_idStringThe ID of the created dashboard.

Command Example#

!databricks-dashboard-create

databricks-dashboard-update#


Updates a Lakeview dashboard.

Base Command#

databricks-dashboard-update

Input#

Argument NameDescriptionRequired
dashboard_idThe ID of the dashboard to update.Required
display_nameNew display name.Optional
warehouse_idNew warehouse ID.Optional
serialized_dashboardNew dashboard definition as a JSON string.Optional

Context Output#

PathTypeDescription
Databricks.Dashboard.dashboard_idStringThe updated dashboard ID.

Command Example#

!databricks-dashboard-update

databricks-dashboard-delete#


Trashes a Lakeview dashboard.

Base Command#

databricks-dashboard-delete

Input#

Argument NameDescriptionRequired
dashboard_idThe ID of the dashboard to trash.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-dashboard-delete

databricks-dashboard-migrate#


Migrates a classic SQL dashboard to Lakeview.

Base Command#

databricks-dashboard-migrate

Input#

Argument NameDescriptionRequired
source_dashboard_idThe ID of the classic dashboard to migrate.Required

Context Output#

PathTypeDescription
Databricks.Dashboard.dashboard_idStringThe ID of the migrated dashboard.

Command Example#

!databricks-dashboard-migrate

databricks-dashboard-publish#


Publishes a draft Lakeview dashboard.

Base Command#

databricks-dashboard-publish

Input#

Argument NameDescriptionRequired
dashboard_idThe ID of the dashboard to publish.Required
warehouse_idThe warehouse to use for the published dashboard.Optional
embed_credentialsWhether to embed credentials. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-dashboard-publish

databricks-global-init-script-get#


Retrieves a global init script.

Base Command#

databricks-global-init-script-get

Input#

Argument NameDescriptionRequired
script_idThe ID of the init script.Required

Context Output#

PathTypeDescription
Databricks.GlobalInitScript.script_idStringThe unique identifier of the script.
Databricks.GlobalInitScript.nameStringThe name of the script.
Databricks.GlobalInitScript.positionNumberThe position in the execution order.
Databricks.GlobalInitScript.enabledBooleanWhether the script is enabled.
Databricks.GlobalInitScript.created_atDateWhen the script was created.
Databricks.GlobalInitScript.created_byStringWho created the script.
Databricks.GlobalInitScript.scriptStringThe base64-encoded script content.

Command Example#

!databricks-global-init-script-get script_id=abc123

databricks-global-init-script-list#


Lists all global init scripts.

Base Command#

databricks-global-init-script-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.GlobalInitScript.script_idStringThe unique identifier of the script.
Databricks.GlobalInitScript.nameStringThe name of the script.
Databricks.GlobalInitScript.positionNumberThe position in the execution order.
Databricks.GlobalInitScript.enabledBooleanWhether the script is enabled.
Databricks.GlobalInitScript.created_atDateWhen the script was created.
Databricks.GlobalInitScript.created_byStringWho created the script.

Command Example#

!databricks-global-init-script-list

databricks-global-init-script-create#


Creates a new global init script.

Base Command#

databricks-global-init-script-create

Input#

Argument NameDescriptionRequired
nameThe name of the script.Required
scriptBase64-encoded script content.Required
positionPosition in the execution order.Optional
enabledWhether the script is enabled. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
Databricks.GlobalInitScript.script_idStringThe ID of the created script.

Command Example#

!databricks-global-init-script-create

databricks-global-init-script-update#


Updates a global init script.

Base Command#

databricks-global-init-script-update

Input#

Argument NameDescriptionRequired
script_idThe ID of the script to update.Required
nameNew name for the script.Optional
scriptNew base64-encoded script content.Optional
positionNew position.Optional
enabledWhether the script is enabled. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-global-init-script-update

databricks-global-init-script-delete#


Deletes a global init script.

Base Command#

databricks-global-init-script-delete

Input#

Argument NameDescriptionRequired
script_idThe ID of the script to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-global-init-script-delete

databricks-ip-access-list-get#


Retrieves an IP access list.

Base Command#

databricks-ip-access-list-get

Input#

Argument NameDescriptionRequired
ip_access_list_idThe ID of the IP access list.Required

Context Output#

PathTypeDescription
Databricks.IPAccessList.list_idStringThe unique identifier of the list.
Databricks.IPAccessList.labelStringThe label of the list.
Databricks.IPAccessList.list_typeStringThe list type (ALLOW or BLOCK).
Databricks.IPAccessList.ip_addressesUnknownThe IP addresses in the list.
Databricks.IPAccessList.address_countNumberNumber of addresses in the list.
Databricks.IPAccessList.created_atDateWhen the list was created.
Databricks.IPAccessList.enabledBooleanWhether the list is enabled.

Command Example#

!databricks-ip-access-list-get

databricks-ip-access-list-list#


Lists all IP access lists.

Base Command#

databricks-ip-access-list-list

Input#

There are no input arguments for this command.

Context Output#

PathTypeDescription
Databricks.IPAccessList.list_idStringThe unique identifier of the list.
Databricks.IPAccessList.labelStringThe label of the list.
Databricks.IPAccessList.list_typeStringThe list type (ALLOW or BLOCK).
Databricks.IPAccessList.ip_addressesUnknownThe IP addresses in the list.
Databricks.IPAccessList.address_countNumberNumber of addresses in the list.
Databricks.IPAccessList.created_atDateWhen the list was created.
Databricks.IPAccessList.enabledBooleanWhether the list is enabled.

Command Example#

!databricks-ip-access-list-list

databricks-ip-access-list-create#


Creates a new IP access list.

Base Command#

databricks-ip-access-list-create

Input#

Argument NameDescriptionRequired
labelThe label for the list.Required
list_typeThe list type. Possible values are: ALLOW, BLOCK.Required
ip_addressesIP addresses or CIDR ranges.Required

Context Output#

PathTypeDescription
Databricks.IPAccessList.list_idStringThe ID of the created list.

Command Example#

!databricks-ip-access-list-create

databricks-ip-access-list-update#


Updates an IP access list.

Base Command#

databricks-ip-access-list-update

Input#

Argument NameDescriptionRequired
ip_access_list_idThe ID of the list to update.Required
labelNew label.Optional
list_typeNew list type. Possible values are: ALLOW, BLOCK.Optional
ip_addressesNew IP addresses or CIDR ranges.Optional
enabledWhether the list is enabled. Possible values are: true, false.Optional

Context Output#

There is no context output for this command.

Command Example#

!databricks-ip-access-list-update

databricks-ip-access-list-delete#


Deletes an IP access list.

Base Command#

databricks-ip-access-list-delete

Input#

Argument NameDescriptionRequired
ip_access_list_idThe ID of the list to delete.Required

Context Output#

There is no context output for this command.

Command Example#

!databricks-ip-access-list-delete