列出组织服务帐户

获取 /api/v1/组织/{id}/服务账户

列出组织范围内的客户数服务帐户。需要组织管理员或组织成员(只读)。

路径参数

  • id 字符串 必需

    组织 ID

查询参数

  • limit 整型

    页面大小 (默认 50, 最大 200)

  • cursor 字符串

    键集游标来自上一个响应的 next_cursor

响应

  • 不支持或格式错误的 API 版本、所选已发布合同中不可用的操作,或不可接受的表示形式(包括不支持的媒体类型参数或排除的 SSE)。现有的身份验证、授权和速率限制失败具有优先权。

    隐藏响应属性 显示响应属性 对象
    • badRequestDetail 对象

      由标准错误模式定义的可选验证详细信息;API 协商错误不会发出此字段。

      隐藏 BadRequestDetail 属性 显示 BadRequestDetail 属性 对象
      • 字段 大量[对象]

        字段验证失败。

        隐藏字段属性 显示字段属性 对象

        字段及其验证失败。

        • 描述 字符串 必需

          人类可读验证失败。

        • 字段 字符串 必需

          无效请求字段的名称或路径。

    • 详细信息 字符串 必需

      可读的错误详情。

    • 错误 整型 必需

      HTTP status code.

    • 错误代码 字符串 必需

      机器可读的错误码。

    • 参数 array[string]

      与错误相关的请求参数名称;当无相关参数时省略。

    • 原因 字符串 必需

      HTTP 状态原因语句。

    隐藏响应属性 显示响应属性 对象
    • badRequestDetail 对象

      由标准错误模式定义的可选验证详细信息;API 协商错误不会发出此字段。

      隐藏 BadRequestDetail 属性 显示 BadRequestDetail 属性 对象
      • 字段 大量[对象]

        字段验证失败。

        隐藏字段属性 显示字段属性 对象

        字段及其验证失败。

        • 描述 字符串 必需

          人类可读验证失败。

        • 字段 字符串 必需

          无效请求字段的名称或路径。

    • 详细信息 字符串 必需

      可读的错误详情。

    • 错误 整型 必需

      HTTP status code.

    • 错误代码 字符串 必需

      机器可读的错误码。

    • 参数 array[string]

      与错误相关的请求参数名称;当无相关参数时省略。

    • 原因 字符串 必需

      HTTP 状态原因语句。

  • 200

    正常

    隐藏响应属性 显示响应属性 对象
    • caller_ip 字符串

      CallerIP 是管理员的 IP 地址,即网关所见的 IP 地址(Gin ClientIP / 可信任代理)。当不知时省略。在此搭载,以便 IP 访问列表用户界面可以从缓存的列表响应中读取它(Atlas 风格;没有专用的回显 API)。

    • 下一个光标 字符串

      NextCursor 是下一页的键集游标;当此页为最后一页时为空。总计始终计算整个范围,忽略游标。

    • 服务帐户 大量[对象]
      隐藏 service_accounts 属性 显示 service_accounts 属性 对象
      • active_secret 对象
        隐藏 active_secret 属性 显示 active_secret 属性 对象
        • created_at 字符串
        • expires_at 字符串
        • last_used_at 字符串
        • masked_value 字符串
      • client_id 字符串
      • created_at 字符串
      • 描述 字符串
      • id 字符串
      • ip_access_list array[string]
      • is_active 布尔
      • 系统管理 布尔
      • 名称 字符串
      • org_id 字符串
      • 所有者 字符串
      • PROJECT_ID 字符串
      • role_assignments 大量[对象]
        隐藏 role_assignments 属性 显示 role_assignments 属性 对象
        • org_id 字符串
        • PROJECT_ID 字符串
        • 角色 字符串
      • 类型 字符串
      • updated_at 字符串
    • 总计 整型
    隐藏响应属性 显示响应属性 对象
    • caller_ip 字符串

      CallerIP 是管理员的 IP 地址,即网关所见的 IP 地址(Gin ClientIP / 可信任代理)。当不知时省略。在此搭载,以便 IP 访问列表用户界面可以从缓存的列表响应中读取它(Atlas 风格;没有专用的回显 API)。

    • 下一个光标 字符串

      NextCursor 是下一页的键集游标;当此页为最后一页时为空。总计始终计算整个范围,忽略游标。

    • 服务帐户 大量[对象]
      隐藏 service_accounts 属性 显示 service_accounts 属性 对象
      • active_secret 对象
        隐藏 active_secret 属性 显示 active_secret 属性 对象
        • created_at 字符串
        • expires_at 字符串
        • last_used_at 字符串
        • masked_value 字符串
      • client_id 字符串
      • created_at 字符串
      • 描述 字符串
      • id 字符串
      • ip_access_list array[string]
      • is_active 布尔
      • 系统管理 布尔
      • 名称 字符串
      • org_id 字符串
      • 所有者 字符串
      • PROJECT_ID 字符串
      • role_assignments 大量[对象]
        隐藏 role_assignments 属性 显示 role_assignments 属性 对象
        • org_id 字符串
        • PROJECT_ID 字符串
        • 角色 字符串
      • 类型 字符串
      • updated_at 字符串
    • 总计 整型
  • Bad Request

    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
  • Forbidden

    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
  • 未找到

    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
  • 内部服务器错误

    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
GET /api/v1/组织/{id}/服务账户
curl \
 --request GET 'https://agentengine.mongodb.com/api/v1/organizations/{id}/service-accounts' \
 --header "Authorization: $API_KEY"
响应示例 (406)
{
  "detail": "This operation is not available in API version 2026-09-20-preview.",
  "error": 406,
  "errorCode": "OPERATION_NOT_IN_API_VERSION",
  "parameters": [
    "Accept"
  ],
  "reason": "Not Acceptable"
}
{
  "detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
  "error": 406,
  "errorCode": "UNACCEPTABLE_MEDIA_TYPE",
  "parameters": [
    "Accept"
  ],
  "reason": "Not Acceptable"
}
{
  "detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
  "error": 406,
  "errorCode": "UNSUPPORTED_API_VERSION",
  "parameters": [
    "Accept"
  ],
  "reason": "Not Acceptable"
}
响应示例 (406)
{
  "detail": "This operation is not available in API version 2026-09-20-preview.",
  "error": 406,
  "errorCode": "OPERATION_NOT_IN_API_VERSION",
  "parameters": [
    "Accept"
  ],
  "reason": "Not Acceptable"
}
响应示例 (200)
{
  "caller_ip": "string",
  "next_cursor": "string",
  "service_accounts": [
    {
      "active_secret": {
        "created_at": "string",
        "expires_at": "string",
        "last_used_at": "string",
        "masked_value": "string"
      },
      "client_id": "string",
      "created_at": "string",
      "description": "string",
      "id": "string",
      "ip_access_list": [
        "string"
      ],
      "is_active": true,
      "is_system_managed": true,
      "name": "string",
      "org_id": "string",
      "owner": "string",
      "project_id": "string",
      "role_assignments": [
        {
          "org_id": "string",
          "project_id": "string",
          "role": "string"
        }
      ],
      "type": "string",
      "updated_at": "string"
    }
  ],
  "total": 42
}
响应示例 (200)
{
  "caller_ip": "string",
  "next_cursor": "string",
  "service_accounts": [
    {
      "active_secret": {
        "created_at": "string",
        "expires_at": "string",
        "last_used_at": "string",
        "masked_value": "string"
      },
      "client_id": "string",
      "created_at": "string",
      "description": "string",
      "id": "string",
      "ip_access_list": [
        "string"
      ],
      "is_active": true,
      "is_system_managed": true,
      "name": "string",
      "org_id": "string",
      "owner": "string",
      "project_id": "string",
      "role_assignments": [
        {
          "org_id": "string",
          "project_id": "string",
          "role": "string"
        }
      ],
      "type": "string",
      "updated_at": "string"
    }
  ],
  "total": 42
}
响应示例 (400)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (400)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (403)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (403)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (404)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (404)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (500)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (500)
{
  "code": "string",
  "error": "string",
  "success": true
}