SealSkin

VpnImportRequest

Import VPN profiles from an uploaded config file or an archive of them.

Attributes

attributenamestr
= Field(..., min_length=1, max_length=80)

Name of the profile; a bundle that holds several templates makes several profiles, named after it.

attributefilenamestr
= Field(..., min_length=1, max_length=255)

Name of the uploaded file, which tells an archive from a single config.

attributeupload_idstr

The chunked upload holding it.

attributetotal_chunksint
= Field(..., ge=1)

Chunks of that upload.

attributekindstr | None
= Field(default=None, pattern='^(wireguard|openvpn)$')

The type the administrator chose, which the config must be.

attributeusernamestr
= ''

OpenVPN username, for a template that asks for one.

attributepasswordstr
= ''

OpenVPN password.

attributeuserslist[str]
= ['all']

Usernames the profiles are open to.

attributegroupslist[str]
= ['all']

Groups the profiles are open to.

On this page