イベント サブスクリプションを一覧表示する

GET /groups/{groupId}/apps/{appId}/event_subscriptions

すべてのイベント サブスクリプションを取得します。

path パラメータ

クエリ パラメータ

  • タイプ string

    返すイベント サブスクリプションの種類。

    • DATABASE: データベース Triggers を返す
    • AUTHENTICATION: 認証 Triggers を返す
    • SCHEDULED: 予定された Triggers を返す
    • SYNCTRANSLATOR: Device Sync トランスレーターを返す

    値は、DATABASEAUTHENTICATIONSCHEDULED、または SYNCTRANSLATOR です。

応答

  • 200 application/ JSON

    操作に成功しました。

    変更イベントストリームへのサブスクライブ。

    次の 1 つ:
GET /groups/{groupId}/apps/{appId}/event_subscriptions
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/event_subscriptions' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
応答の例(200)
[
  {
    "name": "onNewEmployee",
    "type": "DATABASE",
    "config": {
      "match": {},
      "project": {},
      "database": "HR",
      "collection": "employees",
      "service_id": "5adeb649b8b998486770ae7c",
      "full_document": true,
      "operation_types": [
        "INSERT"
      ]
    },
    "function_id": "5eea9ca4ca0e356e2c2a148a",
    "event_processors": {
      "FUNCTION": {
        "config": {
          "function_id": "6841b8d3e71dc81bed89dbba",
          "function_name": "Atlas_Triggers_DatabaseInsert_1749137618"
        }
      }
    }
  }
]