{"base_path":null,"components":null,"consumes":"","definitions":{"Catalog":{"description":"catalog response","properties":{"catalog_name":{"description":"catalog名称","example":"c1","maxLength":256,"minLength":1,"pattern":"[a-zA-Z0-9_]+","type":"string"},"database_location_list":{"description":"数据库路径列表。当值为null时,响应Body无该参数。","items":{"description":"路径地址。例如obs://location/uri/","maxLength":4000,"pattern":"^(obs|har)://.+$","type":"string"},"maxItems":1000,"minItems":0,"type":"array"},"description":{"description":"描述信息","maxLength":4000,"pattern":"[\\u0020-\\uD7FF\\uFF00-\\uFFFF\\u000A\\u000D]+","type":"string"},"location":{"description":"路径地址。例如obs://location/uri/","example":"/location/uri/","maxLength":4000,"pattern":"^(obs|har)://.+/.+$","type":"string"},"owner":{"description":"catalog所有者。LakeFormation服务分为一期和二期,一期响应Body无该参数。","example":"admin","maxLength":128,"pattern":"[a-zA-Z0-9_]+","type":"string"},"owner_source":{"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-角色。LakeFormation服务分为一期和二期,一期响应Body无该参数。","enum":["USER","ROLE","GROUP"],"type":"string"}},"required":["catalog_name"],"title":"Catalog","type":"object"},"CatalogInput":{"description":"catalog信息","properties":{"branch_name":{"description":"分支名称。只能包含字母、数字和下划线,且长度为1~32个字符。","maxLength":32,"minLength":1,"pattern":"^[a-zA-Z_0-9]+$","type":"string"},"catalog_name":{"description":"catalog名称。只能包含字母、数字和下划线,且长度为1~256个字符。","example":"hive","maxLength":256,"minLength":1,"pattern":"^[a-zA-Z_0-9]+$","type":"string"},"database_location_list":{"description":"数据库路径列表。最小条目数为0,最大条目数为1000。","items":{"description":"路径地址。例如obs://location/uri/","maxLength":4000,"pattern":"^(obs|har)://.+$","type":"string"},"maxItems":1000,"minItems":0,"type":"array"},"description":{"description":"描述信息。最大长度为4000个字符。","maxLength":4000,"pattern":".*","type":"string"},"location":{"description":"路径地址。例如obs://location/uri/","example":"obs://location/uri/","maxLength":4000,"pattern":"^(obs|har)://.+/.+$","type":"string"},"owner":{"description":"catalog所有者。只能包含字母、数字和下划线,且最大长度为128个字符。","example":"admin","maxLength":128,"pattern":"[a-zA-Z0-9_]+","type":"string"},"owner_source":{"description":"所有者来源,IAM-云用户,SAML-联邦,LDAP-ld用户,LOCAL-本地用户,AGENTTENANT-委托,OTHER-其它","enum":["IAM","SAML","LDAP","LOCAL","AGENTTENANT","OTHER"],"type":"string"},"owner_type":{"description":"所有者类型,USER-用户,GROUP-组,ROLE-角色","enum":["USER","ROLE","GROUP"],"type":"string"}},"required":["catalog_name"],"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"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"dd1af8f7c1da4beda7137fd36a32cd20","info_version":"v1","method":"put","name":"UpdateCatalog","parameters":{},"paths":{"/v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}":{"put":{"consumes":["application/json"],"deprecated":false,"description":"修改catalog信息","operationId":"UpdateCatalog","parameters":[{"description":"租户token","in":"header","items":{"type":"string"},"name":"X-Auth-Token","required":true,"type":"array"},{"description":"项目id","in":"path","maxLength":64,"minLength":1,"name":"project_id","pattern":"^[a-z0-9]+$","required":true,"type":"string"},{"description":"实例Id","in":"path","name":"instance_id","pattern":"^[a-zA-Z0-9-]{36}$","required":true,"type":"string"},{"description":"catalog名字","in":"path","maxLength":256,"minLength":1,"name":"catalog_name","pattern":"^[a-zA-Z_0-9]+$","required":true,"type":"string"},{"description":"catalog的修改信息","in":"body","name":"catalog_input","required":true,"schema":{"$ref":"#/definitions/CatalogInput"}}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"OK","examples":{"application/json":{"catalog_name":"hive","description":"Default catalog, for Hive","location":"obs://lakeformation/test"}},"schema":{"$ref":"#/definitions/Catalog"}},"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}"}},"403":{"description":"Forbidden","examples":{"application/json":{"error":{"code":"403","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"}}},"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"}}},"500":{"description":"Internal Server Error","examples":{"application/json":{"error_code":"common.00000500","error_msg":"internal error"}},"schema":{"$ref":"#/definitions/ErrorMessage"}}},"summary":"修改catalog信息","tags":["Catalog"],"x-apiexplorer-hide":"N","x-cts-meta-anno":{"isAsyncApi":"false","resourceType":"Catalog","traceName":"updateCatalog"},"x-is-registered":"Y","x-request-examples-1":{"catalog_name":"hive","description":"Default catalog, for Hive","location":"obs://lakeformation/test"},"x-request-examples-text-1":{"catalog_name":"hive","description":"Default catalog, for Hive","location":"obs://lakeformation/test"},"x-request-examples-url-1":"/v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改catalog信息","tags":"目录管理","uri":null,"version":"2.0"}