Method: properties.getDataRetentionSettings
แสดงการตั้งค่าการเก็บรักษาข้อมูลซิงเกิลสำหรับพร็อพเพอร์ตี้นี้
คำขอ HTTP
GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/dataRetentionSettings}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ชื่อของการตั้งค่าที่จะค้นหา รูปแบบ: พร็อพเพอร์ตี้/{property}/dataStorageSettings เช่น "พร็อพเพอร์ตี้/1000/datareservationSettings"
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ DataRetentionSettings
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]