redfish-cli/src/redfish_cli/api/systems.py
2023-09-11 20:22:22 +10:00

12 lines
350 B
Python

"""Power related api functions"""
from .utils import get, redfish_url
def system_details(server: str, username: str, password: str, system: str):
"""Get the detailed information about a system"""
url = f"{redfish_url(server, 'Systems')}/{system}"
response = get(server, url, username=username, password=password)
return response