プロジェクト サービス アカウントの一覧表示

GET /API/v1/プロジェクトID/サービスアカウント

プロジェクト範囲のカスタマー サービス アカウントを一覧表示します。PROJECT_OWNER、PROJECT_MEMBER、またはAGENT_DEVELOPER (読み取り専用)が必要です。または、所有する組織のORG_ADMINも有効です。

path パラメータ

  • id string 必須

    プロジェクトID

クエリ パラメータ

  • limit integer

    ページサイズ (デフォルト 50、最大 200)

  • cursor string

    前の応答の next_cursor からの Keyset カーソル

応答

  • 未対応または形式が不正な API バージョン、選択した公開されたコントラクトでは利用できない操作、または受け入れられない表現 (未対応のメディアタイプ パラメータまたは除外された SSE を含む)。既存の認証、承認、およびレート制限の失敗が優先されます。

    応答属性の非表示 応答属性の表示 オブジェクト
    • validRequestDetail オブジェクト

      標準エラースキーマで定義された任意の検証詳細。ただし、API 交渉エラーではこのフィールドは出力されません。

      validRequestDetail 属性を非表示にする validRequestDetail 属性の表示 オブジェクト
      • フィールド array[オブジェクト]

        検証エラーのあるフィールド。

        フィールド属性を非表示にする フィールド属性の表示 オブジェクト

        フィールドとその検証の失敗。

        • 説明 string 必須

          人間が判読できる検証の失敗。

        • フィールド string 必須

          無効なリクエストフィールドの名前またはパス。

    • 詳細 string 必須

      読みやすいエラー詳細。

    • エラー integer 必須

      HTTP status code.

    • errorCode string 必須

      機械可読形式のエラーコード。

    • パラメーター array[string]

      エラーに関連するリクエスト パラメータ名。適用するものがない場合は省略されます。

    • 理由 string 必須

      HTTP ステータス理由フレーズ。

    応答属性の非表示 応答属性の表示 オブジェクト
    • validRequestDetail オブジェクト

      標準エラースキーマで定義された任意の検証詳細。ただし、API 交渉エラーではこのフィールドは出力されません。

      validRequestDetail 属性を非表示にする validRequestDetail 属性の表示 オブジェクト
      • フィールド array[オブジェクト]

        検証エラーのあるフィールド。

        フィールド属性を非表示にする フィールド属性の表示 オブジェクト

        フィールドとその検証の失敗。

        • 説明 string 必須

          人間が判読できる検証の失敗。

        • フィールド string 必須

          無効なリクエストフィールドの名前またはパス。

    • 詳細 string 必須

      読みやすいエラー詳細。

    • エラー integer 必須

      HTTP status code.

    • errorCode string 必須

      機械可読形式のエラーコード。

    • パラメーター array[string]

      エラーに関連するリクエスト パラメータ名。適用するものがない場合は省略されます。

    • 理由 string 必須

      HTTP ステータス理由フレーズ。

  • 200

    OK

    応答属性の非表示 応答属性の表示 オブジェクト
    • caller_ip string

      CallerIP は、ゲートウェイが見るところの管理者の IP です (Gin ClientIP またはトラストプロキシ)。不明な場合は省略ここに含まれているため、IP アクセス リスト UI はキャッシュされたリスト応答から読み取ることができます(Atlas スタイルです。専用のエコー API はありません)。

    • next_cursor string

      NextCursor は次のページ用のキーセットカーソルです。このページが最後の場合は空です。合計値は常にカーソルを無視して範囲全体をカウントします。

    • サービスアカウント array[オブジェクト]
      service_accounts 属性を隠す サービスアカウント属性の表示 オブジェクト
      • アクティブ・シークレット オブジェクト
        active_secret 属性を隠す active_secret 属性を表示 オブジェクト
        • created_at string
        • expires_at string
        • last_used_at string
        • masked_value string
      • client_id string
      • created_at string
      • 説明 string
      • id string
      • ip_access_list array[string]
      • 有効 ブール値
      • is_system_managed ブール値
      • name string
      • org_id string
      • 所有者 string
      • project_id string
      • role_assignments array[オブジェクト]
        ロール割り当ての属性の非表示 role_assignments 属性の表示 オブジェクト
        • org_id string
        • project_id string
        • ロール string
      • タイプ string
      • Updated_at string
    • 合計 integer
    応答属性の非表示 応答属性の表示 オブジェクト
    • caller_ip string

      CallerIP は、ゲートウェイが見るところの管理者の IP です (Gin ClientIP またはトラストプロキシ)。不明な場合は省略ここに含まれているため、IP アクセス リスト UI はキャッシュされたリスト応答から読み取ることができます(Atlas スタイルです。専用のエコー API はありません)。

    • next_cursor string

      NextCursor は次のページ用のキーセットカーソルです。このページが最後の場合は空です。合計値は常にカーソルを無視して範囲全体をカウントします。

    • サービスアカウント array[オブジェクト]
      service_accounts 属性を隠す サービスアカウント属性の表示 オブジェクト
      • アクティブ・シークレット オブジェクト
        active_secret 属性を隠す active_secret 属性を表示 オブジェクト
        • created_at string
        • expires_at string
        • last_used_at string
        • masked_value string
      • client_id string
      • created_at string
      • 説明 string
      • id string
      • ip_access_list array[string]
      • 有効 ブール値
      • is_system_managed ブール値
      • name string
      • org_id string
      • 所有者 string
      • project_id string
      • role_assignments array[オブジェクト]
        ロール割り当ての属性の非表示 role_assignments 属性の表示 オブジェクト
        • org_id string
        • project_id string
        • ロール string
      • タイプ string
      • Updated_at string
    • 合計 integer
  • 無効なリクエスト

    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
  • Forbidden

    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
  • 見つかりません

    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
  • 内部サーバーエラー

    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
    応答属性の非表示 応答属性の表示 オブジェクト
    • コード string
    • エラー string
    • 成功 ブール値
GET /API/v1/プロジェクト/{id}/service-accounts
curl \
 --request GET 'https://agentengine.mongodb.com/api/v1/projects/{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
}