From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 0C7D71FF0AF for ; Fri, 06 Nov 2026 18:23:22 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 092132157F; Fri, 06 Nov 2026 18:23:07 +0100 (CET) From: Christian Ebner To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox v2 11/43] pbs-api-types: store: expose max/default retention timespans in status Date: Fri, 6 Nov 2026 18:22:03 +0100 Message-ID: <20261106172235.890542-12-c.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261106172235.890542-1-c.ebner@proxmox.com> References: <20261106172235.890542-1-c.ebner@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1793985774544 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.480 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 6TCJR7HQNHZZNDT5A4AUH4SSD3OOAJA6 X-Message-ID-Hash: 6TCJR7HQNHZZNDT5A4AUH4SSD3OOAJA6 X-MailFrom: c.ebner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Include max-retention-timespan and default-retention-timespan in DataStoreStatus so clients can query datastore retention limits and defaults. This will allow clients to gather this information to generate acceptable retention timestamps without trial and error. Signed-off-by: Christian Ebner --- pbs-api-types/src/datastore.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 7307d971..89403c93 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -1809,6 +1809,12 @@ pub struct DataStoreStatus { /// S3 backend statistics (on datastores with s3 backend only). #[serde(skip_serializing_if = "Option::is_none")] pub s3_statistics: Option, + /// Maximum allowed retention timespan for this datastore. + #[serde(skip_serializing_if = "Option::is_none")] + pub max_retention_timespan: Option, + /// Default retention timespan for this datastore. + #[serde(skip_serializing_if = "Option::is_none")] + pub default_retention_timespan: Option, } #[api()] -- 2.47.3