from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.servers.create_ipmi_session(server_id="sv_Qkm7dXaRq8nZV")
# Handle response
print(res){
"data": {
"id": "ipmi_mw49QDB5qagKb",
"type": "ipmi_sessions",
"attributes": {
"ipmi_address": "10.0.10.1",
"ipmi_url": null,
"ipmi_username": "customer_access",
"ipmi_password": "ipmi_password"
}
}
}Generates IPMI credentials for a given server. Remote access creates a VPN connection to the internal network of your server so you can connect to its IPMI.
You will have to use a VPN client such as https://openvpn.net to connect. See VPN Sessions API to create a VPN connection.
Related guide: https://docs.latitude.sh/docs/ipmi
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.servers.create_ipmi_session(server_id="sv_Qkm7dXaRq8nZV")
# Handle response
print(res){
"data": {
"id": "ipmi_mw49QDB5qagKb",
"type": "ipmi_sessions",
"attributes": {
"ipmi_address": "10.0.10.1",
"ipmi_url": null,
"ipmi_username": "customer_access",
"ipmi_password": "ipmi_password"
}
}
}Was this page helpful?