huawei-cloud-api-definitions-LakeFormation 0.1.20260918

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"","definitions":{"Credential":{"description":"临时密钥和securityToken","properties":{"access":{"description":"AK。Access Key,是用来标识用户身份的访问密钥。","maxLength":65534,"minLength":0,"type":"string"},"secret":{"description":"SK。Secret Key,用来对访问密钥进行加密签名,以验证身份。","maxLength":65534,"minLength":0,"type":"string"},"security_token":{"description":"security_token是将所获的AK、SK等信息进行加密后的字符串","maxLength":65534,"minLength":0,"type":"string"}},"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"},"IdentityInput":{"description":"用户名称,用户组,角色三个信息","properties":{"groups":{"description":"用户组","items":{"example":"superGroup","maxLength":256,"minLength":1,"pattern":"^[a-zA-Z_0-9]+$","type":"string"},"maxItems":50,"minItems":0,"type":"array"},"roles":{"description":"角色","items":{"example":"admin","maxLength":256,"minLength":1,"pattern":"^[a-zA-Z_0-9]+$","type":"string"},"maxItems":50,"minItems":0,"type":"array"},"user_names":{"description":"IAM用户","example":"","items":{"example":"admin","maxLength":256,"minLength":1,"pattern":"^[a-zA-Z_0-9]+$","type":"string"},"maxItems":50,"minItems":0,"type":"array"}},"type":"object"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"631a7ee48b794a67b9b5b7b51649632a","info_version":"v1","method":"post","name":"ShowCredential","parameters":{},"paths":{"/v1/{project_id}/instances/{instance_id}/credential":{"post":{"deprecated":false,"description":"获取临时密钥和securityToken,失效时间大于等于1小时,请在1小时内更新","operationId":"ShowCredential","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","minLength":1,"name":"instance_id","pattern":"^[a-zA-Z0-9-]{36}$","required":true,"type":"string"},{"description":"用户/用户组/角色信息","in":"body","name":"ShowCredentialRequestBody","required":true,"schema":{"$ref":"#/definitions/IdentityInput"}}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"OK","examples":{"application/json":{"access":"ABC***123","secret":"ABC***123","security_token":"abc***000"}},"schema":{"$ref":"#/definitions/Credential"}},"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","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"}}},"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":"获取临时密钥和securityToken","tags":["Credential"],"x-apiexplorer-hide":"N","x-cts-meta-anno":{"isAsyncApi":"false","resourceType":"Credential","traceName":"getCredential"},"x-enable-auth-anno":{"type":"iam-token"},"x-iam-auth-meta-anno":{"abacAction":"lakeformation:credential:describe","authLevel":"instance"},"x-imports":["com.huawei.lakeformation.common.annotation.ApiCount;"],"x-is-registered":"Y","x-method-annotations":["@ApiCount"],"x-request-examples-1":{"groups":["superGroup"],"roles":["admin"],"user_names":["user1"]},"x-request-examples-text-1":{"groups":["superGroup"],"roles":["admin"],"user_names":["user1"]},"x-request-examples-url-1":"POST https://{endpoint}/v1/{project_id}/instances/{instance_id}/credential","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"获取临时密钥和securityToken","tags":"Credential","uri":null,"version":"2.0"}