查询服务级账号

最近更新时间: 2026-10-10 00:11:03

1. 接口描述

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

查询服务级账号

默认接口请求频率限制: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.com
Content-Type: application/json
X-TC-Action: DescribeServiceAccounts
<Common Parameters>

{
  "RegistryId": "tcrreg",
  "All": true,
  "EmbedPermission": true,
  "Filters": [
    {
      "Name": "thisisaname",
      "Values": [
        "thisisavalue"
      ]
    }
  ],
  "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"
  }
}