cli icon indicating copy to clipboard operation
cli copied to clipboard

Add volume_path to the output for the volume object

Open ksummerlin opened this issue 6 months ago • 1 comments

Describe the issue

Add volume_path to the output of the volume object:

{
  "catalog_name": "abc_catalog",
  "schema_name": "abc_schema",
  "name": "abc_volume",
  "volume_path": "/Volumes/abc_catalog/abc_schema/abc_volume"
}

Once this is done, DABs can be changed to use it like this:

parameters: 
  - name: abc_volume_path
     default: ${resources.volumes.abc_volume_defn.volume_path}

Instead of:

default: /Volumes/${resources.volumes.abc_volume_defn.catalog_name}/${resources.volumes.abc_volume_defn.schema_name}/${resources.volumes.abc_volume_defn.name}

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Run databricks volumes list abc_catalog abc_schema
  2. Manually build the volume_path from the current output -- tedious.

Expected Behavior

Show the volume_path along with the other volume outputs

Actual Behavior

No volume_path provided, must be manually constructed from parts of the volume object.

With this provided in the output, DABs can then be updated to use something like this:

OS and CLI version

CLI: v0.255.0, any OS

Is this a regression?

No

ksummerlin avatar Jul 09 '25 21:07 ksummerlin

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

github-actions[bot] avatar Sep 30 '25 00:09 github-actions[bot]