Method: properties.getDataRetentionSettings
מחזירה את הגדרות שמירת הנתונים של Singleton עבור הנכס הזה.
בקשת HTTP
GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/dataRetentionSettings}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. שם ההגדרות שיש לחפש. פורמט: properties/{property}/dataRetentionSettings דוגמה: "properties/1000/dataRetentionSettings"
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה מכיל מופע של DataRetentionSettings
.
היקפי הרשאות
נדרש אחד מהיקפי ההרשאות הבאים של 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 ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-05-06 (שעון UTC).
[null,null,["עדכון אחרון: 2024-05-06 (שעון UTC)."],[[["Retrieve data retention settings for a specific Google Analytics 4 property using an HTTP GET request."],["The request URL requires a property ID and utilizes gRPC Transcoding syntax."],["An empty request body is necessary, while a successful response returns a DataRetentionSettings object."],["Authorization requires specific OAuth scopes for either read-only or edit access to Analytics data."]]],["This document details retrieving data retention settings for a property using a `GET` request. The core action is to `GET` data from the specified URL, `https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/dataRetentionSettings}`, using gRPC Transcoding syntax. The `name` path parameter, formatted as \"properties/{property}/dataRetentionSettings\", is required. The request body must be empty. A successful response will include an instance of `DataRetentionSettings`. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]