Skip to content

Commit

Permalink
✨ Add usage_prefix to account info
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
  • Loading branch information
mhkarimi1383 committed Jan 19, 2025
1 parent 6292c51 commit 7066fbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions minio/minioadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,14 @@ def info(self) -> str:
)
return response.data.decode()

def account_info(self) -> str:
"""Get MinIO Account (aka User) information."""
def account_info(self, prefix_usage: bool = False) -> str:
"""Get usage information for the authenticating account"""
response = self._url_open(
"GET",
_COMMAND.ACCOUNT_INFO,
query_params={
"prefix-usage": str(prefix_usage).lower(),
},
)
return response.data.decode()

Expand Down

0 comments on commit 7066fbb

Please sign in to comment.