huawei-cloud-api-definitions-LakeFormation 0.1.20261120

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"","definitions":{"Column":{"description":"列信息","properties":{"advance_column_type":{"description":"用户自定义类型名称,当且仅当column_type为struct,字段可填写。该字段存在值时,表示用户自定义的高阶类型","example":"JSON","maxLength":64,"minLength":0,"type":"string"},"column_name":{"description":"列名","example":"c1","maxLength":767,"minLength":1,"pattern":"^[a-zA-Z0-9_\\-\\+*\\\\(), \\u4e00-\\u9fa5]+$","type":"string"},"column_type":{"description":"列类型,包括array bigint binary boolean char date decimal double float int interval map set smallint string struct timestamp tinyint union varchar","maxLength":65535,"minLength":1,"type":"string"},"comment":{"description":"列描述信息","maxLength":4000,"pattern":".*","type":"string"}},"required":["column_name","column_type"],"type":"object"},"Error":{"description":"失败403时返回的错误对象。","properties":{"code":{"description":"状态码。","example":"403","maxLength":36,"minLength":0,"type":"string"},"error_code":{"description":"错误码。","example":"403","maxLength":36,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","example":"failed","maxLength":4096,"minLength":0,"type":"string"},"message":{"description":"错误信息。","example":"X-Auth-Token is invalid in the request","maxLength":4096,"minLength":0,"type":"string"},"title":{"description":"标题。","example":"Forbidden","maxLength":36,"minLength":0,"type":"string"}},"type":"object"},"ErrorForbiddenMessage":{"description":"失败403时返回的错误对象。","properties":{"error":{"$ref":"#/definitions/Error","description":"错误信息。"},"error_code":{"description":"错误码。","example":"403","maxLength":36,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","example":"X-Auth-Token is invalid in the request","maxLength":4096,"minLength":2,"type":"string"},"title":{"description":"标题。","example":"Forbidden","maxLength":1024,"minLength":0,"type":"string"}},"required":["error","error_code","error_msg","title"],"type":"object"},"ErrorMessage":{"description":"失败时返回的错误对象","properties":{"common_error_code":{"description":"CBC公共错误码","example":"CMM.1008","maxLength":36,"minLength":1,"type":"string"},"error_code":{"description":"错误码","example":"lakeformation.00010003","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"failed","maxLength":4096,"minLength":2,"type":"string"},"solution_msg":{"description":"解决方案描述","example":"Please use correct instance id.","maxLength":4096,"minLength":2,"type":"string"}},"required":["error_code","error_msg"],"type":"object"},"Order":{"description":"排列顺序","properties":{"column":{"description":"列的名称","maxLength":256,"minLength":1,"pattern":"^[a-zA-Z0-9_\\-\\+*\\\\(), \\u4e00-\\u9fa5]+$","type":"string"},"sort_order":{"description":"指示是按升序 (== 1) 还是降序 (==0) 对列进行排序","format":"int32","maximum":1,"minimum":0,"type":"integer"}},"title":"Order","type":"object"},"PagedInfo":{"description":"分页返回信息","properties":{"current_count":{"description":"本次返回的对象个数","format":"int32","maximum":2000,"minimum":0,"type":"integer"},"next_marker":{"description":"下一页查询地址","example":"006f492b-xxxx","maxLength":32,"type":"string"},"previous_marker":{"description":"上一页查询地址","example":"003e6eba-xxxx","maxLength":32,"type":"string"}},"required":["current_count","next_marker","previous_marker"],"type":"object"},"PagedListTable":{"description":"列举表","properties":{"page_info":{"$ref":"#/definitions/PagedInfo","description":"分页信息"},"tables":{"items":{"$ref":"#/definitions/Table"},"type":"array"}},"title":"PagedListTable"},"SerDeInfo":{"description":"序列化/反序列化的信息","properties":{"name":{"description":"名字信息","maxLength":256,"type":"string"},"parameters":{"additionalProperties":{"maxLength":4000,"type":"string"},"description":"参数数组。\nkey最小值1,最大值255\nvalue最大值4000","type":"object"},"serialization_library":{"description":"实现序列化/反序列化的类","maxLength":256,"minLength":1,"type":"string"}},"title":"SerDeInfo"},"SkewedInfo":{"properties":{"skewed_column_names":{"description":"数据偏移列的列表","items":{"maxLength":256,"minLength":1,"pattern":"^[a-zA-Z0-9_\\-\\+*\\\\(), \\u4e00-\\u9fa5]+$","type":"string"},"type":"array"},"skewed_column_value_location_maps":{"additionalProperties":{"type":"string"},"description":"偏斜值和地址的映射关系.","type":"object"},"skewed_column_values":{"description":"偏斜值的列表.","items":{"items":{"type":"string"},"maxItems":255,"type":"array"},"type":"array"}},"required":["skewed_column_names","skewed_column_value_location_maps","skewed_column_values"],"title":"SkewedInfo"},"StorageDescriptor":{"properties":{"bucket_columns":{"description":"分桶字段","items":{"maxLength":255,"minLength":1,"type":"string"},"maxItems":200,"minItems":0,"type":"array"},"columns":{"description":"分区列以外的所有字段","items":{"$ref":"#/definitions/Column"},"maxItems":10000,"type":"array"},"compressed":{"default":false,"description":"是否启用数据压缩","type":"boolean","x-annotations":["@UsNoConstraint(reason = \"Boolean类型无需校验\")"],"x-imports":["com.huawei.us.validator.annotation.UsNoConstraint;"]},"input_format":{"description":"输入格式","maxLength":128,"type":"string"},"location":{"description":"存储路径","maxLength":4000,"pattern":"^(obs|har)://.+/.+$","type":"string"},"number_of_buckets":{"default":0,"description":"分桶的桶数量","format":"int32","type":"integer"},"output_format":{"description":"输出格式","maxLength":128,"type":"string"},"parameters":{"additionalProperties":{"maxLength":4000,"type":"string"},"description":"存储描述符的参数。\nkey最小长度为1,最大长度为255.\nvalue最大长度为4000","type":"object"},"serde_info":{"$ref":"#/definitions/SerDeInfo","description":"序列化/反序列化信息"},"skewed_info":{"$ref":"#/definitions/SkewedInfo","description":"有关在列中经常出现的值(偏斜值)的信息"},"sort_columns":{"description":"指定表中的每个存储桶的排序顺序的列表","items":{"$ref":"#/definitions/Order"},"type":"array"},"stored_as_sub_directories":{"default":false,"description":"数据是否会存放在子目录中","type":"boolean","x-annotations":["@UsNoConstraint(reason = \"Boolean类型无需校验\")"],"x-imports":["com.huawei.us.validator.annotation.UsNoConstraint;"]}},"required":["columns","compressed","parameters","serde_info"],"title":"StorageDescriptor","type":"object"},"Table":{"description":"table","properties":{"catalog_id":{"description":"catalogID","maxLength":24,"minLength":1,"type":"string"},"catalog_name":{"description":"catalog名字","example":"catalog1","maxLength":256,"minLength":1,"pattern":"[a-zA-Z0-9_]+","type":"string"},"comments":{"description":"表描述信息","maxLength":2048,"pattern":".*","type":"string"},"create_time":{"description":"表创建时间","format":"date-time","type":"string"},"data_statistic_enable":{"default":true,"description":"数据概况统计开关。默认状态为开,修改table开关状态后,还需检查所属database的开关状态","type":"boolean"},"database_id":{"description":"数据库ID","maxLength":24,"minLength":1,"type":"string"},"database_name":{"description":"数据库名字","example":"db1","maxLength":128,"minLength":1,"pattern":"^[a-zA-Z0-9\\u4e00-\\u9fa5_]*$","type":"string"},"external_table_id":{"description":"用户端表id,创建时指定,不可修改","pattern":"^[A-Za-z0-9_-]{1,64}$","type":"string"},"last_access_time":{"description":"最后访问时间","format":"date-time","type":"string"},"last_analyzed_time":{"description":"上一次做列级别的统计信息计算的时间","format":"date-time","type":"string"},"owner":{"description":"用户信息","maxLength":256,"minLength":1,"pattern":"[a-zA-Z0-9_]+","type":"string"},"owner_type":{"description":"用户类型","enum":["USER","GROUP","ROLE"],"type":"string"},"parameters":{"additionalProperties":{"maxLength":409600,"type":"string"},"description":"参数","type":"object"},"partition_keys":{"description":"表分区列的列表","items":{"$ref":"#/definitions/Column"},"maxItems":100,"type":"array"},"retention":{"description":"表保留时间","format":"int32","type":"integer"},"storage_descriptor":{"$ref":"#/definitions/StorageDescriptor","description":"表的存储描述符"},"table_format":{"description":"表格式,支持HIVE,ICEBERG,LANCE,PAIMON","enum":["HIVE","ICEBERG","LANCE","PAIMON"],"type":"string"},"table_id":{"description":"表ID","maxLength":24,"minLength":1,"type":"string"},"table_name":{"description":"表名字","example":"tbl1","maxLength":256,"minLength":1,"pattern":"^[a-zA-Z0-9\\u4e00-\\u9fa5_]*$","type":"string"},"table_status":{"description":"表状态,0表示正常,1表示删除中,2表示已删除,3表示恢复中,4表示清除中,其余值为元数据更新、创建、异常等中间状态","format":"int32","type":"integer"},"table_type":{"description":"表类型","enum":["MANAGED_TABLE","EXTERNAL_TABLE","VIRTUAL_VIEW","MATERIALIZED_VIEW"],"type":"string"},"update_time":{"description":"表元数据最后一次修改时间","format":"date-time","type":"string"},"version_id":{"description":"版本ID","example":"6628b08a9f1c8f29a9fcc7b4","maxLength":24,"minLength":24,"pattern":"^[a-fA-F0-9]{24}$","type":"string"},"view_expanded_text":{"description":"如果表是视图,则为视图的扩展文本;否则为 null","maxLength":409600,"type":"string"},"view_original_text":{"description":"如果表是视图,则为视图的原始文本;否则为 null","maxLength":409600,"type":"string"}},"required":["catalog_name","create_time","database_name","last_access_time","owner","owner_type","parameters","partition_keys","retention","storage_descriptor","table_name","table_type","view_expanded_text","view_original_text"],"title":"Table","type":"object"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"647bbc777bd04317a4205d537e82c47a","info_version":"v1","method":"get","name":"ListTables","parameters":{},"paths":{"/v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}/databases/{database_name}/tables":{"get":{"deprecated":false,"description":"返回数据库下符合查询条件的表的元数据信息,不支持事务操作。\n当表名通配符或表类型不为空时,优先根据表名和类型筛选过滤。\n当表名通配符或表类型为空时,再根据属性筛选过滤。","operationId":"ListTables","parameters":[{"description":"租户token。","in":"header","items":{"type":"string"},"maxItems":100,"minItems":1,"name":"X-Auth-Token","required":true,"type":"array"},{"description":"项目编号。获取方法,请参见[获取项目ID](lakeformation_04_0026.xml)。","in":"path","maxLength":64,"minLength":1,"name":"project_id","pattern":"^[a-z0-9]+$","required":true,"type":"string"},{"description":"LakeFormation实例ID。创建实例时自动生成。例如:2180518f-42b8-4947-b20b-adfc53981a25。","in":"path","name":"instance_id","pattern":"^[a-zA-Z0-9-]{36}$|default","required":true,"type":"string"},{"description":"catalog名称。只能包含字母、数字和下划线,且长度为1~256个字符。","in":"path","maxLength":256,"minLength":1,"name":"catalog_name","pattern":"[a-zA-Z0-9_]+","required":true,"type":"string"},{"description":"数据库名称。只能包含中文、字母、数字、下划线、中划线,且长度为1~128个字符。","in":"path","maxLength":128,"minLength":1,"name":"database_name","pattern":"^[a-zA-Z0-9\\u4e00-\\u9fa5_-]*$","required":true,"type":"string"},{"default":"","description":"表名称通配符。只能包含中文、字母、数字和_|*.-特殊字符,且长度为1~256个字符。","in":"query","maxLength":256,"minLength":1,"name":"table_name_pattern","pattern":"^[a-zA-Z0-9\\u4e00-\\u9fa5_|*.-]*$","required":false,"type":"string"},{"description":"表格式。支持HIVE,ICEBERG,LANCE,PAIMON","enum":["HIVE","ICEBERG","LANCE","PAIMON"],"in":"query","name":"table_format","pattern":"^(HIVE|ICEBERG|LANCE|PAIMON)$","required":false,"type":"string"},{"description":"表类型:MANAGED_TABLE-内表、EXTERNAL_TABLE-外表、VIRTUAL_VIEW-视图、MATERIALIZED_VIEW-物化视图、DICTIONARY_TABLE字典表、LAKE_TABLE内表。","enum":["MANAGED_TABLE","EXTERNAL_TABLE","VIRTUAL_VIEW","MATERIALIZED_VIEW","DICTIONARY_TABLE","LAKE_TABLE"],"in":"query","name":"table_type","required":false,"type":"string"},{"default":"","description":"过滤条件字符串,可以按照属性查询表。\n支持的属性查找包括:\nHIVE_FILTER_FIELD_OWNER\nHIVE_FILTER_FIELD_LAST_ACCESS\nHIVE_FILTER_FIELD_PARAMS","in":"query","maxLength":1000,"minLength":0,"name":"filter","required":false,"type":"string"},{"default":100,"description":"查询返回条数。默认值为100。最小值为1,最大值为1000。当include_fields只包含name时,最大值可以为5000","format":"int32","in":"query","maximum":5000,"minimum":1,"name":"limit","required":false,"type":"integer"},{"default":"","description":"查询的起始记录ID。最小长度为0,最大长度为256。","in":"query","maxLength":1024,"minLength":0,"name":"marker","required":false,"type":"string"},{"default":false,"description":"是否倒序查询。","in":"query","name":"reverse_page","required":false,"type":"boolean","x-annotations":["@UsNoConstraint(reason = \"Boolean类型无需校验\")"],"x-imports":["com.huawei.us.validator.annotation.UsNoConstraint;"]},{"default":false,"description":"是否查询被删除元数据。","in":"query","name":"deleted","required":false,"type":"boolean","x-annotations":["@UsNoConstraint(reason = \"Boolean类型无需校验\")"],"x-imports":["com.huawei.us.validator.annotation.UsNoConstraint;"]},{"description":"包含字段,非必填,多个字段使用英文逗号分隔,不填时返回全部字段,当前暂只支持name","in":"query","name":"include_fields","required":false,"type":"string"}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"OK","examples":{"application/json":{"page_info":{"current_count":1,"next_marker":null,"previous_marker":null},"tables":[{"catalog_name":"hive","comments":"","create_time":"2022-11-19T03:10:14.000+00:00","database_name":"dba","last_access_time":"2022-12-31T23:59:59.000+00:00","last_analyzed_time":null,"owner":"lakeformation","owner_type":"USER","parameters":{"classification":"avro","transient_lastDdlTime":"1668827414","ww":"ww","www":"ww","wwww":"ww"},"partition_keys":[],"retention":0,"storage_descriptor":{"bucket_columns":[],"columns":[{"column_name":"ww","column_type":"tinyint","comment":null}],"compressed":true,"input_format":"org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat","location":"obs://lakeformation/test","number_of_buckets":0,"output_format":"org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat","parameters":{},"serde_info":{"name":"name","parameters":{"serialization.format":"1"},"serialization_library":"org.apache.hadoop.hive.serde2.avro.AvroSerDe"},"skewed_info":{"skewed_column_names":[],"skewed_column_value_location_maps":{},"skewed_column_values":[]},"sort_columns":[],"stored_as_sub_directories":false},"table_format":"HIVE","table_name":"www","table_type":"MANAGED_TABLE","update_time":null,"view_expanded_text":"","view_original_text":""}]}},"schema":{"$ref":"#/definitions/PagedListTable"}},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"common.01000001","error_msg":"failed to read http request, please check your input, code: 400, reason: Type mismatch., cause: TypeMismatchException"}},"schema":{"$ref":"#/definitions/ErrorMessage"}},"401":{"description":"Unauthorized","examples":{"application/json":"{\n  \"error_code\": \"APIG.1002\",\n  \"error_msg\": \"Incorrect token or token resolution failed\"\n}"},"schema":{"$ref":"#/definitions/ErrorMessage"}},"403":{"description":"Forbidden","examples":{"application/json":{"error":{"code":"403","error_code":null,"error_msg":null,"message":"X-Auth-Token is invalid in the request","title":"Forbidden"},"error_code":"403","error_msg":"X-Auth-Token is invalid in the request","title":"Forbidden"}},"schema":{"$ref":"#/definitions/ErrorForbiddenMessage"}},"404":{"description":"Not Found","examples":{"application/json":{"error_code":"common.01000001","error_msg":"response status exception, code: 404"}},"schema":{"$ref":"#/definitions/ErrorMessage"}},"408":{"description":"Request Timeout","examples":{"application/json":{"error_code":"common.00000408","error_msg":"timeout exception occurred"}},"schema":{"$ref":"#/definitions/ErrorMessage"}},"500":{"description":"Internal Server Error","examples":{"application/json":{"error_code":"common.00000500","error_msg":"internal error"}},"schema":{"$ref":"#/definitions/ErrorMessage"}}},"summary":"根据条件分页列举表信息","tags":["Table"],"x-apiexplorer-hide":"N","x-apigw-publish":"Y","x-enable-auth-anno":{"type":"iam-token"},"x-iam-auth-meta-anno":{"abacAction":"lakeformation:table:describe","authLevel":"instance"},"x-imports":["com.huawei.lakeformation.common.annotation.ApiCount;"],"x-is-registered":"Y","x-method-annotations":["@ApiCount"],"x-order":3,"x-request-examples-url-1":"GET https://{endpoint} /v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}/databases/{database_name}/tables","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"根据条件分页列举表信息","tags":"数据表管理","uri":null,"version":"2.0"}