文档首页/ 湖仓构建 LakeFormation/ API参考/ API/ Console类API/ 委托管理/ 查询委托凭据 - ShowAgencyCredential
更新时间:2026-08-11 GMT+08:00
分享

查询委托凭据 - ShowAgencyCredential

功能介绍

查询委托凭据。

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

授权信息

账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限,具体权限要求请参见权限和授权项

URI

GET /v1/agency/credential

表1 Query参数

参数

是否必选

参数类型

描述

agency_type

String

参数解释:

委托类型:TABLE_SERVICE_TRUST-表服务委托

约束限制:

可选值为:TABLE_SERVICE_TRUST

取值范围:

不涉及

默认取值:

TABLE_SERVICE_TRUST

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

参数解释:

租户token

约束限制:

长度为1~65536个字符

取值范围:

长度为1~65536个字符

默认取值:

不涉及

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

agency_type

String

参数解释:

委托类型:TABLE_SERVICE_TRUST-表服务委托

agency_name

String

参数解释:

委托名称

security_token

String

参数解释:

security token

expires_at

String

参数解释:

token到期时间

issued_at

String

参数解释:

token下发时间

access

String

参数解释:

AK

secret

String

参数解释:

SK

状态码:400

表4 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码

error_msg

String

参数解释:

错误描述

common_error_code

String

参数解释:

CBC公共错误码

solution_msg

String

参数解释:

解决方案描述

状态码:401

表5 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码

error_msg

String

参数解释:

错误描述

common_error_code

String

参数解释:

CBC公共错误码

solution_msg

String

参数解释:

解决方案描述

状态码:403

表6 响应Body参数

参数

参数类型

描述

error

Error object

参数解释:

错误信息

error_code

String

参数解释:

错误码

error_msg

String

参数解释:

错误描述

title

String

参数解释:

标题

表7 Error

参数

参数类型

描述

error_code

String

参数解释:

错误码

error_msg

String

参数解释:

错误描述

title

String

参数解释:

标题

message

String

参数解释:

错误信息

code

String

参数解释:

状态码

状态码:404

表8 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码

error_msg

String

参数解释:

错误描述

common_error_code

String

参数解释:

CBC公共错误码

solution_msg

String

参数解释:

解决方案描述

状态码:408

表9 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码

error_msg

String

参数解释:

错误描述

common_error_code

String

参数解释:

CBC公共错误码

solution_msg

String

参数解释:

解决方案描述

状态码:500

表10 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码

error_msg

String

参数解释:

错误描述

common_error_code

String

参数解释:

CBC公共错误码

solution_msg

String

参数解释:

解决方案描述

请求示例

响应示例

状态码:200

查询委托凭据成功

{
  "agency_type" : "TABLE_SERVICE_TRUST",
  "agency_name" : "table_trust",
  "security_token" : "string",
  "expires_at" : "string",
  "issued_at" : "string",
  "access" : "string",
  "secret" : "string"
}

状态码

状态码

描述

200

查询委托凭据成功

400

{

"error_code": "common.01000001",

"error_msg": "failed to read http request, please check your input, code: 400, reason: Type mismatch., cause: TypeMismatchException"

}

401

{

"error_code": "APIG.1002",

"error_msg": "Incorrect token or token resolution failed"

}

403

{

"error_code": "lakeformation.00010003",

"error_msg": "failed",

"common_error_code": "CMM.1008",

"solution_msg": "Please use correct instance id."

}

404

{

"error_code": "common.01000001",

"error_msg": "response status exception, code: 404"

}

408

{

"error_code": "common.00000408",

"error_msg": "timeout exception occurred"

}

500

{

"error_code": "common.00000500",

"error_msg": "internal error"

}

错误码

请参见错误码

相关文档