CreateCubeBySql - 根据自定义sql创建数据集

根据自定义sql创建数据集。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
CustomSqlstring

自定义 sql 语句。

select * from qqq
Captionstring

自定义数据集名称。

B端_订单
DsIdstring

数据源 ID。

7AAB95D-*****-****-*4FC0C976
WorkspaceIdstring

工作空间 ID.

95296e95-ca89-4c7d-8af9-dedf0ad0****
UserIdstring

需要传入一个有权限创建数据集的 Quick BI 的 UserId,非您的阿里云账号 ID。 您可以调用 QueryUserInfoByAccount 接口,获取 UserId。

asdaf-asda*****asd

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

05739b************02522b9
Resultstring

接口执行结果。取值范围:

  • true:请求成功
  • false:请求失败
true
Successboolean

是否请求成功。取值范围:

  • true:请求成功
  • false:请求失败
true

示例

正常返回示例

JSON格式

{
  "RequestId": "05739b************02522b9",
  "Result": true,
  "Success": true
}

错误码

HTTP status code错误码错误信息描述
400Internal.System.ErrorAn internal system error occurred.系统内部异常。
400Invalid.User.OrganizationThe user is not in your organization.该用户不在您的组织中。
400User.NotIn.WorkspaceThe user is not in this workspace.该用户不在此空间中。
400Invalid.WorkspaceThe workspace is not owned by the organization.该空间不在组织内。
400Datasource.NotFound.ErrorThe specified data source does not exist: %s.数据源不存在:%s。
400DatasourceId.IsNull.ErrorYou must select a data source before selecting the table.必须选择数据源之后再选择表。
400Name.RegularExpression.ErrorName format validation failed.名称格式验证失败。
400NameExceeded.MaxLength.ErrorThe name cannot exceed %s characters in length.名称长度不能超过%s个字符。
400User.NotIn.WorkspaceThe user is not a member of the group workspace.该用户不在群空间中。
400Cube.DuplicatedName.ErrorThe dataset name already exists. Modify the name before saving.数据集名称已存在,请修改名称后再保存。
400Directory.NotExist.ErrorThe directory does not exist.文件夹不存在。
400Xengnie.TaskExecute.ErrorFail to execute task %s.任务执行失败 %s。
400Datasource.Sql.ExecuteFailedFailed to execute the SQL statement in the data source.数据源执行SQL失败。

访问错误中心查看更多错误码。