Skip to content

Models

airvpn.api.devices.models

Device

Represents a registered device associated with the account.

Attributes:

Name Type Description
id

Unique identifier for the device.

name

Display name of the device.

description

Description of the device.

version

Version of the client/software associated with the device.

renew_first_unix

Unix timestamp of the device's first renewal.

renew_first_date

Human-readable date of the device's first renewal.

renew_last_unix

Unix timestamp of the device's most recent renewal.

renew_last_date

Human-readable date of the device's most recent renewal.

renew_counter

Number of times the device has been renewed.

wireguard_public_key

The device's WireGuard public key.

wireguard_ipv4

IPv4 address assigned to the device over WireGuard.

wireguard_ipv6

IPv6 address assigned to the device over WireGuard.

vpn_last_from_unix

Unix timestamp of the start of the device's last VPN session.

vpn_last_from_date

Human-readable start date of the device's last VPN session.

vpn_last_to_unix

Unix timestamp of the end of the device's last VPN session.

vpn_last_to_date

Human-readable end date of the device's last VPN session.

vpn_attempt_unix

Unix timestamp of the device's last connection attempt.

vpn_attempt_date

Human-readable date of the device's last connection attempt.

vpn_attempt_message

Message/result associated with the last connection attempt.

status

Current status of the device.

DeviceAction

Bases: StrEnum

Actions available for managing devices via the devices endpoint.