Method: subscriptions.list

Google Workspace 구독을 나열합니다. 이 방법을 사용하는 방법을 알아보려면 Google Workspace 구독 목록 표시를 참고하세요.

HTTP 요청

GET https://workspaceevents.googleapis.com/v1beta/subscriptions

URL은 gRPC 트랜스코딩 구문을 사용합니다.

쿼리 매개변수

매개변수
pageSize

integer

선택사항입니다. 반환할 최대 구독 수입니다. 서비스가 이 값보다 더 적게 반환할 수 있습니다.

지정되지 않았거나 0로 설정된 경우 최대 50개의 정기 결제가 반환됩니다.

최댓값은 100입니다. 100보다 큰 값을 지정하면 시스템에서 구독 100개만 반환합니다.

pageToken

string

선택사항입니다. 이전 목록 정기 결제 호출에서 수신된 페이지 토큰입니다. 후속 페이지를 검색하려면 이 매개변수를 제공하세요.

페이지로 나누는 경우 필터 값이 페이지 토큰을 제공한 호출과 일치해야 합니다. 다른 값을 전달하면 예기치 않은 결과가 발생할 수 있습니다.

filter

string

필수 항목입니다. 쿼리 필터입니다.

이벤트 유형 (event_types) 및 타겟 리소스 (target_resource)별로 구독을 필터링할 수 있습니다.

쿼리에 이벤트 유형을 하나 이상 지정해야 합니다. 여러 이벤트 유형을 필터링하려면 OR 연산자를 사용하세요.

이벤트 유형과 타겟 리소스를 모두 기준으로 필터링하려면 AND 연산자를 사용하고 //chat.googleapis.com/spaces/{space}과 같은 전체 리소스 이름을 지정하세요.

예를 들어 다음 쿼리는 유효합니다.

event_types:"google.workspace.chat.membership.v1.updated" OR
  event_types:"google.workspace.chat.message.v1.created"

event_types:"google.workspace.chat.message.v1.created" AND
  target_resource="//chat.googleapis.com/spaces/{space}"

( event_types:"google.workspace.chat.membership.v1.updated" OR
  event_types:"google.workspace.chat.message.v1.created" ) AND
  target_resource="//chat.googleapis.com/spaces/{space}"

서버는 INVALID_ARGUMENT 오류와 함께 잘못된 쿼리를 거부합니다.

요청 본문

요청 본문은 비어 있어야 합니다.

응답 본문

SubscriptionsService.ListSubscriptions의 응답 메시지입니다.

성공한 경우 응답 본문은 다음과 같은 구조의 데이터를 포함합니다.

JSON 표현
{
  "subscriptions": [
    {
      object (Subscription)
    }
  ],
  "nextPageToken": string
}
필드
subscriptions[]

object (Subscription)

정기 결제 목록입니다.

nextPageToken

string

다음 페이지를 검색하기 위해 pageToken으로 전송할 수 있는 토큰입니다. 이 필드를 생략하면 후속 페이지가 표시되지 않습니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/meetings.space.created
  • https://www.googleapis.com/auth/meetings.space.readonly
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.readonly

자세한 내용은 승인 가이드를 참고하세요.