huawei-cloud-api-definitions-LakeFormation 0.1.20260828

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"","definitions":{"CreateInstanceRequestBody":{"description":"创建LakeFormation实例请求体","properties":{"charge_mode":{"description":"支付类型,postPaid为按需期,prePaid为包周期","enum":["postPaid","prePaid"],"example":"postPaid","type":"string"},"description":{"description":"实例描述。用户输入的描述,最长为255个字符。","example":"string","maxLength":255,"minLength":0,"type":"string"},"enterprise_project_id":{"description":"企业项目ID,只有对接了企业项目才可以填写。只能包含字母、数字和中划线,且长度为1到64个字符。","example":"01049549-82cd-4b2b-9733-ddb94350c125","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9-]{1,64}$","type":"string","x-open-region-cloud":"hc"},"name":{"description":"实例名称。只能包含字母、数字、下划线和中划线,且长度为4到32个字符。","example":"LakeFormation_instance","maxLength":32,"minLength":4,"pattern":"^[A-Za-z0-9_-]{4,32}$","type":"string"},"shared":{"default":true,"description":"false为物理多租;true为逻辑多租。默认为true。","example":false,"pattern":"false|true","type":"boolean"},"specs":{"description":"规格列表","items":{"$ref":"#/definitions/CreateSpec"},"maxItems":10,"minItems":1,"type":"array"},"tags":{"description":"标签列表,最多添加20个标签。","items":{"$ref":"#/definitions/ResourceTag"},"maxItems":20,"minItems":0,"type":"array"}},"required":["name","charge_mode","shared"],"type":"object"},"CreateSpec":{"properties":{"product_id":{"description":"商品ID。由系统自动生成,如OFFI8XXXXXXXXXXXXXXXX4。","example":"XXXX","maxLength":64,"minLength":0,"type":"string"},"spec_code":{"description":"规格编码。由系统自动生成,例如lakeformation.unit.basic.qps。","example":"hws.resource.type.lakeformation.qps","maxLength":64,"minLength":1,"pattern":"[a-z.]+","type":"string"},"stride_num":{"description":"步数。QPS为每秒最大请求数步长,最小为5,步长为1。","example":1,"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"}},"required":["spec_code","stride_num"],"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"},"LakeFormationInstanceDetail":{"description":"LakeFormation实例详细信息","properties":{"charge_mode":{"description":"计费模式,postPaid=按需计费,prePaid=包周期计费","enum":["prePaid","postPaid"],"example":"postPaid","maxLength":16,"minLength":0,"type":"string"},"create_time":{"description":"实例创建时间戳","format":"date-time","type":"string"},"default_instance":{"description":"是否为默认实例","example":false,"type":"boolean"},"description":{"description":"描述。","example":"string","maxLength":255,"minLength":0,"type":"string"},"enterprise_project_id":{"description":"企业项目ID。","example":"01049549-82cd-4b2b-9733-ddb94350c125","maxLength":64,"minLength":0,"type":"string","x-open-region-cloud":"hc"},"in_recycle_bin":{"description":"是否在回收站","example":true,"type":"boolean"},"instance_id":{"description":"LakeFormation实例ID。","example":"01049549-82cd-4b2b-9733-ddb94350c125","pattern":"^[a-zA-Z0-9-]{36}$","type":"string"},"name":{"description":"实例名称。","example":"LakeFormation_instance","maxLength":32,"minLength":4,"type":"string"},"resource_expected_duration":{"description":"资源准备预计时长,单位分钟","example":20,"maximum":2147483647,"minimum":0,"type":"integer"},"resource_progress":{"description":"资源准备进度百分比,只有当实例处于资源准备中状态时才会计算并返回该值","example":80,"maximum":100,"minimum":0,"type":"integer"},"scale_expected_duration":{"description":"规格变更预计时长,单位分钟","example":20,"maximum":2147483647,"minimum":0,"type":"integer"},"scale_progress":{"description":"规格变更进度百分比,只有当实例处于规格变更中状态时才会计算并返回该值","example":80,"maximum":100,"minimum":0,"type":"integer"},"shared":{"description":"逻辑多租和物理多租的判断。false为物理多租;true为逻辑多租。","example":false,"type":"boolean"},"specs":{"description":"规格信息","items":{"$ref":"#/definitions/CreateSpec"},"maxItems":100000,"minItems":0,"type":"array"},"status":{"description":"实例状态,RESOURCE_PREPARATION-实例资源准备中,RUNNING-实例运行中,RESOURCE_RELEASE-实例资源释放中,DELETED-实例已释放,RESOURCE_PREPARATION_FAIL-实例资源准备失败,FROZEN_RELEASABLE-可恢复冻结,FROZEN_UNRELEASABLE-不可恢复冻结,RECOVERING-恢复中,DELETING-删除中,SCALING-扩容中,SCALE_FAIL-扩容失败","enum":["RESOURCE_PREPARATION","RUNNING","RESOURCE_RELEASE","DELETED","RESOURCE_PREPARATION_FAIL","FROZEN_RELEASABLE","FROZEN_UNRELEASABLE","RECOVERING","DELETING","SCALING","SCALE_FAIL"],"type":"string"},"tags":{"description":"标签列表","items":{"$ref":"#/definitions/ResourceTag"},"maxItems":20,"minItems":0,"type":"array"},"update_time":{"description":"实例更新时间戳","format":"date-time","type":"string"}},"type":"object"},"ResourceTag":{"description":"标签","properties":{"key":{"description":"键","pattern":"^[\\p{L}\\p{Z}\\p{N}_.:=+\\-@]{1,128}$","type":"string","x-example":"key1"},"value":{"description":"值","pattern":"^[\\p{L}\\p{Z}\\p{N}_.:=+\\-@]{0,255}$","type":"string","x-example":"value1"}},"required":["key"],"type":"object"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"b1995806571d41bbb0dce5dcc6b7d1ec","info_version":"v1","method":"post","name":"CreateLakeFormationInstance","parameters":{},"paths":{"/v1/{project_id}/instances":{"post":{"consumes":["application/json"],"description":"创建一个LakeFormation实例。","operationId":"CreateLakeFormationInstance","parameters":[{"description":"租户token","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIjxxxxxxxxxxxxxxxxxxxxxxxx4qA="},{"description":"项目ID","in":"path","name":"project_id","pattern":"^[0-9a-zA-Z]{32}$","required":true,"type":"string","x-example":"41aaxxxxxxxxxxxxxxxxxxxxxxxcc046"},{"description":"创建LakeFormation实例的请求体","in":"body","name":"CreateInstanceRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateInstanceRequestBody"}}],"produces":["application/json"],"responses":{"202":{"description":"创建实例请求下成功","examples":{"application/json":{"create_time":"2022-10-08T12:49:19.000+00:00","description":"string","enterprise_project_id":0,"in_recycle_bin":false,"instance_id":"01049549-82cd-4b2b-9733-ddb94350c125","name":"LakeFormation_instance","shared":false,"specs":[{"spec_code":"hws.resource.type.lakeformation.qps","stride_num":1}],"status":"running","update_time":"2022-10-08T12:49:19.000+00:00"}},"headers":{"X-request-id":{"type":"string"}},"schema":{"$ref":"#/definitions/LakeFormationInstanceDetail"}},"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":"创建实例","tags":["Instance"],"x-apiexplorer-hide":"N","x-cts-meta-anno":{"isAsyncApi":"false","resourceType":"Instance","traceName":"createInstance"},"x-enable-auth-anno":{"type":"iam-token"},"x-iam-auth-meta-anno":{"abacAction":"lakeformation:instance:create","authLevel":"project","rbac":"te_admin"},"x-is-registered":"Y","x-request-examples-1":{"charge_mode":"postPaid","description":"string","enterprise_project_id":0,"name":"LakeFormation_instance","shared":false,"specs":[{"spec_code":"string","stride_num":1}]},"x-request-examples-text-1":{"charge_mode":"postPaid","description":"string","enterprise_project_id":0,"name":"LakeFormation_instance","shared":false,"specs":[{"spec_code":"string","stride_num":1}]},"x-request-examples-url-1":"POST https://{endpoint}/v1/{project_id}/instances","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建实例","tags":"实例管理","uri":null,"version":"2.0"}