Skip to main content
PATCH
/
vpn_sessions
/
{vpn_session_id}
/
refresh_password
Python (SDK)
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": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

vpn_session_id
string
required

Response

200 - application/vnd.api+json

Success

data
object
I