Method: properties.getDataRetentionSettings
מחזירה את הגדרות שמירת הנתונים של Singleton עבור הנכס הזה.
בקשת HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{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)."],[[["Retrieves the data retention settings for a specific Google Analytics 4 property."],["Uses an HTTP GET request with the property ID specified in the path parameter."],["Requires authentication with appropriate OAuth scopes for read or edit access to Analytics data."],["Returns a DataRetentionSettings object containing the property's data retention configuration upon successful execution."],["Request body should be empty."]]],["This document details retrieving data retention settings for a specific property. A `GET` request is made to a URL containing the property's name, using gRPC Transcoding syntax. The `name` path parameter, formatted as \"properties/{property}/dataRetentionSettings,\" is required. The request body must be empty. A successful response returns `DataRetentionSettings`. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]