Initial commit
This commit is contained in:
commit
1b51716d1b
72 changed files with 8204 additions and 0 deletions
12
src/redfish_cli/api/systems.py
Normal file
12
src/redfish_cli/api/systems.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
"""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
|
||||
Loading…
Add table
Add a link
Reference in a new issue