Method: accounts.list
호출자가 액세스할 수 있는 모든 계정을 반환합니다.
이러한 계정에는 현재 GA 속성이 없을 수 있습니다. 임시 삭제된 (예: '휴지통') 계정은 기본적으로 제외됩니다. 관련 계정이 없으면 빈 목록을 반환합니다.
HTTP 요청
GET https://analyticsadmin.googleapis.com/v1beta/accounts
URL은 gRPC 트랜스코딩 구문을 사용합니다.
쿼리 매개변수
매개변수 |
pageSize |
integer
반환할 최대 리소스 수입니다. 페이지가 더 있더라도 서비스에서 이 값보다 적은 값을 반환할 수 있습니다. 지정하지 않으면 최대 50개의 리소스가 반환됩니다. 최대값은 200이며, 그보다 큰 값은 최대값으로 변환됩니다.
|
pageToken |
string
이전 accounts.list 호출에서 받은 페이지 토큰입니다. 후속 페이지를 검색하려면 이를 입력합니다. 페이지로 나누는 경우, accounts.list 에 제공하는 다른 모든 매개변수가 페이지 토큰을 제공한 호출과 일치해야 합니다.
|
showDeleted |
boolean
결과에 소프트 삭제된 (예: '휴지통') 계정을 포함할지 여부입니다. 계정을 검사하여 삭제되었는지 확인할 수 있습니다.
|
응답 본문
accounts.list RPC의 요청 메시지입니다.
성공한 경우 응답 본문은 다음과 같은 구조의 데이터를 포함합니다.
JSON 표현 |
{
"accounts": [
{
object (Account )
}
],
"nextPageToken": string
} |
필드 |
accounts[] |
object (Account )
호출자가 액세스할 수 있었던 결과입니다.
|
nextPageToken |
string
다음 페이지를 검색하기 위해 pageToken 으로 전송할 수 있는 토큰입니다. 이 필드를 생략하면 후속 페이지가 표시되지 않습니다.
|
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-01-14(UTC)
[null,null,["최종 업데이트: 2025-01-14(UTC)"],[[["Retrieves all Google Analytics 4 accounts accessible by the authenticated user, including pagination options."],["Allows filtering to include or exclude soft-deleted accounts."],["Returns an empty list if no matching accounts are found."],["Requires specific authorization scopes for data access."],["Provides details on the HTTP request, query parameters, and response structure."]]],["This document details how to retrieve a list of accessible accounts using the Analytics Admin API. The core action is sending a `GET` request to the specified URL. Optional query parameters, `pageSize` and `pageToken`, enable pagination. The `showDeleted` parameter allows inclusion of soft-deleted accounts. The request body must be empty. A successful response returns a JSON object containing an array of `accounts` and a `nextPageToken` for subsequent pages. Authorization requires specific OAuth scopes.\n"]]