Method: properties.getDataRetentionSettings
Bu özellik için tekil veri saklama ayarlarını döndürür.
HTTP isteği
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/dataRetentionSettings}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Zorunlu. Aranacak ayarların adı. Biçim: mülkler/{property}/dataIncreaseSettings Örnek: "properties/1000/dataReachSettings"
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, DataRetentionSettings
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-05-06 UTC.
[null,null,["Son güncelleme tarihi: 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"]]