查询服务级账号

最近更新时间: 2026-09-17 00:02:57

1. 接口描述

接口请求域名: tcr.api3.fincloud.tencent.cn。

查询服务级账号

默认接口请求频率限制:20次/秒。

接口更新时间:2023-09-11 02:44:06。

接口既验签名又鉴权。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:DescribeServiceAccounts
Version String 公共参数,本接口取值:2019-09-24
Region String 公共参数,地域信息本接口不需要传递此参数。
RegistryId String 实例Id
示例值:
All Bool 列出所有服务级账号
示例值:
EmbedPermission Bool 是否填充权限信息
示例值:
Filters Array of Filter 过滤条件
示例值:查看
Offset Int64 偏移量,默认0
示例值:
Limit Int64 最大输出条数,默认20,最大为100(超出最大值,调整到最大值)
示例值:

3. 输出参数

参数名称 类型 描述
ServiceAccounts Array of ServiceAccount 服务级账号列表
示例值:查看
TotalCount Int64 服务级账户数量
示例值:
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码 描述
InvalidParameter 参数错误。
UnsupportedOperation 操作不支持。
UnknownParameter 未知参数错误。
OperationDenied 操作被拒绝。
FailedOperation 操作失败。
FailedOperation.DbError 数据库错误。

5. 示例

示例1 查询服务级账号

查询服务级账号

输入示例

POST / HTTP/1.1
Host: tcr.api3.fincloud.tencent.cn
Content-Type: application/json
X-TC-Action: DescribeServiceAccounts
<公共请求参数>

{
  "RegistryId": "abc",
  "All": true,
  "EmbedPermission": true,
  "Filters": [
    {
      "Name": "abc",
      "Values": [
        "abc"
      ]
    }
  ],
  "Offset": 0,
  "Limit": 0
}

输出示例

{
  "Response": {
    "ServiceAccounts": [
      {
        "Name": "abc",
        "Description": "abc",
        "Disable": true,
        "ExpiresAt": 0,
        "CreateTime": "2020-09-22T00:00:00+00:00",
        "UpdateTime": "2020-09-22T00:00:00+00:00",
        "Permissions": [
          {
            "Resource": "abc",
            "Actions": [
              "abc"
            ]
          }
        ]
      }
    ],
    "TotalCount": 0,
    "RequestId": "abc"
  }
}