Authorizations
Path Parameters
Response
200 - application/vnd.api+json
Success
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.vpn_sessions.refresh_password(vpn_session_id="vpn_6VE1Wd37dXnZJ")
# Handle response
print(res)
{
"data": {
"id": "vpn_6VE1Wd37dXnZJ",
"type": "vpn_sessions",
"attributes": {
"user_name": "Dina",
"password": "5n6HCdn1wYYUC",
"port": "8443",
"host": "fw04-mh1.maxi.host",
"region": {
"city": "São Paulo",
"country": "Germany",
"site": {
"id": "loc_LMmAD8wyqwop2",
"name": "São Paulo",
"slug": "SAO",
"facility": "São Paulo"
}
},
"expires_at": "2025-07-16T18:38:19+00:00",
"created_at": "2025-07-16T18:37:19+00:00",
"updated_at": "2025-07-16T18:37:19+00:00"
}
},
"meta": {}
}
Refreshing an existing VPN Session will create new credentials for that session
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.vpn_sessions.refresh_password(vpn_session_id="vpn_6VE1Wd37dXnZJ")
# Handle response
print(res)
{
"data": {
"id": "vpn_6VE1Wd37dXnZJ",
"type": "vpn_sessions",
"attributes": {
"user_name": "Dina",
"password": "5n6HCdn1wYYUC",
"port": "8443",
"host": "fw04-mh1.maxi.host",
"region": {
"city": "São Paulo",
"country": "Germany",
"site": {
"id": "loc_LMmAD8wyqwop2",
"name": "São Paulo",
"slug": "SAO",
"facility": "São Paulo"
}
},
"expires_at": "2025-07-16T18:38:19+00:00",
"created_at": "2025-07-16T18:37:19+00:00",
"updated_at": "2025-07-16T18:37:19+00:00"
}
},
"meta": {}
}
Success
Show child attributes
Was this page helpful?