---
title: Get identifiers for workspace objects
description: Learn how to get your workspace instance name and ID, cluster URLs, notebook URLs, model IDs, and job URLs in Databricks.
canonical_url: https://docs.databricks.com/aws/en/workspace/workspace-details
---

# Get identifiers for workspace objects

This article explains how to get workspace, classic compute, dashboard, directory, model, notebook, and job identifiers and URLs in Databricks.

## <a id="workspace-url" />Workspace instance names, URLs, and IDs

An *instance name* is assigned to each Databricks deployment. To segregate the workload and grant access to relevant users only, usually Databricks customers create separate instances for development, staging, and production. The instance name is the first part of the URL when you log into your Databricks deployment:

![Workspace](https://docs.databricks.com/aws/en/images/workspace/workspace-aws.png)

If you log into `https://cust-success.cloud.databricks.com/`, then:

* The *workspace URL* is `https://cust-success.cloud.databricks.com/`.
* The *instance name* is `cust-success.cloud.databricks.com`.

A Databricks *[workspace](https://docs.databricks.com/aws/en/workspace/index.md)* is where the Databricks platform runs and where you can create Spark clusters and schedule workloads. Some types of workspaces have a unique workspace ID. If there is `o=` in the deployment URL, for example, `https://<databricks-instance>/?o=6280049833385130`, the random number after `o=` is the Databricks workspace ID. Here the workspace ID is `6280049833385130`. If there is no `o=` in the deployment URL, the workspace ID is `0`.

### <a id="legacy-url" />Legacy regional URL

> [!IMPORTANT]
>
> Avoid legacy regional URLs. They:
>
> * May not work with new workspaces.
> * Are less reliable and slower than per-workspace URLs.
> * Can break features that require workspace IDs.

The legacy regional URL is composed of the region where the Databricks workspace is deployed plus the domain `cloud.databricks.com`, for example, `https://oregon.cloud.databricks.com/`.

* If you log in to a legacy regional URL like `https://oregon.cloud.databricks.com/`, the instance name is `oregon.cloud.databricks.com`.
* The workspace ID appears in the URL only after you have logged in using a legacy regional URL. It appears after the `o=`. In the URL `https://<databricks-instance>/?o=6280049833385130`, the workspace ID is `6280049833385130`.

## <a id="cluster-url" />Compute resource URL and ID

Databricks [compute resources](https://docs.databricks.com/aws/en/compute/index.md) provide a unified platform for various use cases such as running production ETL pipelines, streaming analytics, ad-hoc analytics, and machine learning. Each classic compute resource has a unique ID called the cluster ID. This applies to both all-purpose and job clusters, but not serverless compute. You need the cluster ID to get the details of a cluster using the REST API.

To get the cluster ID, click ![compute icon](https://docs.databricks.com/aws/en/images/icons/compute-icon.png) **Compute** on the sidebar and then select a cluster name. The cluster ID is the number after the `/clusters/` component in the URL of this page.

```
https://<databricks-instance>/compute/clusters/<cluster-id>
```

In the following screenshot, the cluster ID is `0807-000654-abcdefgh`:

![Cluster URL](https://docs.databricks.com/aws/en/images/workspace/aws-compute.png)

## <a id="workspace-dashboard-url" />Dashboard URL and ID

An AI/BI [dashboard](https://docs.databricks.com/aws/en/dashboards/index.md) is a presentation of data visualizations and commentary. Each dashboard has a unique ID. You can use this ID to construct direct links that include preset filter and parameter values, or access the dashboard using the REST API.

* Example dashboard URL:

  ```
  https://cust-success.cloud.databricks.com/sql/dashboardsv3/01ef9214fcc7112984a50575bf2b460f
  ```

- Example dashboard ID: `01ef9214fcc7112984a50575bf2b460f`

## <a id="workspace-notebook-url" />Notebook URL and ID

A *[notebook](https://docs.databricks.com/aws/en/notebooks/index.md)* is a web-based interface to a document that contains runnable code, visualizations, and narrative text. Notebooks are one interface for interacting with Databricks. Each notebook has a unique ID. The notebook URL has the notebook ID, hence the notebook URL is unique to a notebook. It can be shared with anyone on Databricks platform with permission to view and edit the notebook. In addition, each notebook command (cell) has a different URL.

To find a notebook URL or ID, open a notebook. To find a cell URL, click the contents of the command.

* Example notebook URL:

  ```
  https://cust-success.cloud.databricks.com/#notebook/333096
  ```

* Example notebook ID: `333096`.

* Example command (cell) URL:

  ```
  https://cust-success.cloud.databricks.com/#notebook/333096/command/333099
  ```

## Folder ID

A *[folder](https://docs.databricks.com/aws/en/workspace/workspace-browser.md#folders)* is a directory used to store files that can used in the Databricks workspace. These files can be notebooks, libraries or subfolders. There is a specific id associated with each folder and each individual sub-folder. The Permissions API refers to this id as a directory\_id and is used in setting and updating permissions for a folder.

To retrieve the directory\_id , use the Workspace API:

```bash
curl -n -X GET -H 'Content-Type: application/json' -d '{"path": "/Users/me@example.com/MyFolder"}' \
https://<databricks-instance>/api/2.0/workspace/get-status
```

This is an example of the API call response:

```json
{
  "object_type": "DIRECTORY",
  "path": "/Users/me@example.com/MyFolder",
  "object_id": 123456789012345
}
```

## Model ID

A model refers to an [MLflow registered model](https://docs.databricks.com/aws/en/machine-learning/manage-model-lifecycle/index.md), which lets you manage MLflow Models in production through stage transitions and versioning. The registered model ID is required for changing the permissions on the model programmatically through the [Permissions API](https://docs.databricks.com/api/workspace/permissions).

To get the ID of a registered model, you can use the [Workspace API](https://docs.databricks.com/api/workspace/introduction) endpoint `mlflow/databricks/registered-models/get`. For example, the following code returns the registered model object with its properties, including its ID:

```bash
curl -n -X GET -H 'Content-Type: application/json' -d '{"name": "model_name"}' \
https://<databricks-instance>/api/2.0/mlflow/databricks/registered-models/get
```

The returned value has the format:

```json
{
  "registered_model_databricks": {
    "name": "model_name",
    "id": "ceb0477eba94418e973f170e626f4471"
  }
}
```

## Job URL and ID

A *[job](https://docs.databricks.com/aws/en/jobs/index.md)* is a way of running a notebook or JAR either immediately or on a scheduled basis.

To get a job URL, click ![Jobs Icon](https://docs.databricks.com/aws/en/images/icons/jobs-icon.png) **Jobs & Pipelines** on the sidebar and click a job name. The job ID appears after `/jobs/` in the URL. Use the job URL to navigate to a job and its run history. To link directly to a specific run, for example to share in a support ticket, use the run URL instead. See [Job run URL and ID](https://docs.databricks.com/aws/en/workspace/workspace-details.md#job-run-url).

In the following screenshot, the job URL is:

```
https://<workspace-name>.cloud.databricks.com/jobs/739153693773
```

In this example, the job ID is `739153693773`.

![Job URL](https://docs.databricks.com/aws/en/images/workspace/aws-jobs.png)

## <a id="job-run-url" />Job run URL and ID

A single [job](https://docs.databricks.com/aws/en/jobs/index.md) can have many runs. Each run has its own unique *run ID* and its own URL, which are distinct from the job ID and job URL. When you share a link to a specific run, for example, in a support ticket, use the run URL rather than the job URL so the recipient opens the correct run.

The run URL has the format:

```
https://<databricks-instance>/jobs/<job-id>/runs/<run-id>
```

To find the run ID or URL in the workspace UI:

* On the **Runs** tab for a job, click the link in the **Start time** column to open the **Job run details** page. The run ID appears in the browser address bar after `/runs/`. Copy the address to share the run.
* On the **Job run details** page, the URL in the address bar contains both the job ID and the run ID in the form `/jobs/<job-id>/runs/<run-id>`.

To get the run ID or URL programmatically:

* **Jobs API**: Call the [Get a single job run](https://docs.databricks.com/api/workspace/jobs/getrun) endpoint. The response includes `run_id` and `run_page_url`, which is the direct UI link to the run.
* **System tables**: The `system.lakeflow.job_run_timeline` table includes both `job_id` and `run_id` columns. See [Jobs system table reference](https://docs.databricks.com/aws/en/admin/system-tables/jobs.md).

> [!NOTE]
>
> For runs triggered by another job, for example a task that uses the [**Run Job**](https://docs.databricks.com/aws/en/jobs/tasks/run-job.md) task type, the `parent_run_id` field identifies the parent run. See [Add notifications on a job](https://docs.databricks.com/aws/en/jobs/notifications.md).
