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
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dms:CreateLakeHouseSpace | create | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SpaceName | string | Yes | The name of the workspace. | test_space |
Description | string | No | The description of the workspace. | test |
Mode | string | Yes | The mode in which the workspace runs. Valid values:
| 1 |
DwDbType | string | Yes | The type of the database. Valid values:
| 14 |
SpaceConfig | string | Yes | The configuration of the workspace. Valid values:
| {\"skipManualRunCheck\":true,\"skipPublishApprove\":true} |
DevDbId | string | Yes | The ID of the development database. You can call the ListDatabases or SearchDatabase operation to obtain the ID. | 2435**** |
ProdDbId | string | No | The ID of the production database. You can call the ListDatabases or SearchDatabase operation to obtain the ID. | 2442**** |
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. | 3*** |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|