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":{"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"},"TenantAgreement":{"description":"租户协议","properties":{"agreement_name":{"description":"协议名称","example":"test_name","pattern":"^[a-zA-Z0-9_-]{1,64}$","type":"string"},"agreement_version":{"description":"协议版本号","example":"v1","pattern":"^[a-zA-Z0-9]{1,32}$","type":"string"}}},"TenantAgreementBody":{"description":"租户注册协议响应体","properties":{"agreements":{"description":"租户协议列表","items":{"$ref":"#/definitions/TenantAgreement"},"maxItems":10,"minItems":0,"type":"array"}},"type":"object"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"5ddcb6e052da4189954acc0e149c0d30","info_version":"v1","method":"post","name":"CreateAgreement","parameters":{},"paths":{"/v2/agreement":{"post":{"description":"用户授权并委托","operationId":"CreateAgreement","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":"注册协议请求体,为空或不填时默认同意授权最新版本","in":"body","name":"RegisterTenantAgreementRequestBody","required":true,"schema":{"$ref":"#/definitions/TenantAgreementBody"}}],"produces":["application/json"],"responses":{"200":{"description":"注册租户协议成功","headers":{"X-request-id":{"type":"string"}}},"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":["GrantAccess"],"x-apiexplorer-hide":"N","x-enable-auth-anno":{"type":"iam-token"},"x-iam-auth-meta-anno":{"abacAction":"lakeformation:instance:describe","authLevel":"project","rbac":"te_admin","supportAllGrantedEps":"true"},"x-is-registered":"Y","x-request-examples-1":{"agreements":[{"agreement_name":"agreement AAA","agreement_version":"v1"},{"agreement_name":"agreement BBB","agreement_version":"v1"}]},"x-request-examples-text-1":{"agreements":[{"agreement_name":"agreement AAA","agreement_version":"v1"},{"agreement_name":"agreement BBB","agreement_version":"v1"}]},"x-request-examples-url-1":"POST https://{endpoint}/v1/{project_id}/agreement","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"注册租户协议","tags":"服务授权管理","uri":null,"version":"2.0"}