查询指定数据集的信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DatasetId | string | 是 | 数据集唯一ID。 | a201c85c-****** |
返回参数
示例
正常返回示例
JSON
格式
{
"Success": true,
"RequestId": "a4d1a221d-41za1-****",
"Result": {
"GmtModify": "1629450382000",
"DsName": "odps",
"DsId": "a201c85c-******",
"OwnerName": "大娃",
"WorkspaceName": "测试空间",
"OwnerId": "b8494aab26124*****",
"DatasetName": "opds_40",
"RowLevel": true,
"WorkspaceId": "420abef4-a79b-4289-b12****",
"CustimzeSql": true,
"GmtCreate": "1629450382000",
"DsType": "odps",
"DatasetId": "a201c85c-******",
"CubeTableList": [
{
"TableName": "viewdasb8494aab2612473cb74992159fe****",
"DatasourceId": "dfefd7f4-fc6e-42c9-b4******",
"DsType": "maxcompute",
"UniqueId": "7a62530b36",
"FactTable": true,
"Caption": "odps_40",
"Customsql": true,
"Sql": "select * from ****"
}
],
"DimensionList": [
{
"DataType": "string",
"Expression": "example_expression",
"FactColumn": "city",
"DimensionType": "group_dimension",
"Granularity": "example_granularity",
"RefUid": "308f7****",
"Caption": "city",
"Uid": "a69774***",
"TableUniqueId": "7a62530***"
}
],
"MeasureList": [
{
"DataType": "string",
"Expression": "example_expression",
"MeasureType": "calculate_measure",
"FactColumn": "profit_amt",
"Caption": "profit_amt",
"TableUniqueId": "7a62530b36",
"Uid": "88b680****"
}
],
"Directory": {
"PathId": "88b680****",
"PathName": "测试目录",
"Name": "测试目录",
"Id": "a3eecab7-618d-4f9f-*****"
}
}
}
错误码
Http code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Instance.Expired | Your instance has expired. | 您的购买实例已经过期。 |
400 | Instance.Not.Exist | The specified instance does not exist. | 暂未匹配到您的购买实例。 |
400 | Access.Forbidden | Access forbidden. Your instance version or access key is not allowed to call the API operation. | - |
400 | Invalid.Organization | The specified organizational unit does not exist. | 该组织不存在。 |
400 | User.Not.In.Organization | The specified user is not in the organizational unit. | 该用户不在组织中。 |
400 | Cube.Not.Exist | The Cube does not exist. | 数据集不存在。 |
400 | Not.WorkspaceCube.Error | You can only use the %s dataset of the current workspace. | 只能使用当前工作空间的数据集。 |
400 | UserInfo.Error | The personal information is invalid. | 个人信息不合法。 |
400 | Decryption.Error | An error occurred while decoding. | 解密失败。 |
400 | Invalid.Param.Error | The parameter is invalid. | 无效参数。 |
400 | Datasource.UserPermission.Error | You do not have datasource authorization. | 当前用户没有数据源权限。 |
400 | System.Param.empty | This error code has been discarded. | - |
400 | CubeMeta.ToXml.Error | An error occurred while converting the data object to the XML format. | 数据对象转换XML失败。 |
400 | Datasource.NotFound.Error | The specified data source does not exist: %s. | 数据源不存在:%s。 |
400 | Cube.ParseToXml.Error | An error occurred while parsing a dataset object to XML format. | 将多维数据集对象解析为XML错误。 |
400 | DatasourceId.IsNull.Error | You must select a data source before selecting the table. | 必须选择数据源之后再选择表。 |
400 | Invalid.Parameter.Error | The parameter is invalid:%s. | 无效参数%s。 |
400 | Internal.System.Error | An internal system error occurred. | 系统内部异常。 |
400 | Invalid.Parameter | An error occurred while verifying parameters. | 参数验证失败。 |
400 | Invalid.User.Admin | You are not an administrator of this organization. | 没有权限,您不是组织管理员。 |
400 | ApiUser.Not.Exists | The specified user does not exist. | 用户不存在。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史