이벤트 구독 나열

얻다 /groups/{groupId}/apps/{appId}/event_subscriptions

모든 이벤트 구독을 가져옵니다.

경로 매개변수

쿼리 매개변수

  • 유형 문자열

    반환할 이벤트 구독 유형입니다.

    • DATABASE: 데이터베이스 트리거 반환
    • AUTHENTICATION: 인증 트리거 반환
    • SCHEDULED: 예정된 트리거 반환
    • SYNCTRANSLATOR: Device Sync 번역기 반환

    값은 DATABASE, AUTHENTICATION, SCHEDULED 또는 SYNCTRANSLATOR입니다.

응답

  • 200 application/json

    성공하였습니다.

    변경 이벤트 스트림 에 대한 구독 .

    다음 중 하나입니다.
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"
        }
      }
    }
  }
]