{"base_path":null,"components":null,"consumes":"","definitions":{"Database":{"description":"database","properties":{"catalog_name":{"description":"catalog名称","maxLength":256,"minLength":1,"pattern":"[a-zA-Z0-9_]+","type":"string"},"database_name":{"description":"数据库名称","maxLength":128,"minLength":1,"pattern":"^[a-zA-Z0-9\\u4e00-\\u9fa5_]*$","type":"string"},"description":{"description":"数据库描述信息","maxLength":2048,"pattern":"[\\u0020-\\uD7FF\\uFF00-\\uFFFF\\u000A\\u000D]+","type":"string"},"function_location_list":{"description":"函数路径列表。默认为null,当值为null时,响应Body无该参数。","items":{"description":"路径地址。例如obs://location/uri/","maxLength":4000,"pattern":"^(obs|har)://.+/.+$","type":"string"},"maxItems":1000,"minItems":0,"type":"array"},"location":{"description":"数据库路径地址。例如obs://location/uri/","maxLength":4000,"pattern":"^(obs|har)://.+/.+$|^$","type":"string"},"owner":{"description":"数据库所有者","maxLength":256,"minLength":1,"pattern":"[a-zA-Z0-9_]+","type":"string"},"owner_auth_source_type":{"description":"所有者授权来源类型,IAM-云用户,SAML-联邦,LDAP-ld用户,LOCAL-本地用户,AGENTTENANT-委托,OTHER-其它。LakeFormation服务分为一期和二期,一期响应Body无该参数。","enum":["IAM","SAML","LDAP","LOCAL","AGENTTENANT","OTHER"],"type":"string"},"owner_type":{"description":"所有者类型,USER-用户,GROUP-组,ROLE-角色","enum":["USER","GROUP","ROLE"],"type":"string"},"parameters":{"additionalProperties":{"maxLength":409600,"pattern":"[\\u0020-\\uD7FF\\uFF00-\\uFFFF]+","type":"string"},"description":"参数信息","type":"object"},"table_location_list":{"description":"表路径列表。LakeFormation服务分为一期和二期,一期响应Body无该参数,二期默认为null。当值为null时,响应Body无该参数。","items":{"description":"路径地址。例如obs://location/uri/","maxLength":4000,"pattern":"^(obs|har)://.+/.+$","type":"string"},"maxItems":1000,"minItems":0,"type":"array"}},"required":["catalog_name","database_name","owner","owner_type","description","location","parameters"],"title":"Database"},"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"},"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"},"PagedListDatabase":{"properties":{"databases":{"items":{"$ref":"#/definitions/Database"},"type":"array"},"page_info":{"$ref":"#/definitions/PagedInfo","description":"分页信息"}},"title":"PagedListDatabase"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"5d81d3b98145408d8590a8a1d938a7e9","info_version":"v1","method":"get","name":"ListDatabases","parameters":{},"paths":{"/v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}/databases":{"get":{"deprecated":false,"description":"列举数据库信息。","operationId":"ListDatabases","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-Z_0-9]+$","required":true,"type":"string"},{"description":"数据库名称通配符。只能包含中文、字母、数字和_|*.-特殊字符,且长度为1~128个字符。","in":"query","maxLength":128,"minLength":1,"name":"database_name_pattern","pattern":"^[a-zA-Z0-9\\u4e00-\\u9fa5_|*.-]*$","required":false,"type":"string"},{"default":1000,"description":"查询返回条数。默认值为1000。最小值为0,最大值为1000。","format":"int32","in":"query","maximum":1000,"minimum":0,"name":"limit","required":false,"type":"integer"},{"default":"","description":"查询的起始记录ID。最小长度为0,最大长度为256。","in":"query","maxLength":256,"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;"]},{"description":"用户端数据库id,创建时指定,不可修改。","in":"query","name":"external_database_id","pattern":"^[A-Za-z0-9_-]{1,64}$","required":false,"type":"string"},{"default":false,"description":"是否查询被删除元数据。","in":"query","name":"deleted","required":false,"type":"boolean","x-annotations":["@UsNoConstraint(reason = \"Boolean类型无需校验\")"],"x-imports":["com.huawei.us.validator.annotation.UsNoConstraint;"]}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"OK","examples":{"application/json":{"databases":[{"catalog_name":"hive","database_name":"policy_test","description":"","function_location_list":null,"location":"obs://lakeformation/test","owner":"lakeformation","owner_auth_source_type":"IAM","owner_type":"USER","parameters":{},"table_location_list":null}],"page_info":{"current_count":1,"next_marker":null,"previous_marker":null}}},"schema":{"$ref":"#/definitions/PagedListDatabase"}},"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":["Database"],"x-apiexplorer-hide":"N","x-apigw-publish":"Y","x-enable-auth-anno":{"type":"iam-token"},"x-iam-auth-meta-anno":{"abacAction":"lakeformation:database:describe","authLevel":"instance"},"x-imports":["com.huawei.lakeformation.common.annotation.ApiCount;"],"x-is-registered":"Y","x-method-annotations":["@ApiCount"],"x-request-examples-url-1":"GET https://{endpoint}/v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}/databases","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"列举数据库信息","tags":"数据库管理","uri":null,"version":"2.0"}