Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ionoscloud-vpn

The Managed VPN Gateway service provides secure and scalable connectivity, enabling encrypted communication between your IONOS cloud resources in a VDC and remote networks (on-premises, multi-cloud, private LANs in other VDCs etc).

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/ionos-cloud/sdk-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/ionos-cloud/sdk-python.git)

Then import the package:

import ionoscloud_vpn

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ionoscloud_vpn

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import ionoscloud_vpn
from ionoscloud_vpn.rest import ApiException
from pprint import pprint
import os

# Defining the host is optional and defaults to https://vpn.de-fra.ionos.com
# See configuration.py for a list of all supported configuration parameters.
configuration = ionoscloud_vpn.Configuration(
    host = "https://vpn.de-fra.ionos.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): tokenAuth
configuration = ionoscloud_vpn.Configuration(
    token = os.environ["IONOS_TOKEN"]
)


# Enter a context with an instance of the API client
with ionoscloud_vpn.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ionoscloud_vpn.IPSecGatewaysApi(api_client)
    gateway_id = '66a114c7-2ddd-5119-9ddf-5a789f5a5a44' # str | The ID (UUID) of the IPSecGateway.

    try:
        # Delete IPSecGateway
        api_instance.ipsecgateways_delete(gateway_id)
    except ApiException as e:
        print("Exception when calling IPSecGatewaysApi->ipsecgateways_delete: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://vpn.de-fra.ionos.com

Class Method HTTP request Description
IPSecGatewaysApi ipsecgateways_delete DELETE /ipsecgateways/{gatewayId} Delete IPSecGateway
IPSecGatewaysApi ipsecgateways_find_by_id GET /ipsecgateways/{gatewayId} Retrieve IPSecGateway
IPSecGatewaysApi ipsecgateways_get GET /ipsecgateways Retrieve all IPSecGateways
IPSecGatewaysApi ipsecgateways_post POST /ipsecgateways Create IPSecGateway
IPSecGatewaysApi ipsecgateways_put PUT /ipsecgateways/{gatewayId} Ensure IPSecGateway
IPSecTunnelsApi ipsecgateways_tunnels_delete DELETE /ipsecgateways/{gatewayId}/tunnels/{tunnelId} Delete IPSecTunnel
IPSecTunnelsApi ipsecgateways_tunnels_find_by_id GET /ipsecgateways/{gatewayId}/tunnels/{tunnelId} Retrieve IPSecTunnel
IPSecTunnelsApi ipsecgateways_tunnels_get GET /ipsecgateways/{gatewayId}/tunnels Retrieve all IPSecTunnels
IPSecTunnelsApi ipsecgateways_tunnels_post POST /ipsecgateways/{gatewayId}/tunnels Create IPSecTunnel
IPSecTunnelsApi ipsecgateways_tunnels_put PUT /ipsecgateways/{gatewayId}/tunnels/{tunnelId} Ensure IPSecTunnel
WireguardGatewaysApi wireguardgateways_delete DELETE /wireguardgateways/{gatewayId} Delete WireguardGateway
WireguardGatewaysApi wireguardgateways_find_by_id GET /wireguardgateways/{gatewayId} Retrieve WireguardGateway
WireguardGatewaysApi wireguardgateways_get GET /wireguardgateways Retrieve all WireguardGateways
WireguardGatewaysApi wireguardgateways_post POST /wireguardgateways Create WireguardGateway
WireguardGatewaysApi wireguardgateways_put PUT /wireguardgateways/{gatewayId} Ensure WireguardGateway
WireguardPeersApi wireguardgateways_peers_delete DELETE /wireguardgateways/{gatewayId}/peers/{peerId} Delete WireguardPeer
WireguardPeersApi wireguardgateways_peers_find_by_id GET /wireguardgateways/{gatewayId}/peers/{peerId} Retrieve WireguardPeer
WireguardPeersApi wireguardgateways_peers_get GET /wireguardgateways/{gatewayId}/peers Retrieve all WireguardPeers
WireguardPeersApi wireguardgateways_peers_post POST /wireguardgateways/{gatewayId}/peers Create WireguardPeer
WireguardPeersApi wireguardgateways_peers_put PUT /wireguardgateways/{gatewayId}/peers/{peerId} Ensure WireguardPeer

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth

  • Type: Bearer authentication (JWT)

Author

support@cloud.ionos.com

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ionoscloud_vpn-1.0.0b1.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ionoscloud_vpn-1.0.0b1-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

File details

Details for the file ionoscloud_vpn-1.0.0b1.tar.gz.

File metadata

  • Download URL: ionoscloud_vpn-1.0.0b1.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for ionoscloud_vpn-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 007d46de33e67bd2badfafdef9f7220a135c90bafe77a50b92f9a4192d0d80f7
MD5 432ea65af3a94552ef7fb0502379c990
BLAKE2b-256 f50e04af46b83adeaaaaaf05d97900f4493f60718d2b32eb2a60b514d57999a8

See more details on using hashes here.

File details

Details for the file ionoscloud_vpn-1.0.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for ionoscloud_vpn-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 54d9da2f84d7555e33b5f798e72e2a83b9ca9bc8cb7ffe94b15e82e083d89139
MD5 5a2610420ebd2aea04108185ee58bc6f
BLAKE2b-256 29eb396e03053542aae0880fdaedcd83a48d662398b1f54544a6cfa7537bc28d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0b1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page