From ba45d0a0673e7454c7ebf35a1eee8fe92dedf0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9B=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D0=B2?= <75843336+slistov@users.noreply.github.com> Date: Sat, 17 Aug 2024 16:13:59 +0300 Subject: [PATCH] Add get_data_usage_info admin API (#1423) --- minio/minioadmin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/minio/minioadmin.py b/minio/minioadmin.py index 75bc7f561..8da638a79 100644 --- a/minio/minioadmin.py +++ b/minio/minioadmin.py @@ -708,6 +708,14 @@ def bucket_quota_get(self, bucket: str) -> str: ) return response.data.decode() + def get_data_usage_info(self): + """Get data usage info""" + response = self._url_open( + "GET", + _COMMAND.DATA_USAGE_INFO, + ) + return response.data.decode() + def get_service_account(self, access_key: str) -> str: """Get information about service account""" response = self._url_open(