All Products
Search
Document Center

Data Management:CreateLakeHouseSpace

Last Updated:Oct 21, 2024

Creates a workspace for data warehouse development in Data Management (DMS).

Operation description

  • The workspace name must be unique within a tenant. If a workspace with the same name already exists within the tenant, the call may fail.
  • You can call the GetLhSpaceByName operation to query whether a workspace with a specific name already exists as a DMS administrator or database administrator (DBA).

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SpaceNamestringYes

The name of the workspace.

test_space
DescriptionstringNo

The description of the workspace.

test
ModestringYes

The mode in which the workspace runs. Valid values:

  • 0: basic mode. This mode is unavailable.
  • 1: standard mode.
1
DwDbTypestringYes

The type of the database. Valid values:

  • 14: AnalyticDB for MySQL
  • 18: AnalyticDB for PostgreSQL
14
SpaceConfigstringYes

The configuration of the workspace. Valid values:

  • skipManualRunCheck: No security rule check is required in the trial run phase.
  • skipPublishApprove: No approval is required for publishing and O&M.
{\"skipManualRunCheck\":true,\"skipPublishApprove\":true}
DevDbIdstringYes

The ID of the development database. You can call the ListDatabases or SearchDatabase operation to obtain the ID.

2435****
ProdDbIdstringNo

The ID of the production database. You can call the ListDatabases or SearchDatabase operation to obtain the ID.

2442****
TidlongNo

The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID.

3***

Response parameters

ParameterTypeDescriptionExample
object
SpaceIdlong

The ID of the workspace.

24
RequestIdstring

The ID of the request.

7FAD400F-7A5C-4193-8F9A-39D86C4F0231
ErrorCodestring

The error code returned if the request fails.

InvalidParameterValid
ErrorMessagestring

The error message returned if the request fails.

Invalid parameters: space name,mode,prod db id,db type,config.
Successboolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
true

Examples

Sample success responses

JSONformat

{
  "SpaceId": 24,
  "RequestId": "7FAD400F-7A5C-4193-8F9A-39D86C4F0231",
  "ErrorCode": "InvalidParameterValid",
  "ErrorMessage": "Invalid parameters: space name,mode,prod db id,db type,config.",
  "Success": true
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history