Skip to content

Commit

Permalink
Add get_data_usage_info admin API (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
slistov authored Aug 17, 2024
1 parent 67c0c8b commit ba45d0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions minio/minioadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ba45d0a

Please sign in to comment.