Updated on 2026-11-06 GMT+08:00

Creating a Workspace

Overview

This section describes the complete process of creating a workspace, including creating a workspace and viewing the workspace, by calling APIs.

This process assumes that the end tenant has been authorized on the console to use AI DataLake and has created a LakeFormation instance. For how to call this API, see Calling an API.

Prerequisites

  • AI DataLake authorization has been completed.
  • The LakeFormation instance ID has been obtained.

Procedure

  • API information

    URI format: POST /v2/workspaces

    For details, see Creating a Workspace.

  • Request example

    POST /v2/workspaces

    Request body:
    { 
       "name" : "AIDataLake", 
       "description" : "AIDataLake-description", 
       "metastore_id" : "3dca9242-8434-xxxx-xxxx-20ddc23884fb", 
       "enterprise_project_id" : "01049549-82cd-xxxx-xxxx-ddb94350c125", 
       "tags" : [ { 
         "key" : "key1", 
         "value" : "value1" 
       }, { 
         "key" : "key2", 
         "value" : "value2" 
       } ] 
     }
  • Response example
    {
      "id" : "61ff9cae-2e9e-xxxx-xxxx-fc4e199c83be",
      "name" : "AIDataLake",
      "description" : "AIDataLake-description",
      "create_time" : "2026-06-22T08:27:32.000+00:00",
      "create_domain_name" : "test_domain",
      "create_user_name" : "test_user",
      "metastore_id" : "3dca9242-8434-xxxx-xxxx-20ddc23884fb",
      "enterprise_project_id" : "01049549-82cd-xxxx-xxxx-ddb94350c125",
      "tags" : [ {
        "key" : "key1",
        "value" : "value1"
      }, {
        "key" : "key2",
        "value" : "value2"
      } ]
    }

Viewing a Workspace

  • API information

    URI format: GET /v2/workspaces/{workspace_id}

    For details, see Querying Details of a Workspace.

  • Request example

    GET /v2/workspaces/{workspace_id}

    {workspace_id}: ID of the workspace to be obtained.

  • Response example
    {
      "id" : "61ff9cae-2e9e-xxxx-xxxx-fc4e199c83be",
      "name" : "AIDataLake",
      "description" : "AIDataLake-description",
      "create_time" : "2026-06-22T08:27:32.000+00:00",
      "create_domain_name" : "test_domain",
      "create_user_name" : "test_user",
      "metastore_id" : "3dca9242-8434-xxxx-xxxx-20ddc23884fb",
      "enterprise_project_id" : "01049549-82cd-xxxx-xxxx-ddb94350c125",
      "tags" : [ {
        "key" : "key1",
        "value" : "value1"
      }, {
        "key" : "key2",
        "value" : "value2"
      } ]
    }