Help Center/ AI DataLake/ API Reference/ Appendix/ Obtaining a Workspace ID
Updated on 2026-11-06 GMT+08:00

Obtaining a Workspace ID

Obtaining a Workspace ID from the Console

When calling APIs, some URLs require a workspace ID (workspace_id). The steps to obtain a workspace ID are as follows:

  1. Log in to the AI DataLake console.
  2. In the navigation pane, click the workspace area. Select Workspace Management from the drop-down list.
    Figure 1 Workspace Management

  3. On the Workspaces page, locate the workspace ID in the Workspace Name/ID column.
Figure 2 Viewing the workspace ID

Obtaining a Workspace ID by Calling an API

The workspace ID can be obtained by calling the Listing Workspaces API.

The API for obtaining the workspace ID is GET https://{Endpoint}/v2/workspaces, where {Endpoint} is the IAM endpoint. For details, see Endpoints. For API authentication, see Authentication.

The response example is as follows, where id is the workspace ID corresponding to name.

{
  "total" : 3,
  "workspaces" : [ {
    "id" : "6ccab7b6-fe3a-xxxx-xxxx-be37323bd254",
    "name" : "AIDataLake-Test-Workspace",
    "description" : "AI DataLake test workspace",
    "create_time" : "2026-06-23T12:51:21.000+00:00",
    "create_domain_name" : "test_domain",
    "create_user_name" : "test_user",
    "metastore_id" : "0ba8919e-f52c-xxxx-xxxx-9ad7ecdb5ed9",
    "enterprise_project_id" : "0",
    "tags" : [ {
      "key" : "environment",
      "value" : "test"
    }, {
      "key" : "creator",
      "value" : "postman-script"
    }, {
      "key" : "purpose",
      "value" : "automation-testing"
    } ]
  }, {
    "id" : "61ff9cae-2e9e-xxxx-xxxx-fc4e199c83be",
    "name" : "AIDataLake-pool",
    "description" : "",
    "create_time" : "2026-06-22T08:27:32.000+00:00",
    "create_domain_name" : "test_domain",
    "create_user_name" : "test_user",
    "metastore_id" : "99543e6a-1df6-xxxx-xxxx-1a2f185f0968",
    "enterprise_project_id" : "0",
    "tags" : [ ]
  }, {
    "id" : "e89e105f-3aab-xxxx-xxxx-da1d2512a7a8",
    "name" : "AutoTest",
    "description" : "Billing automation test",
    "create_time" : "2026-05-14T08:53:45.000+00:00",
    "create_domain_name" : "test_domain",
    "create_user_name" : "test_user",
    "metastore_id" : "99543e6a-1df6-xxxx-xxxx-1a2f185f0968",
    "enterprise_project_id" : "0",
    "tags" : [ ]
  } ]
}