IONOS Cloud VPN Gateway API
Project description
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:
- API version: 1.0.0
- Package version: 1.0.0-beta.1
- Generator version: 7.13.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://docs.ionos.com/support/general-information/contact-information
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
- Connection
- DayOfTheWeek
- ESPEncryption
- Error
- ErrorMessagesInner
- IKEEncryption
- IPSecGateway
- IPSecGatewayCreate
- IPSecGatewayEnsure
- IPSecGatewayMetadata
- IPSecGatewayRead
- IPSecGatewayReadList
- IPSecPSK
- IPSecTunnel
- IPSecTunnelAuth
- IPSecTunnelCreate
- IPSecTunnelEnsure
- IPSecTunnelMetadata
- IPSecTunnelRead
- IPSecTunnelReadList
- Links
- MaintenanceWindow
- Metadata
- Pagination
- ResourceStatus
- WireguardEndpoint
- WireguardGateway
- WireguardGatewayCreate
- WireguardGatewayEnsure
- WireguardGatewayMetadata
- WireguardGatewayRead
- WireguardGatewayReadList
- WireguardPeer
- WireguardPeerCreate
- WireguardPeerEnsure
- WireguardPeerMetadata
- WireguardPeerRead
- WireguardPeerReadList
Documentation For Authorization
Authentication schemes defined for the API:
tokenAuth
- Type: Bearer authentication (JWT)
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
007d46de33e67bd2badfafdef9f7220a135c90bafe77a50b92f9a4192d0d80f7
|
|
| MD5 |
432ea65af3a94552ef7fb0502379c990
|
|
| BLAKE2b-256 |
f50e04af46b83adeaaaaaf05d97900f4493f60718d2b32eb2a60b514d57999a8
|
File details
Details for the file ionoscloud_vpn-1.0.0b1-py3-none-any.whl.
File metadata
- Download URL: ionoscloud_vpn-1.0.0b1-py3-none-any.whl
- Upload date:
- Size: 106.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54d9da2f84d7555e33b5f798e72e2a83b9ca9bc8cb7ffe94b15e82e083d89139
|
|
| MD5 |
5a2610420ebd2aea04108185ee58bc6f
|
|
| BLAKE2b-256 |
29eb396e03053542aae0880fdaedcd83a48d662398b1f54544a6cfa7537bc28d
|