Method: properties.dataStreams.measurementProtocolSecrets.list
הפונקציה מחזירה את MeasurementProtocolSecrets הצאצאים בנכס ההורה שצוין.
בקשת HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. שם המשאב של מקור הנתונים הראשי. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
|
פרמטרים של שאילתה
פרמטרים |
pageSize |
integer
המספר המקסימלי של המשאבים להחזרה. אם לא צוין, יוחזרו עד 10 משאבים. הערך המקסימלי הוא 10. ערכים גבוהים יותר יומרו לערך המקסימלי.
|
pageToken |
string
אסימון דף, שהתקבל משיחה קודמת של measurementProtocolSecrets.list . יש לספק אותו כדי לאחזר את הדף הבא. כשמחלקים את הדפים, כל שאר הפרמטרים שסופקו ל-measurementProtocolSecrets.list חייבים להתאים לקריאה שסיפקה את אסימון הדף.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
הודעת תגובה ל-RPC של ListMeasurementProtocolSecret
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
שדות |
measurementProtocolSecrets[] |
object (MeasurementProtocolSecret )
רשימה של סודות של מקור הנתונים שצוין בבקשה.
|
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. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-14 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-14 (שעון UTC)."],[[["Lists Measurement Protocol Secrets associated with a specific Google Analytics 4 property and data stream."],["Allows specification of pagination parameters like `pageSize` and `pageToken` to control the results returned."],["The response includes a list of Measurement Protocol Secrets and a token for retrieving subsequent pages, if available."],["Requires authorization with either `analytics.readonly` or `analytics.edit` scope."],["Provides details on the HTTP request structure, including path and query parameters, as well as the expected response format."]]],["This outlines the process of listing child MeasurementProtocolSecrets under a parent Property via an HTTP GET request. The request URL structure is defined using gRPC Transcoding syntax, including a required `parent` path parameter. Optional query parameters, `pageSize` and `pageToken`, allow for pagination. The request body must be empty. The response includes a list of MeasurementProtocolSecrets and a `nextPageToken` for subsequent pages, all represented in JSON. Authorization requires either read-only or edit access.\n"]]