Create workspace
Creates a workspace and returns the workspaceId, supporting offline mode (DDL text) and online mode (database connection).
Supported dbType values
| dbType | Database |
|---|---|
| mysql | MySQL |
| mysql-rds | RDS MySQL |
| gaussdb-mysql | GaussDB for MySQL |
| goldendb | GoldenDB |
| tdsqlx-mysql | TDSQL MySQL (Distributed) |
| tdsql-mysql | TDSQL MySQL (Centralized) |
| oceanbase-mysql | OceanBase (MySQL Mode) |
| oceanbase-oracle | OceanBase (Oracle Mode) |
| polardbx | PolarDB-X 2.0 |
| postgresql | PostgreSQL |
| opengauss | OpenGauss |
| kingbase-es | Kingbase |
| mogdb | MogDB |
| gaussdbx | GaussDB (Distributed) |
| gaussdb-dws | GaussDB for DWS |
| oracle | Oracle |
| tdsqlx-pg | TDSQL PostgreSQL (Distributed) |
| tdsql-pg | TDSQL PostgreSQL (Centralized) |
| mssql | SQLServer |
| db2 | DB2 |
| dameng | Dameng |
Authorizations
Activation code, obtained via the /getUserKey endpoint
Body
Create workspace request
Activation code
"CB698418-88B25371-67F15F01-XXXXXXXX"
Workspace mode: online / offline
online, offline "offline"
Database type displayCode, see the dbType table above for supported values
"mysql"
Database host (required in online mode)
"localhost"
Database port (required in online mode)
"3306"
Schema list, comma-separated, case-sensitive (required for pg/opengauss/oracle)
Database name (required in online mode)
"pawsql"
Database username (required in online mode)
"root"
Database password (required in online mode)
"password"
DDL text (required in offline mode)
"CREATE TABLEorganization(org_idbigint(20) NOT NULL);"