根据物理表名称创建数据集。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DsId |
string |
是 |
数据源 ID。 |
7AAB95D-*****-****-*4FC0C976 |
| TableName |
string |
是 |
表名称。 |
st_trd_user_purchase_day_inc |
| UserDefineCubeName |
string |
是 |
数据集名称。 |
test |
| WorkspaceId |
string |
是 |
工作空间 ID。 |
726bee5a-****-43e1-9a8e-b550f0120f35 |
| UserId |
string |
是 |
需要传入一个有权限创建数据集的 Quick BI 的 UserId,非您的阿里云账号 ID。 您可以调用 QueryUserInfoByAccount 接口,获取 UserId。 |
726bee5a-****-43e1-9a8e-b550f0120f35 |
| TargetDirectoryId |
string |
否 |
指定目录文件夹 ID。 |
asah-fsdfsf*****92342 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
F68B***********A3DF743 |
| Result |
string |
接口执行结果。取值范围:
|
true |
| Success |
boolean |
是否请求成功。取值范围:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "F68B***********A3DF743",
"Result": "true",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Internal.System.Error | An internal system error occurred. | 系统内部异常。 |
| 400 | Invalid.Parameter.Error | The parameter is invalid:%s. | 无效参数%s。 |
| 400 | Cube.Not.Exist | The Cube does not exist. | 数据集不存在。 |
| 400 | Invalid.User.Organization | The user is not in your organization. | 该用户不在您的组织中。 |
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | 空间不在组织内。 |
| 400 | Datasource.NotFound.Error | The specified data source does not exist: %s. | 数据源不存在:%s。 |
| 400 | DatasourceId.IsNull.Error | You must select a data source before selecting the table. | 必须选择数据源之后再选择表。 |
| 400 | Name.RegularExpression.Error | Name format validation failed. | 名称格式验证失败。 |
| 400 | NameExceeded.MaxLength.Error | The name cannot exceed %s characters in length. | 名称长度不能超过%s个字符。 |
| 400 | User.NotIn.Workspace | The user is not a member of the group workspace. | 该用户不在群空间中。 |
| 400 | Cube.DuplicatedName.Error | The dataset name already exists. Modify the name before saving. | 数据集名称已存在,请修改名称后再保存。 |
| 400 | Directory.NotExist.Error | The directory does not exist. | 文件夹不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。