Method: properties.getDataRetentionSettings
Bu özellik için tekil veri saklama ayarlarını döndürür.
HTTP isteği
GET https://analyticsadmin.googleapis.com/v1beta/{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."],[[["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"]]