{"base_path":null,"components":null,"consumes":"","definitions":{"AgencyRequestBody":{"description":"委托请求信息","properties":{"agency_type":{"description":"委托类型,JOB_TRUST-任务委托,ADMIN_TRUST-系统委托","enum":["JOB_TRUST","ADMIN_TRUST"],"type":"string"}},"required":["agency_type"],"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":"c95872f90a8c4d61b13276a768d16e92","info_version":"v1","method":"delete","name":"DeleteAgency","parameters":{},"paths":{"/v1/{project_id}/agency":{"delete":{"consumes":["application/json"],"description":"删除委托","operationId":"DeleteAgency","parameters":[{"description":"项目编号。获取方法,请参见[获取项目ID](lakeformation_04_0026.xml)。","in":"path","name":"project_id","pattern":"^[0-9a-zA-Z]{32}$","required":true,"type":"string"},{"description":"租户token","in":"header","maxLength":65535,"minLength":0,"name":"X-Auth-Token","required":true,"type":"string"},{"description":"委托请求信息","in":"body","name":"DeleteAgencyRequestBody","required":true,"schema":{"$ref":"#/definitions/AgencyRequestBody"}}],"produces":["application/json"],"responses":{"200":{"description":"删除委托成功","headers":{"X-request-id":{"description":"请求ID,定位辅助信息。","type":"string"}}},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"common.01000001","error_msg":"response status exception, code: 404"}},"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":{"type":"string"}},"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":{"type":"string"}},"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":{"type":"string"}},"500":{"description":"Internal Server Error","examples":{"application/json":{"error_code":"common.00000500","error_msg":"internal error"}},"schema":{"$ref":"#/definitions/ErrorMessage"}}},"summary":"删除委托","tags":["Agency"],"x-apiexplorer-hide":"N","x-cts-meta-anno":{"isAsyncApi":"false","resourceType":"Agency","traceName":"deleteAgency"},"x-enable-auth-anno":{"type":"iam-token"},"x-iam-auth-meta-anno":{"abacAction":"lakeformation:agency:drop","authLevel":"project","rbac":"te_admin"},"x-is-registered":"Y","x-request-examples-1":{"agency_type":"JOB_TRUST"},"x-request-examples-description-1":"删除委托","x-request-examples-text-1":{"agency_type":"JOB_TRUST"},"x-request-examples-url-1":"DELETE https://{endpoint}/v1/{project_id}/agency","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"删除委托","tags":"Agency","uri":null,"version":"2.0"}