{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ExportDesignModelTableDDLResult":{"description":"导出表DDL接口结果。","properties":{"data":{"description":"返回的数据信息。","properties":{"value":{"description":"接口导出的表的DDL语句。","example":"CREATE TABLE IF NOT EXISTS ${database}.class (\n class_id BIGINT NOT NULL comment '1111',\n class_name VARCHAR(1024) NOT NULL comment '2222',\n teacher VARCHAR(255) comment '3333'\n,\nPRIMARY KEY(class_id)\n);\nALTER TABLE ${database}.pd_test COMMENT '无';\nCREATE TABLE IF NOT EXISTS ${database}.logic_{}$A_2 (\n id VARCHAR(255) \n);\nALTER TABLE ${database}.logic_{}$A_2 COMMENT 'aaa';","type":"string"}},"type":"object"}},"type":"object"}},"description":null,"group_id":"23bb69798aaf409da161a43a90617121","host":"dayu.cn-north-4.myhuaweicloud.com","id":"efbeac9da9194aeabc85de6eddca7953","info_version":"v1","method":"get","name":"ExportDesignModelTableDdl","parameters":{"contextTypeParam":{"description":"默认值:application/json;charset=UTF-8\n可选,有Body体的情况下必选,没有Body体则无需填写和校验。","in":"header","maxLength":64,"minLength":3,"name":"Content-Type","required":false,"type":"string"},"modelIdParam":{"description":"所属关系建模的模型ID,填写String类型替代Long类型。","in":"path","name":"model_id","required":true,"type":"string"},"tenantIdParam":{"description":"项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。","in":"path","maxLength":64,"minLength":3,"name":"project_id","required":true,"type":"string"},"tenantXIdParam":{"description":"项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。\n\n多project场景采用AK/SK认证的接口请求,则该字段必选。","in":"header","maxLength":64,"minLength":3,"name":"X-Project-Id","required":false,"type":"string"},"tokenParam":{"description":"IAM Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)\n使用Token认证时必选。","in":"header","maxLength":4096,"minLength":0,"name":"X-Auth-Token","required":true,"type":"string"},"workspaceParam":{"description":"工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。","in":"header","maxLength":64,"minLength":3,"name":"workspace","required":true,"type":"string"}},"paths":{"/v2/{project_id}/design/workspaces/{model_id}/export":{"get":{"description":"根据模型ID导出指定表的DDL语句。","operationId":"ExportDesignModelTableDdl","parameters":[{"$ref":"#/parameters/tokenParam"},{"$ref":"#/parameters/workspaceParam"},{"$ref":"#/parameters/tenantIdParam"},{"$ref":"#/parameters/tenantXIdParam"},{"$ref":"#/parameters/contextTypeParam"},{"$ref":"#/parameters/modelIdParam"},{"collectionFormat":"multi","description":"待导出的表名。","in":"query","items":{"type":"string"},"name":"tb_names","required":false,"type":"array","uniqueItems":true},{"default":true,"description":"导出的DDL包不包括数据库名。","in":"query","name":"with_db","required":false,"type":"boolean"}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"Success,返回data数据是DDL文本信息。","schema":{"$ref":"#/definitions/ExportDesignModelTableDDLResult"}},"400":{"$ref":"#/responses/400"},"401":{"$ref":"#/responses/401"},"403":{"$ref":"#/responses/403"}},"summary":"导出模型中表的DDL语句","tags":["关系建模接口"],"x-api-type":"doc-open","x-is-registered":"Y","x-request-examples-description-1":"导出模型ID为1217123720355803136中表名为class、trl_aSCb01c的表的DDL,DDL中包含库名。","x-request-examples-url-1":"GET https://{endpoint}/v2/{project_id}/design/workspaces/1217123720355803136/export?with_db=true&tb_names=class&tb_names=trl_aSCb01c","x-support-sdk":"Y"}}},"product_short":"DataArtsStudio","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"导出模型中表的DDL语句","tags":"关系建模接口","uri":null,"version":"2.0"}