更新时间:2024-05-08 GMT+08:00
分享

查看维度颗粒度

功能介绍

查询维度颗粒度,依据tableId查询涉及所有维度,不传tableId查询所有维度组颗粒度。

调用方法

请参见如何调用API

URI

GET /v2/{project_id}/design/dimension/groups

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID,获取方法请参见项目ID和账号ID

最小长度:3

最大长度:64

表2 Query参数

参数

是否必选

参数类型

描述

table_id

String

关联表的ID,填写String类型替代Long类型。

biz_type

String

按业务类型查询,可选业务类型有:ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、TIME_CONDITION(时间限定)、DIMENSION_LOGIC_TABLE(维度表)、FACT_LOGIC_TABLE(事实表)、AGGREGATION_LOGIC_TABLE(汇总表)、TABLE_MODEL(关系建模表)、CODE_TABLE(码表)、STANDARD_ELEMENT)(数据标准)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)、SUBJECT(主题)、ATOMIC_METRIC(原子指标(新))、DERIVED_METRIC(衍生指标(新))、COMPOSITE_METRIC(复合指标(新))。

limit

Integer

每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。

最大值:100

缺省值:50

offset

Integer

查询起始坐标,即跳过X条数据,仅支持0或limit的整数倍,不满足则向下取整,默认值0。

缺省值:0

请求参数

表3 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

IAM Token,通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值) 使用Token认证时必选。

最小长度:0

最大长度:4096

workspace

String

工作空间ID,获取方法请参见实例ID和工作空间ID

最小长度:3

最大长度:64

X-Project-Id

String

项目ID,获取方法请参见项目ID和账号ID

多project场景采用AK/SK认证的接口请求,则该字段必选。

最小长度:3

最大长度:64

Content-Type

String

默认值:application/json;charset=UTF-8 可选,有Body体的情况下必选,没有Body体则无需填写和校验。

最小长度:3

最大长度:64

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

data

data object

data,统一的返回结果的最外层数据结构。

表5 data

参数

参数类型

描述

value

value object

value,统一的返回结果的外层数据结构。

表6 value

参数

参数类型

描述

main_table

FactLogicTableVO object

事实表。

dimension_tables

Array of DimensionLogicTableVO objects

维度。

表7 FactLogicTableVO

参数

参数类型

描述

id

String

事实表ID,填写String类型替代Long类型。

tb_name

String

表名称。

最大长度:600

tb_logic_name

String

逻辑实体名。

最大长度:200

l1_id

String

主题域分组ID,只读,填写String类型替代Long类型。

l2_id

String

主题域ID。

l3_id

String

业务对象guid,填写String类型替代Long类型。

description

String

描述。

最大长度:600

dw_name

String

数据连接名称,只读,创建和更新时无需填写。

owner

String

资产责任人。

create_by

String

创建人。

queue_name

String

dli数据连接执行sql所需的队列,数据连接类型为DLI时必须。

dw_id

String

数据连接ID。

db_name

String

库名。

tb_id

String

数据表ID,只读。

dim_table_ids

Array of strings

关联维度表ID。

reversed

Boolean

是否是逆向的。

缺省值:false

partition_conf

String

分区表达式。

dirty_out_switch

Boolean

异常数据输出开关。

缺省值:false

dirty_out_database

String

异常数据输出库。

dirty_out_prefix

String

异常表前缀。

dirty_out_suffix

String

异常表后缀。

schema

String

DWS类型需要。

distribute

String

DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值:

  • HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN

  • REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据

distribute_column

String

DISTRIBUTE BY HASH column.

table_type

String

表类型。

status

String

实体的发布状态,只读,创建和更新时无需填写。 枚举值:

  • DRAFT: 草稿

  • PUBLISH_DEVELOPING: 发布待审核

  • PUBLISHED: 已发布

  • OFFLINE_DEVELOPING: 下线待审核

  • OFFLINE: 已下线

  • REJECT: 已驳回

tb_guid

String

表发布后,创建的数据目录技术资产guid,只读,创建和更新时无需填写。

tb_logic_guid

String

表发布后,创建的数据目录业务资产guid,只读,创建和更新时无需填写。

dw_type

String

数据连接类型,对应表所在的数仓类型,取值可以为DLI、DWS、MRS_HIVE、POSTGRESQL、MRS_SPARK、CLICKHOUSE、MYSQL、ORACLE和DORIS等。

l1

String

主题域分组中文名,只读,创建和更新时无需填写。

l2

String

主题域中文名,只读,创建和更新时无需填写。

l3

String

业务对象中文名,只读,创建和更新时无需填写。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

approval_info

ApprovalVO object

审批信息,只读参数。业务对象最近一次的审批信息,包括审批的业务详情、审核人信息、审核时间等。

new_biz

BizVersionManageVO object

业务版本管理,只读。

dimensions

Array of FactTableAttributeVO objects

事实表维度信息,只读。

attributes

Array of FactTableAttributeVO objects

事实表事实属性信息,只读。

mappings

Array of TableMappingVO objects

表映射信息。

measures

Array of FactTableAttributeVO objects

事实表度量信息,只读。

table_attributes

Array of FactTableAttributeVO objects

事实表所有属性。

configs

String

其他配置

最大长度:1024

physical_table

String

生产环境创建表状态

dev_physical_table

String

开发环境创建表状态

technical_asset

String

技术资产同步状态,只读。

business_asset

String

业务资产同步状态,只读。

meta_data_link

String

资产关联状态,只读。

data_quality

String

质量作业状态,只读。

summary_status

String

同步整体状态,只读。

quality_id

String

质量ID,填写String类型替代Long类型。

alias

String

别名。

self_defined_fields

Array of SelfDefinedFieldVO objects

自定义项。

obs_location

String

外表路径

最大长度:1024

dev_version

String

开发环境版本,填写String类型替代Long类型。

prod_version

String

生产环境版本,填写String类型替代Long类型。

dev_version_name

String

开发环境版本名称

prod_version_name

String

生产环境版本名称

env_type

String

开发生产环境类型。 枚举值:

  • INVALID_TYPE: 无效环境

  • DEV_TYPE: 开发环境

  • PROD_TYPE: 生产环境

  • DEV_PROD_TYPE: 开发生产环境

secrecy_levels

Array of SecrecyLevelVO objects

密级

表8 FactTableAttributeVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

fact_logic_table_id

String

所属事实表ID,只读,填写String类型替代Long类型。

ordinal

Integer

序号。

dimension_id

String

维度ID,填写String类型替代Long类型。

role

String

维度角色。

最大长度:200

dimension

DimensionVO object

dimension_id对应的维度信息,只读。

is_primary_key

Boolean

是否主键。

缺省值:false

is_partition_key

Boolean

是否分区键。

缺省值:false

is_foreign_key

Boolean

是否外键,只读。

缺省值:false

secrecy_levels

Array of SecrecyLevelRecordVO objects

密级

description

String

描述。

最大长度:600

data_type

String

字段类型。

domain_type

String

字段类型所属域。 枚举值:

  • NUMBER: 数字类型

  • STRING: 字符类型

  • DATETIME: 日期类型

  • BLOB: 大对象(BLOB)

  • OTHER: 其它类型

data_type_extend

String

数据类型扩展字段。

最大长度:50

name_en

String

英文名。

最大长度:600

name_ch

String

中文名。

最大长度:200

not_null

Boolean

是否不为空。

缺省值:false

attribute_type

String

属性字段类型(FACT_DIMENSION,FACT_ATTRIBUTE,FACT_MEASURE)。

stand_row_id

String

关联的数据标准的ID,填写String类型替代Long类型。

stand_row_name

String

关联的数据标准名称,只读。

最大长度:600

quality_infos

Array of QualityInfoVO objects

质量信息,只读。

alias

String

别名。

self_defined_fields

Array of SelfDefinedFieldVO objects

自定义项。

表9 DimensionVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

name_en

String

字段名。

最大长度:200

dimension_type

String

维度类型。 枚举值:

  • COMMON: 普通维度

  • LOOKUP: 码表维度

  • HIERARCHIES: 层级维度

缺省值:COMMON

name_ch

String

业务属性。

最大长度:200

description

String

描述。

最大长度:600

create_by

String

创建人。

update_by

String

更新人。

code_table_id

String

引用码表ID,填写String类型替代Long类型。

code_table

CodeTableVO object

引用码表,只读。

l1_id

String

主题域分组ID,只读,填写String类型替代Long类型。

l2_id

String

主题域ID。

l3_id

String

业务对象ID,填写String类型替代Long类型。

hierarchies

Array of DimensionHierarchiesVO objects

层级属性。

status

String

实体的发布状态,只读,创建和更新时无需填写。 枚举值:

  • DRAFT: 草稿

  • PUBLISH_DEVELOPING: 发布待审核

  • PUBLISHED: 已发布

  • OFFLINE_DEVELOPING: 下线待审核

  • OFFLINE: 已下线

  • REJECT: 已驳回

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

approval_info

ApprovalVO object

审批信息,只读参数。业务对象最近一次的审批信息,包括审批的业务详情、审核人信息、审核时间等。

new_biz

BizVersionManageVO object

业务版本管理,只读。

l1

String

主题域分组中文名,只读,创建和更新时无需填写。

l2

String

主题域中文名,只读,创建和更新时无需填写。

l3

String

业务对象中文名,只读,创建和更新时无需填写。

attributes

Array of DimensionAttributeVO objects

维度属性信息。

mappings

Array of TableMappingVO objects

表映射信息。

datasource

BizDatasourceRelationVO object

数据源信息。

owner

String

资产责任人。

obs_location

String

外表路径

最大长度:1024

table_type

String

表类型。

distribute

String

DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值:

  • HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN

  • REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据

distribute_column

String

DISTRIBUTE BY HASH column.

alias

String

别名。

self_defined_fields

Array of SelfDefinedFieldVO objects

自定义项。

configs

String

其他配置

最大长度:1024

dev_version

String

开发环境版本,填写String类型替代Long类型。

prod_version

String

生产环境版本,填写String类型替代Long类型。

dev_version_name

String

开发环境版本名称

prod_version_name

String

生产环境版本名称

env_type

String

开发生产环境类型。 枚举值:

  • INVALID_TYPE: 无效环境

  • DEV_TYPE: 开发环境

  • PROD_TYPE: 生产环境

  • DEV_PROD_TYPE: 开发生产环境

表10 DimensionHierarchiesVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

name

String

层级名称。

最大长度:600

attrs

Array of HierarchiesAttrVO objects

层级包含的属性。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

create_by

String

创建人。

update_by

String

更新人。

表11 HierarchiesAttrVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

hierarchies_id

String

层级ID,填写String类型替代Long类型。

attr_id

String

属性ID,填写String类型替代Long类型。

level

Integer

层次。

attr_name_en

String

引用属性编码。

attr_name_ch

String

引用属性名称,只读。

detail_attr_ids

Array of strings

详情属性ID,填写String类型替代Long类型。

detail_attr_name_ens

Array of strings

详情属性英文。

detail_attr_name_chs

Array of strings

详情属性中文,只读。

attr

DimensionAttributeVO object

引用属性字段,只读。

detail_attrs

Array of DimensionAttributeVO objects

详情字段,只读。

表12 DimensionAttributeVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

dimension_id

String

维度ID,只读,填写String类型替代Long类型。

code_table_field_id

String

码表属性ID,填写String类型替代Long类型。

name_en

String

字段名。

最大长度:600

name_ch

String

业务属性。

最大长度:200

description

String

描述。

最大长度:600

create_by

String

创建人。

data_type

String

字段类型。

domain_type

String

字段类型所属域。 枚举值:

  • NUMBER: 数字类型

  • STRING: 字符类型

  • DATETIME: 日期类型

  • BLOB: 大对象(BLOB)

  • OTHER: 其它类型

data_type_extend

String

数据类型扩展字段。

最大长度:50

is_primary_key

Boolean

是否主键。

缺省值:false

is_biz_primary

Boolean

是否业务主键。

缺省值:false

is_partition_key

Boolean

是否分区。

缺省值:false

ordinal

Integer

序号。

not_null

Boolean

是否不为空。

缺省值:false

stand_row_id

String

关联的数据标准的ID,填写String类型替代Long类型。

stand_row_name

String

关联的数据标准名称,只读。

最大长度:600

quality_infos

Array of QualityInfoVO objects

质量信息,只读。

secrecy_levels

Array of SecrecyLevelVO objects

密级

status

String

实体的发布状态,只读,创建和更新时无需填写。 枚举值:

  • DRAFT: 草稿

  • PUBLISH_DEVELOPING: 发布待审核

  • PUBLISHED: 已发布

  • OFFLINE_DEVELOPING: 下线待审核

  • OFFLINE: 已下线

  • REJECT: 已驳回

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

alias

String

别名

self_defined_fields

Array of SelfDefinedFieldVO objects

自定义项。

表13 TableMappingVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

name

String

名称。

description

String

描述。

最大长度:600

target_table_id

String

目的表ID,填写String类型替代Long类型。

src_model_id

String

来源表在关系建模中的模型ID,填写String类型替代Long类型。

src_model_name

String

来源模型名称。

view_text

String

采集的视图来源,dws视图逆向使用。

target_table_name

String

目的表名称。

details

Array of TableMappingDetailVO objects

详情。

source_tables

Array of MappingSourceTableVO objects

映射的表信息。

source_fields

Array of MappingSourceFieldVO objects

映射的字段信息。

create_time

String

创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

create_by

String

创建人。

update_by

String

更新人。

表14 TableMappingDetailVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

mapping_id

String

名称。

target_attr_id

String

目的字段ID,填写String类型替代Long类型。

target_attr_name

String

目的字段排序。

src_table_ids

String

源表ID。

src_table_names

Array of strings

源表名称数组,只读。

src_table_db_names

Array of strings

源表db名称数组,只读。

src_table_model_ids

Array of strings

源表在关系建模中的模型ID数组,只读,填写String类型替代Long类型。

src_table_id_list

Array of strings

源表ID数组,只读,填写String类型替代Long类型。

src_attr_ids

String

源表字段ID。

src_attr_names

Array of strings

源表字段名称数组,只读。

src_attr_id_list

Array of strings

源表字段ID数组,只读,填写String类型替代Long类型。

remark

String

备注。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

create_by

String

创建人。

update_by

String

更新人。

target_attr

Object

目标属性。

表15 MappingSourceTableVO

参数

参数类型

描述

table1_id

String

表1ID,填写String类型替代Long类型。

table2_id

String

表2ID,填写String类型替代Long类型。

缺省值:0

table1_name

String

表1名称。

table2_name

String

表2名称。

join_type

String

关联类型。 枚举值:

  • LEFT: 左外连接

  • RIGHT: 右外连接

  • INNER: 内连接

  • FULL: 全连接

缺省值:LEFT

join_fields

Array of MappingJoinFieldVO objects

on条件。

表16 MappingJoinFieldVO

参数

参数类型

描述

field1_id

String

属性1ID,填写String类型替代Long类型。

field2_id

String

属性2ID,填写String类型替代Long类型。

field1_name

String

属性1名称。

field2_name

String

属性2名称。

表17 MappingSourceFieldVO

参数

参数类型

描述

target_field_id

String

目标字段ID,当前表的某个字段,填写String类型替代Long类型。

target_field_name

String

目标字段编码。

field_ids

String

来源字段ID,多个ID以逗号分隔。

transform_expression

String

转换表达式。

field_names

Array of strings

来源字段名称列表。

changed

Boolean

字段是否发生变化。

表18 BizDatasourceRelationVO

参数

参数类型

描述

id

String

编码,填写String类型替代Long类型。

biz_id

String

业务对象信息,填写String类型替代Long类型。

biz_type

String

业务对象类型。

dw_type

String

数据连接类型,对应表所在的数仓类型,取值可以为DLI、DWS、MRS_HIVE、POSTGRESQL、MRS_SPARK、CLICKHOUSE、MYSQL、ORACLE和DORIS等。

dw_id

String

数据连接ID。

dw_name

String

数据连接名,只读。

db_name

String

数据库名。

queue_name

String

dli数据连接执行sql所需的队列,数据连接类型为DLI时必须。

schema

String

DWS类型需要。

表19 SecrecyLevelRecordVO

参数

参数类型

描述

id

String

属性关联密级的ID,填写String类型替代Long类型。

secrecyLevel_id

String

密级的ID,填写String类型替代Long类型。

secrecyLevel_name

String

密级名称。

uuid

String

数据安全主键。

最大长度:255

slevel

Integer

密级等级。

description

String

密级描述。

最大长度:600

biz_id

String

业务对象ID,填写String类型替代Long类型。

biz_type

String

业务实体类型。 枚举值:

  • AGGREGATION_LOGIC_TABLE: 汇总表

  • ATOMIC_INDEX: 原子指标

  • ATOMIC_METRIC: 原子指标(新)

  • BIZ_CATALOG: 流程架构目录

  • BIZ_METRIC: 业务指标

  • CODE_TABLE: 码表

  • COMMON_CONDITION: 通用限定

  • COMPOSITE_METRIC: 复合指标(新)

  • COMPOUND_METRIC: 复合指标

  • CONDITION_GROUP: 限定分组

  • DEGENERATE_DIMENSION: 退化维度

  • DERIVATIVE_INDEX: 衍生指标

  • DERIVED_METRIC: 衍生指标(新)

  • DIMENSION: 维度

  • DIMENSION_ATTRIBUTE: 维度属性

  • DIMENSION_HIERARCHIES: 维度层级

  • DIMENSION_LOGIC_TABLE: 维度表

  • DIMENSION_TABLE_ATTRIBUTE: 维度属性

  • DIRECTORY: 目录

  • FACT_ATTRIBUTE: 事实表属性

  • FACT_DIMENSION: 事实表维度

  • FACT_LOGIC_TABLE: 事实表

  • FACT_MEASURE: 事实表度量

  • FUNCTION: 函数

  • INFO_ARCH: 信息架构(批量修改主题使用)

  • MODEL: 模型

  • QUALITY_RULE: 质量规则

  • SECRECY_LEVEL: 密级

  • STANDARD_ELEMENT: 数据标准

  • STANDARD_ELEMENT_TEMPLATE: 数据标准模板

  • SUBJECT: 主题

  • SUMMARY_DIMENSION_ATTRIBUTE: 汇总表维度属性

  • SUMMARY_INDEX: 汇总表指标属性

  • SUMMARY_TIME: 汇总表时间周期属性

  • TABLE_MODEL: 关系模型(逻辑模型/物理模型)

  • TABLE_MODEL_ATTRIBUTE: 关系模型属性(逻辑模型/物理模型)

  • TABLE_MODEL_LOGIC: 逻辑实体

  • TABLE_TYPE: 表类型

  • TAG: 标签

  • TIME_CONDITION: 时间限定

create_by

String

创建者。

update_by

String

更新者。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

表20 DimensionLogicTableVO

参数

参数类型

描述

id

String

表ID

tb_name

String

表名称。

最大长度:600

tb_logic_name

String

逻辑实体名。

最大长度:200

l1_id

String

主题域分组ID,只读,填写String类型替代Long类型。

l2_id

String

主题域ID。

l3_id

String

业务对象ID,填写String类型替代Long类型。

create_by

String

创建人。

description

String

描述。

最大长度:600

dimension_id

String

所属维度ID,填写String类型替代Long类型。

owner

String

资产责任人。

dimension_type

String

维度类型。 枚举值:

  • COMMON: 普通维度

  • LOOKUP: 码表维度

  • HIERARCHIES: 层级维度

缺省值:COMMON

code_table_id

String

引用码表ID,填写String类型替代Long类型。

code_table

CodeTableVO object

引用码表,只读。

queue_name

String

dli数据连接执行sql所需的队列,数据连接类型为DLI时必须。

dw_id

String

数据连接ID。

reversed

Boolean

是否是逆向的。

缺省值:false

partition_conf

String

分区表达式。

dirty_out_switch

Boolean

异常数据输出开关。

缺省值:false

dirty_out_database

String

异常数据输出库。

dirty_out_prefix

String

异常表前缀。

dirty_out_suffix

String

异常表后缀。

db_name

String

库名。

tb_id

String

数据表ID,只读。

schema

String

DWS类型需要。

table_type

String

表类型。

status

String

实体的发布状态,只读,创建和更新时无需填写。 枚举值:

  • DRAFT: 草稿

  • PUBLISH_DEVELOPING: 发布待审核

  • PUBLISHED: 已发布

  • OFFLINE_DEVELOPING: 下线待审核

  • OFFLINE: 已下线

  • REJECT: 已驳回

tb_guid

String

表发布后,创建的数据目录技术资产guid,只读,创建和更新时无需填写。

tb_logic_guid

String

表发布后,创建的数据目录业务资产guid,只读,创建和更新时无需填写。

dimension_name

String

关联维度名称,只读。

attributes

Array of DimensionLogicTableAttributeVO objects

字段属性。

dw_type

String

数据连接类型,对应表所在的数仓类型,取值可以为DLI、DWS、MRS_HIVE、POSTGRESQL、MRS_SPARK、CLICKHOUSE、MYSQL、ORACLE和DORIS等。

dw_name

String

数据连接名称,只读,创建和更新时无需填写。

l1

String

主题域分组中文名,只读,创建和更新时无需填写。

l2

String

主题域中文名,只读,创建和更新时无需填写。

l3

String

业务对象中文名,只读,创建和更新时无需填写。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

approval_info

ApprovalVO object

审批信息,只读参数。业务对象最近一次的审批信息,包括审批的业务详情、审核人信息、审核时间等。

new_biz

BizVersionManageVO object

业务版本管理,只读。

physical_table

String

生产环境创建表状态

dev_physical_table

String

开发环境创建表状态

technical_asset

String

技术资产同步状态,只读。

business_asset

String

业务资产同步状态,只读。

meta_data_link

String

资产关联状态,只读。

data_quality

String

质量作业状态,只读。

materialization

String

数值落库状态,只读。

summary_status

String

同步整体状态,只读。

distribute

String

DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值:

  • HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN

  • REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据

distribute_column

String

DISTRIBUTE BY HASH column.

quality_id

String

质量ID,填写String类型替代Long类型。

alias

String

别名。

self_defined_fields

Array of SelfDefinedFieldVO objects

自定义项。

obs_location

String

外表路径

最大长度:1024

configs

String

其他配置

最大长度:1024

dev_version

String

开发环境版本,填写String类型替代Long类型。

prod_version

String

生产环境版本,填写String类型替代Long类型

dev_version_name

String

开发环境版本名称

prod_version_name

String

生产环境版本名称

env_type

String

开发生产环境类型。 枚举值:

  • INVALID_TYPE: 无效环境

  • DEV_TYPE: 开发环境

  • PROD_TYPE: 生产环境

  • DEV_PROD_TYPE: 开发生产环境

表21 CodeTableVO

参数

参数类型

描述

id

String

码表ID,填写String类型替代Long类型。

name_en

String

表名称,英文名。

最大长度:200

name_ch

String

表名称,中文名。

最大长度:200

tb_version

Integer

表版本。

directory_id

String

目录ID,填写String类型替代Long类型。

directory_path

String

目录树。

description

String

描述。

最大长度:600

create_by

String

创建人。

status

String

实体的发布状态,只读,创建和更新时无需填写。 枚举值:

  • DRAFT: 草稿

  • PUBLISH_DEVELOPING: 发布待审核

  • PUBLISHED: 已发布

  • OFFLINE_DEVELOPING: 下线待审核

  • OFFLINE: 已下线

  • REJECT: 已驳回

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

approval_info

ApprovalVO object

审批信息,只读参数。业务对象最近一次的审批信息,包括审批的业务详情、审核人信息、审核时间等。

new_biz

BizVersionManageVO object

业务版本管理,只读。

code_table_fields

Array of CodeTableFieldVO objects

码表属性信息。

表22 CodeTableFieldVO

参数

参数类型

描述

id

String

码表字段ID,填写String类型替代Long类型。

code_table_id

String

所属码表ID,填写String类型替代Long类型。

ordinal

Integer

序号。

name_en

String

字段名,英文。

最大长度:600

name_ch

String

字段名,中文。

最大长度:200

description

String

描述。

最大长度:600

data_type

String

字段类型。

domain_type

String

字段类型所属域。 枚举值:

  • NUMBER: 数字类型

  • STRING: 字符类型

  • DATETIME: 日期类型

  • BLOB: 大对象(BLOB)

  • OTHER: 其它类型

data_type_extend

String

数据类型扩展字段。

最大长度:50

is_unique_key

Boolean

是否唯一。

缺省值:false

code_table_field_values

Array of CodeTableFieldValueVO objects

码表属性值。

count_field_values

Integer

码表属性值总数。

表23 CodeTableFieldValueVO

参数

参数类型

描述

id

String

码表字段ID,填写String类型替代Long类型。

fd_id

String

所属码表属性ID,填写String类型替代Long类型。

fd_value

String

码表属性值。

ordinal

Integer

序号。

description

String

描述。

最大长度:600

表24 DimensionLogicTableAttributeVO

参数

参数类型

描述

id

String

维度表ID,填写String类型替代Long类型。

dimension_logic_table_id

String

所属维表ID。

ordinal

Integer

序号

dimension_attribute_id

String

维度属性ID,填写String类型替代Long类型。

name_en

String

字段名,只读。

name_ch

String

业务属性,只读。

description

String

描述,只读。

data_type

String

字段类型。

domain_type

String

字段类型所属域。 枚举值:

  • NUMBER: 数字类型

  • STRING: 字符类型

  • DATETIME: 日期类型

  • BLOB: 大对象(BLOB)

  • OTHER: 其它类型

data_type_extend

String

数据类型扩展字段。

最大长度:50

is_primary_key

Boolean

是否主键,只读。

缺省值:false

is_biz_primary

Boolean

是否业务主键。

缺省值:false

is_partition_key

Boolean

是否主键分区,只读。

缺省值:false

not_null

Boolean

是否不为空。

缺省值:false

stand_row_id

String

关联的数据标准的ID,填写String类型替代Long类型。

stand_row_name

String

关联的数据标准名称,只读。

最大长度:600

quality_infos

Array of QualityInfoVO objects

质量信息,只读。

alias

String

别名。

self_defined_fields

Array of SelfDefinedFieldVO objects

自定义项。

secrecy_levels

Array of SecrecyLevelVO objects

密级

表25 QualityInfoVO

参数

参数类型

描述

id

String

编码ID,填写String类型替代Long类型。

table_id

String

表ID,只读,填写String类型替代Long类型。

attr_id

String

属性ID,只读,填写String类型替代Long类型。

biz_type

String

业务实体类型。 枚举值:

  • AGGREGATION_LOGIC_TABLE: 汇总表

  • ATOMIC_INDEX: 原子指标

  • ATOMIC_METRIC: 原子指标(新)

  • BIZ_CATALOG: 流程架构目录

  • BIZ_METRIC: 业务指标

  • CODE_TABLE: 码表

  • COMMON_CONDITION: 通用限定

  • COMPOSITE_METRIC: 复合指标(新)

  • COMPOUND_METRIC: 复合指标

  • CONDITION_GROUP: 限定分组

  • DEGENERATE_DIMENSION: 退化维度

  • DERIVATIVE_INDEX: 衍生指标

  • DERIVED_METRIC: 衍生指标(新)

  • DIMENSION: 维度

  • DIMENSION_ATTRIBUTE: 维度属性

  • DIMENSION_HIERARCHIES: 维度层级

  • DIMENSION_LOGIC_TABLE: 维度表

  • DIMENSION_TABLE_ATTRIBUTE: 维度属性

  • DIRECTORY: 目录

  • FACT_ATTRIBUTE: 事实表属性

  • FACT_DIMENSION: 事实表维度

  • FACT_LOGIC_TABLE: 事实表

  • FACT_MEASURE: 事实表度量

  • FUNCTION: 函数

  • INFO_ARCH: 信息架构(批量修改主题使用)

  • MODEL: 模型

  • QUALITY_RULE: 质量规则

  • SECRECY_LEVEL: 密级

  • STANDARD_ELEMENT: 数据标准

  • STANDARD_ELEMENT_TEMPLATE: 数据标准模板

  • SUBJECT: 主题

  • SUMMARY_DIMENSION_ATTRIBUTE: 汇总表维度属性

  • SUMMARY_INDEX: 汇总表指标属性

  • SUMMARY_TIME: 汇总表时间周期属性

  • TABLE_MODEL: 关系模型(逻辑模型/物理模型)

  • TABLE_MODEL_ATTRIBUTE: 关系模型属性(逻辑模型/物理模型)

  • TABLE_MODEL_LOGIC: 逻辑实体

  • TABLE_TYPE: 表类型

  • TAG: 标签

  • TIME_CONDITION: 时间限定

data_quality_id

String

质量ID,填写String类型替代Long类型。

show_control

Integer

是否要显示正则表达式。

data_quality_name

String

质量名称。

alert_conf

String

告警配置。

expression

String

正则相关校验规则中正则配置。

extend_info

String

扩展信息。

from_standard

Boolean

是否来源于数据标准质量配置,只读。

缺省值:false

result_description

String

结果说明。

create_by

String

创建人,只读。

update_by

String

更新人,只读。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

表26 SecrecyLevelVO

参数

参数类型

描述

id

String

密级ID,填写String类型替代Long类型。

uuid

String

数据安全主键。

最大长度:128

name

String

密级名。

最大长度:250

slevel

Integer

密级等级。

description

String

密级描述。

最大长度:600

create_by

String

创建人。

update_by

String

更新人。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

new_biz

BizVersionManageVO object

业务版本管理,只读。

表27 ApprovalVO

参数

参数类型

描述

id

String

审批单ID,填写String类型替代Long类型。

tenant_id

String

项目ID,获取方式参考接口路径参数“project_id”。

name_ch

String

业务中文名。

name_en

String

业务英文名。

biz_id

String

业务ID,填写String类型替代Long类型。

biz_type

String

业务实体类型。 枚举值:

  • AGGREGATION_LOGIC_TABLE: 汇总表

  • ATOMIC_INDEX: 原子指标

  • ATOMIC_METRIC: 原子指标(新)

  • BIZ_CATALOG: 流程架构目录

  • BIZ_METRIC: 业务指标

  • CODE_TABLE: 码表

  • COMMON_CONDITION: 通用限定

  • COMPOSITE_METRIC: 复合指标(新)

  • COMPOUND_METRIC: 复合指标

  • CONDITION_GROUP: 限定分组

  • DEGENERATE_DIMENSION: 退化维度

  • DERIVATIVE_INDEX: 衍生指标

  • DERIVED_METRIC: 衍生指标(新)

  • DIMENSION: 维度

  • DIMENSION_ATTRIBUTE: 维度属性

  • DIMENSION_HIERARCHIES: 维度层级

  • DIMENSION_LOGIC_TABLE: 维度表

  • DIMENSION_TABLE_ATTRIBUTE: 维度属性

  • DIRECTORY: 目录

  • FACT_ATTRIBUTE: 事实表属性

  • FACT_DIMENSION: 事实表维度

  • FACT_LOGIC_TABLE: 事实表

  • FACT_MEASURE: 事实表度量

  • FUNCTION: 函数

  • INFO_ARCH: 信息架构(批量修改主题使用)

  • MODEL: 模型

  • QUALITY_RULE: 质量规则

  • SECRECY_LEVEL: 密级

  • STANDARD_ELEMENT: 数据标准

  • STANDARD_ELEMENT_TEMPLATE: 数据标准模板

  • SUBJECT: 主题

  • SUMMARY_DIMENSION_ATTRIBUTE: 汇总表维度属性

  • SUMMARY_INDEX: 汇总表指标属性

  • SUMMARY_TIME: 汇总表时间周期属性

  • TABLE_MODEL: 关系模型(逻辑模型/物理模型)

  • TABLE_MODEL_ATTRIBUTE: 关系模型属性(逻辑模型/物理模型)

  • TABLE_MODEL_LOGIC: 逻辑实体

  • TABLE_TYPE: 表类型

  • TAG: 标签

  • TIME_CONDITION: 时间限定

biz_info

String

序列化之后的业务详情,类型是string。

biz_info_obj

Object

业务详情,类型是object。

biz_version

Integer

业务版本。

biz_status

String

实体的发布状态,只读,创建和更新时无需填写。 枚举值:

  • DRAFT: 草稿

  • PUBLISH_DEVELOPING: 发布待审核

  • PUBLISHED: 已发布

  • OFFLINE_DEVELOPING: 下线待审核

  • OFFLINE: 已下线

  • REJECT: 已驳回

approval_status

String

业务审批状态,只读。 枚举值:

  • DEVELOPING: 审核中

  • APPROVED: 审核通过

  • REJECT: 审核驳回

  • WITHDREW: 审核撤销

approval_type

String

业务审核类型。 枚举值:

  • PUBLISH: 发布

  • OFFLINE: 下线

submit_time

String

提交时间。

create_by

String

创建者。

l1

String

主题域分组中文名,只读,创建和更新时无需填写。

l2

String

主题域中文名,只读,创建和更新时无需填写。

l3

String

业务对象中文名,只读,创建和更新时无需填写。

approval_time

String

审核时间。

approver

String

审核人。

email

String

审核人邮箱。

msg

String

审核信息。

directory_path

String

目录树。

表28 BizVersionManageVO

参数

参数类型

描述

id

String

ID信息,填写String类型替代Long类型。

biz_type

String

业务实体类型。 枚举值:

  • AGGREGATION_LOGIC_TABLE: 汇总表

  • ATOMIC_INDEX: 原子指标

  • ATOMIC_METRIC: 原子指标(新)

  • BIZ_CATALOG: 流程架构目录

  • BIZ_METRIC: 业务指标

  • CODE_TABLE: 码表

  • COMMON_CONDITION: 通用限定

  • COMPOSITE_METRIC: 复合指标(新)

  • COMPOUND_METRIC: 复合指标

  • CONDITION_GROUP: 限定分组

  • DEGENERATE_DIMENSION: 退化维度

  • DERIVATIVE_INDEX: 衍生指标

  • DERIVED_METRIC: 衍生指标(新)

  • DIMENSION: 维度

  • DIMENSION_ATTRIBUTE: 维度属性

  • DIMENSION_HIERARCHIES: 维度层级

  • DIMENSION_LOGIC_TABLE: 维度表

  • DIMENSION_TABLE_ATTRIBUTE: 维度属性

  • DIRECTORY: 目录

  • FACT_ATTRIBUTE: 事实表属性

  • FACT_DIMENSION: 事实表维度

  • FACT_LOGIC_TABLE: 事实表

  • FACT_MEASURE: 事实表度量

  • FUNCTION: 函数

  • INFO_ARCH: 信息架构(批量修改主题使用)

  • MODEL: 模型

  • QUALITY_RULE: 质量规则

  • SECRECY_LEVEL: 密级

  • STANDARD_ELEMENT: 数据标准

  • STANDARD_ELEMENT_TEMPLATE: 数据标准模板

  • SUBJECT: 主题

  • SUMMARY_DIMENSION_ATTRIBUTE: 汇总表维度属性

  • SUMMARY_INDEX: 汇总表指标属性

  • SUMMARY_TIME: 汇总表时间周期属性

  • TABLE_MODEL: 关系模型(逻辑模型/物理模型)

  • TABLE_MODEL_ATTRIBUTE: 关系模型属性(逻辑模型/物理模型)

  • TABLE_MODEL_LOGIC: 逻辑实体

  • TABLE_TYPE: 表类型

  • TAG: 标签

  • TIME_CONDITION: 时间限定

biz_id

String

业务ID,填写String类型替代Long类型。

biz_info

String

业务对象信息。

status

String

实体的发布状态,只读,创建和更新时无需填写。 枚举值:

  • DRAFT: 草稿

  • PUBLISH_DEVELOPING: 发布待审核

  • PUBLISHED: 已发布

  • OFFLINE_DEVELOPING: 下线待审核

  • OFFLINE: 已下线

  • REJECT: 已驳回

biz_version

Integer

业务版本,只读。

create_time

String

创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

update_time

String

更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。

表29 SelfDefinedFieldVO

参数

参数类型

描述

fd_name_ch

String

自定义项中文名。

最大长度:200

fd_name_en

String

自定义项英文名。

最大长度:200

not_null

Boolean

是否必填。

fd_value

String

属性值。

状态码: 400

表30 响应Body参数

参数

参数类型

描述

error_code

String

错误码,如DS.6000,请求处理失败。

最小长度:8

最大长度:36

error_msg

String

错误信息。

最小长度:2

最大长度:512

data

Object

返回的数据信息。

状态码: 401

表31 响应Body参数

参数

参数类型

描述

error_code

String

错误码,如DS.6000,请求处理失败。

最小长度:8

最大长度:36

error_msg

String

错误信息。

最小长度:2

最大长度:512

data

Object

返回的数据信息。

状态码: 403

表32 响应Body参数

参数

参数类型

描述

error_code

String

错误码,如DS.6000,请求处理失败。

最小长度:8

最大长度:36

error_msg

String

错误信息。

最小长度:2

最大长度:512

data

Object

返回的数据信息。

请求示例

查询表ID为1169329693619625984、业务类型为FACT_LOGIC_TABLE的维度颗粒度。

GET https://{endpoint}/v2/{project_id}/design/dimension/groups?biz_type=FACT_LOGIC_TABLE&table_id=1169329693619625984

响应示例

状态码: 200

Success,返回data数据是DerivativeIndexDimensionVO详情。

{
  "data" : {
    "value" : {
      "main_table" : {
        "id" : "1169329693619625984",
        "tb_name" : "fact_stroke_order",
        "tb_logic_name" : "行程订单",
        "l1_id" : null,
        "l2_id" : null,
        "l3_id" : "1179816339158790144",
        "description" : "无",
        "dw_name" : null,
        "owner" : "ei_dayu_y00321344_01",
        "create_by" : "ei_dayu_y00321344_01",
        "queue_name" : "",
        "dw_id" : "d800f74aedca4e68a95ecbd0569cabfa",
        "db_name" : "default",
        "tb_id" : "NativeTable-d800f74aedca4e68a95ecbd0569cabfa-default-fact_stroke_order",
        "dim_table_ids" : null,
        "reversed" : null,
        "partition_conf" : null,
        "dirty_out_switch" : false,
        "dirty_out_database" : "",
        "dirty_out_prefix" : "",
        "dirty_out_suffix" : "",
        "schema" : "",
        "distribute" : null,
        "distribute_column" : null,
        "compression" : null,
        "obs_location" : null,
        "pre_combine_field" : null,
        "table_type" : "HIVE_TABLE",
        "status" : "PUBLISHED",
        "tb_guid" : "fe241223-c87c-4011-90a3-ced201bd4fd0",
        "tb_logic_guid" : "5231b940-c716-4d7d-bbce-d0b46f5dec5c",
        "dw_type" : "MRS_HIVE",
        "l1" : null,
        "l2" : null,
        "l3" : null,
        "create_time" : "2023-11-01T17:38:44+08:00",
        "update_time" : "2023-11-30T16:13:31+08:00",
        "approval_info" : {
          "id" : "1179817434769715200",
          "tenant_id" : null,
          "name_ch" : null,
          "name_en" : null,
          "biz_id" : "1169329693619625984",
          "biz_type" : null,
          "biz_info" : null,
          "biz_info_obj" : null,
          "biz_version" : 0,
          "biz_status" : "PUBLISHED",
          "approval_status" : "APPROVED",
          "approval_type" : null,
          "submit_time" : "2023-11-30T16:13:16+08:00",
          "create_by" : null,
          "l1" : null,
          "l2" : null,
          "l3" : null,
          "approval_time" : "2023-11-30T16:13:16+08:00",
          "approver" : "ei_dayu_y00321344_01",
          "email" : null,
          "msg" : "Fast Approval OK.",
          "directory_path" : null
        },
        "new_biz" : null,
        "dimensions" : [ {
          "id" : "1169329693695123456",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 1,
          "dimension_id" : "1169323046352371712",
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "BIGINT",
          "domain_type" : "NUMBER",
          "data_type_extend" : null,
          "name_en" : "rate_code_id",
          "name_ch" : "费率id",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123457",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 2,
          "dimension_id" : "1169322847009742848",
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "BIGINT",
          "domain_type" : "NUMBER",
          "data_type_extend" : null,
          "name_en" : "vendor_id",
          "name_ch" : "供应商id",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123458",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 3,
          "dimension_id" : "1169323245690863616",
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "BIGINT",
          "domain_type" : "NUMBER",
          "data_type_extend" : null,
          "name_en" : "payment_type_id",
          "name_ch" : "付款方式编码",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123459",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 4,
          "dimension_id" : "1169327565677182976",
          "role" : "dim_pickup",
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "日期层维表",
          "data_type" : "TIMESTAMP",
          "domain_type" : "DATETIME",
          "data_type_extend" : null,
          "name_en" : "dim_pickup_date_key",
          "name_ch" : "上车时间",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123460",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 5,
          "dimension_id" : "1169327565677182976",
          "role" : "dim_dropoff",
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "日期层维表",
          "data_type" : "TIMESTAMP",
          "domain_type" : "DATETIME",
          "data_type_extend" : null,
          "name_en" : "dim_dropoff_date_key",
          "name_ch" : "下车时间",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        } ],
        "attributes" : null,
        "mappings" : null,
        "measures" : [ {
          "id" : "1169329693695123461",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 6,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "STRING",
          "domain_type" : "STRING",
          "data_type_extend" : "",
          "name_en" : "pu_location_id",
          "name_ch" : "上车地点",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123462",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 7,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "STRING",
          "domain_type" : "STRING",
          "data_type_extend" : "",
          "name_en" : "do_location_id",
          "name_ch" : "下车地点",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123463",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 8,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "fare_amount",
          "name_ch" : "车费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123464",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 9,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "extra",
          "name_ch" : "加收",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123465",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 10,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "mta_tax",
          "name_ch" : "MTA税",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123466",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 11,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "tip_amount",
          "name_ch" : "手续费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123467",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 12,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "tolls_amount",
          "name_ch" : "通行费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123468",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 13,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "improvement_surcharge",
          "name_ch" : "改善附加费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123469",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 14,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "total_amount",
          "name_ch" : "总车费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        } ],
        "table_attributes" : [ {
          "id" : "1169329693695123456",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 1,
          "dimension_id" : "1169323046352371712",
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "BIGINT",
          "domain_type" : "NUMBER",
          "data_type_extend" : null,
          "name_en" : "rate_code_id",
          "name_ch" : "费率id",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123457",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 2,
          "dimension_id" : "1169322847009742848",
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "BIGINT",
          "domain_type" : "NUMBER",
          "data_type_extend" : null,
          "name_en" : "vendor_id",
          "name_ch" : "供应商id",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123458",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 3,
          "dimension_id" : "1169323245690863616",
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "BIGINT",
          "domain_type" : "NUMBER",
          "data_type_extend" : null,
          "name_en" : "payment_type_id",
          "name_ch" : "付款方式编码",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123459",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 4,
          "dimension_id" : "1169327565677182976",
          "role" : "dim_pickup",
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "日期层维表",
          "data_type" : "TIMESTAMP",
          "domain_type" : "DATETIME",
          "data_type_extend" : null,
          "name_en" : "dim_pickup_date_key",
          "name_ch" : "上车时间",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123460",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 5,
          "dimension_id" : "1169327565677182976",
          "role" : "dim_dropoff",
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : true,
          "secrecy_levels" : [ ],
          "description" : "日期层维表",
          "data_type" : "TIMESTAMP",
          "domain_type" : "DATETIME",
          "data_type_extend" : null,
          "name_en" : "dim_dropoff_date_key",
          "name_ch" : "下车时间",
          "not_null" : false,
          "attribute_type" : "FACT_DIMENSION",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123461",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 6,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "STRING",
          "domain_type" : "STRING",
          "data_type_extend" : "",
          "name_en" : "pu_location_id",
          "name_ch" : "上车地点",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123462",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 7,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "STRING",
          "domain_type" : "STRING",
          "data_type_extend" : "",
          "name_en" : "do_location_id",
          "name_ch" : "下车地点",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123463",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 8,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "fare_amount",
          "name_ch" : "车费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123464",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 9,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "extra",
          "name_ch" : "加收",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123465",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 10,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "mta_tax",
          "name_ch" : "MTA税",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123466",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 11,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "tip_amount",
          "name_ch" : "手续费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123467",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 12,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "tolls_amount",
          "name_ch" : "通行费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123468",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 13,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "improvement_surcharge",
          "name_ch" : "改善附加费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        }, {
          "id" : "1169329693695123469",
          "fact_logic_table_id" : "1169329693619625984",
          "ordinal" : 14,
          "dimension_id" : null,
          "role" : null,
          "dimension" : null,
          "is_primary_key" : false,
          "is_partition_key" : false,
          "is_foreign_key" : null,
          "secrecy_levels" : [ ],
          "description" : "",
          "data_type" : "DECIMAL",
          "domain_type" : "NUMBER",
          "data_type_extend" : "(10,2)",
          "name_en" : "total_amount",
          "name_ch" : "总车费",
          "not_null" : false,
          "attribute_type" : "FACT_MEASURE",
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : "",
          "self_defined_fields" : [ ]
        } ],
        "physical_table" : "UPDATE_SUCCESS",
        "dev_physical_table" : "NO_NEED",
        "technical_asset" : "CREATE_SUCCESS",
        "business_asset" : "UPDATE_SUCCESS",
        "meta_data_link" : "UPDATE_SUCCESS",
        "data_quality" : "NO_NEED",
        "summary_status" : "SUMMARY_SUCCESS",
        "quality_id" : null,
        "alias" : "",
        "configs" : "{}",
        "self_defined_fields" : [ ],
        "dev_version" : null,
        "prod_version" : null,
        "dev_version_name" : null,
        "prod_version_name" : null,
        "env_type" : "INVALID_TYPE"
      },
      "dimension_tables" : [ {
        "id" : "1169323047912652800",
        "tb_name" : "dim_rate_code",
        "tb_logic_name" : "费率代码",
        "l1_id" : "1169309252771299328",
        "l2_id" : "1169309574931652608,1169311054568800256",
        "l3_id" : null,
        "create_by" : "ei_dayu_y00321344_01",
        "description" : "无",
        "dimension_id" : "1169323046352371712",
        "owner" : "ei_dayu_y00321344_01",
        "dimension_type" : "LOOKUP",
        "code_table_id" : "1169315702553886720",
        "code_table" : null,
        "queue_name" : "",
        "dw_id" : "d800f74aedca4e68a95ecbd0569cabfa",
        "reversed" : null,
        "partition_conf" : null,
        "dirty_out_switch" : false,
        "dirty_out_database" : "",
        "dirty_out_prefix" : "",
        "dirty_out_suffix" : "",
        "db_name" : "default",
        "tb_id" : "NativeTable-d800f74aedca4e68a95ecbd0569cabfa-default-dim_rate_code",
        "schema" : "",
        "table_type" : "HIVE_TABLE",
        "status" : "PUBLISHED",
        "tb_guid" : null,
        "tb_logic_guid" : "7beab16b-8464-4a9c-8b13-19eb997f8e2c",
        "dimension_name" : "费率代码",
        "attributes" : [ {
          "id" : "1169323047937818624",
          "dimension_logic_table_id" : "1169323047912652800",
          "ordinal" : 1,
          "dimension_attribute_id" : "1169323046453035008",
          "name_en" : "rate_code_id",
          "name_ch" : "费率id",
          "description" : "",
          "data_type" : "BIGINT",
          "domain_type" : "NUMBER",
          "data_type_extend" : null,
          "is_primary_key" : true,
          "is_biz_primary" : false,
          "is_partition_key" : false,
          "not_null" : false,
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : null,
          "self_defined_fields" : [ ],
          "secrecy_levels" : [ ]
        }, {
          "id" : "1169323047937818625",
          "dimension_logic_table_id" : "1169323047912652800",
          "ordinal" : 2,
          "dimension_attribute_id" : "1169323046453035009",
          "name_en" : "rate_code_value",
          "name_ch" : "费率说明",
          "description" : "",
          "data_type" : "STRING",
          "domain_type" : "STRING",
          "data_type_extend" : null,
          "is_primary_key" : false,
          "is_biz_primary" : false,
          "is_partition_key" : false,
          "not_null" : false,
          "stand_row_id" : null,
          "stand_row_name" : null,
          "quality_infos" : null,
          "alias" : null,
          "self_defined_fields" : [ ],
          "secrecy_levels" : [ ]
        } ],
        "dw_type" : "MRS_HIVE",
        "dw_name" : null,
        "l1" : "城市交通",
        "l2" : "公共维度/公共维度",
        "l3" : null,
        "create_time" : "2023-11-01T17:12:20+08:00",
        "update_time" : "2023-11-16T14:27:42+08:00",
        "approval_info" : null,
        "new_biz" : null,
        "physical_table" : "CREATE_SUCCESS",
        "dev_physical_table" : "NO_NEED",
        "technical_asset" : "CREATE_FAILED",
        "business_asset" : "UPDATE_SUCCESS",
        "meta_data_link" : "UPDATE_FAILED",
        "data_quality" : "NO_NEED",
        "materialization" : "NO_NEED",
        "summary_status" : "SUMMARY_FAILED",
        "distribute" : null,
        "distribute_column" : null,
        "compression" : null,
        "obs_location" : null,
        "pre_combine_field" : null,
        "quality_id" : null,
        "alias" : "",
        "configs" : "{}",
        "self_defined_fields" : null,
        "from_public" : null,
        "dev_version" : null,
        "prod_version" : null,
        "dev_version_name" : null,
        "prod_version_name" : null,
        "env_type" : "INVALID_TYPE"
      } ]
    }
  }
}

状态码: 400

{
  "error_code" : "DS.60xx",
  "error_msg" : "The user request is illegal."
}

状态码: 401

{
  "error_code" : "DS.60xx",
  "error_msg" : "User authentication failed."
}

状态码: 403

{
  "error_code" : "DS.60xx",
  "error_msg" : "The user does not have permission to call this API."
}

SDK代码示例

SDK代码示例如下。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.huaweicloud.sdk.test;

import com.huaweicloud.sdk.core.auth.ICredential;
import com.huaweicloud.sdk.core.auth.BasicCredentials;
import com.huaweicloud.sdk.core.exception.ConnectionException;
import com.huaweicloud.sdk.core.exception.RequestTimeoutException;
import com.huaweicloud.sdk.core.exception.ServiceResponseException;
import com.huaweicloud.sdk.dataartsstudio.v1.region.dataartsstudioRegion;
import com.huaweicloud.sdk.dataartsstudio.v1.*;
import com.huaweicloud.sdk.dataartsstudio.v1.model.*;


public class ListDimensionGroupsSolution {

    public static void main(String[] args) {
        // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
        // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
        String ak = System.getenv("CLOUD_SDK_AK");
        String sk = System.getenv("CLOUD_SDK_SK");
        String projectId = "{project_id}";

        ICredential auth = new BasicCredentials()
                .withProjectId(projectId)
                .withAk(ak)
                .withSk(sk);

        dataartsstudioClient client = dataartsstudioClient.newBuilder()
                .withCredential(auth)
                .withRegion(dataartsstudioRegion.valueOf("<YOUR REGION>"))
                .build();
        ListDimensionGroupsRequest request = new ListDimensionGroupsRequest();
        try {
            ListDimensionGroupsResponse response = client.listDimensionGroups(request);
            System.out.println(response.toString());
        } catch (ConnectionException e) {
            e.printStackTrace();
        } catch (RequestTimeoutException e) {
            e.printStackTrace();
        } catch (ServiceResponseException e) {
            e.printStackTrace();
            System.out.println(e.getHttpStatusCode());
            System.out.println(e.getRequestId());
            System.out.println(e.getErrorCode());
            System.out.println(e.getErrorMsg());
        }
    }
}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# coding: utf-8

from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkdataartsstudio.v1.region.dataartsstudio_region import dataartsstudioRegion
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkdataartsstudio.v1 import *

if __name__ == "__main__":
    # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    # In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak = __import__('os').getenv("CLOUD_SDK_AK")
    sk = __import__('os').getenv("CLOUD_SDK_SK")
    projectId = "{project_id}"

    credentials = BasicCredentials(ak, sk, projectId) \

    client = dataartsstudioClient.new_builder() \
        .with_credentials(credentials) \
        .with_region(dataartsstudioRegion.value_of("<YOUR REGION>")) \
        .build()

    try:
        request = ListDimensionGroupsRequest()
        response = client.list_dimension_groups(request)
        print(response)
    except exceptions.ClientRequestException as e:
        print(e.status_code)
        print(e.request_id)
        print(e.error_code)
        print(e.error_msg)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main

import (
	"fmt"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/basic"
    dataartsstudio "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dataartsstudio/v1"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dataartsstudio/v1/model"
    region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dataartsstudio/v1/region"
)

func main() {
    // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak := os.Getenv("CLOUD_SDK_AK")
    sk := os.Getenv("CLOUD_SDK_SK")
    projectId := "{project_id}"

    auth := basic.NewCredentialsBuilder().
        WithAk(ak).
        WithSk(sk).
        WithProjectId(projectId).
        Build()

    client := dataartsstudio.NewdataartsstudioClient(
        dataartsstudio.dataartsstudioClientBuilder().
            WithRegion(region.ValueOf("<YOUR REGION>")).
            WithCredential(auth).
            Build())

    request := &model.ListDimensionGroupsRequest{}
	response, err := client.ListDimensionGroups(request)
	if err == nil {
        fmt.Printf("%+v\n", response)
    } else {
        fmt.Println(err)
    }
}

更多编程语言的SDK代码示例,请参见API Explorer的代码示例页签,可生成自动对应的SDK代码示例。

状态码

状态码

描述

200

Success,返回data数据是DerivativeIndexDimensionVO详情。

400

BadRequest

401

Unauthorized

403

Forbidden

分享:

    相关文档

    相关产品