Categorygithub.com/ionos-cloud/sdk-go-vpn
repositorypackage
1.0.2
Repository: https://github.com/ionos-cloud/sdk-go-vpn.git
Documentation: pkg.go.dev

# README

Gitter

Go API client for ionoscloud

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).

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./ionoscloud"

Authentication

All available server URLs are:

By default, https://vpn.de-fra.ionos.com is used, however this can be overriden at authentication, either by setting the IONOS_API_URL environment variable or by specifying the hostUrl parameter when initializing the sdk client.

The username and password or the authentication token can be manually specified when initializing the sdk client:


client := ionoscloud.NewAPIClient(ionoscloud.NewConfiguration(username, password, token, hostUrl))

Environment variables can also be used. The sdk uses the following variables:

  • IONOS_TOKEN - login via token. This is the recommended way to authenticate.
  • IONOS_USERNAME - to specify the username used to login
  • IONOS_PASSWORD - to specify the password
  • IONOS_API_URL - to specify the API server URL

In this case, the client configuration needs to be initialized using NewConfigurationFromEnv().


client := ionoscloud.NewAPIClient(ionoscloud.NewConfigurationFromEnv())

Documentation for API Endpoints

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

API Endpoints table
ClassMethodHTTP requestDescription
IPSecGatewaysApiIpsecgatewaysDeleteDelete /ipsecgateways/{gatewayId}Delete IPSecGateway
IPSecGatewaysApiIpsecgatewaysFindByIdGet /ipsecgateways/{gatewayId}Retrieve IPSecGateway
IPSecGatewaysApiIpsecgatewaysGetGet /ipsecgatewaysRetrieve all IPSecGateways
IPSecGatewaysApiIpsecgatewaysPostPost /ipsecgatewaysCreate IPSecGateway
IPSecGatewaysApiIpsecgatewaysPutPut /ipsecgateways/{gatewayId}Ensure IPSecGateway
IPSecTunnelsApiIpsecgatewaysTunnelsDeleteDelete /ipsecgateways/{gatewayId}/tunnels/{tunnelId}Delete IPSecTunnel
IPSecTunnelsApiIpsecgatewaysTunnelsFindByIdGet /ipsecgateways/{gatewayId}/tunnels/{tunnelId}Retrieve IPSecTunnel
IPSecTunnelsApiIpsecgatewaysTunnelsGetGet /ipsecgateways/{gatewayId}/tunnelsRetrieve all IPSecTunnels
IPSecTunnelsApiIpsecgatewaysTunnelsPostPost /ipsecgateways/{gatewayId}/tunnelsCreate IPSecTunnel
IPSecTunnelsApiIpsecgatewaysTunnelsPutPut /ipsecgateways/{gatewayId}/tunnels/{tunnelId}Ensure IPSecTunnel
WireguardGatewaysApiWireguardgatewaysDeleteDelete /wireguardgateways/{gatewayId}Delete WireguardGateway
WireguardGatewaysApiWireguardgatewaysFindByIdGet /wireguardgateways/{gatewayId}Retrieve WireguardGateway
WireguardGatewaysApiWireguardgatewaysGetGet /wireguardgatewaysRetrieve all WireguardGateways
WireguardGatewaysApiWireguardgatewaysPostPost /wireguardgatewaysCreate WireguardGateway
WireguardGatewaysApiWireguardgatewaysPutPut /wireguardgateways/{gatewayId}Ensure WireguardGateway
WireguardPeersApiWireguardgatewaysPeersDeleteDelete /wireguardgateways/{gatewayId}/peers/{peerId}Delete WireguardPeer
WireguardPeersApiWireguardgatewaysPeersFindByIdGet /wireguardgateways/{gatewayId}/peers/{peerId}Retrieve WireguardPeer
WireguardPeersApiWireguardgatewaysPeersGetGet /wireguardgateways/{gatewayId}/peersRetrieve all WireguardPeers
WireguardPeersApiWireguardgatewaysPeersPostPost /wireguardgateways/{gatewayId}/peersCreate WireguardPeer
WireguardPeersApiWireguardgatewaysPeersPutPut /wireguardgateways/{gatewayId}/peers/{peerId}Ensure WireguardPeer

Documentation For Models

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

API models list

[Back to API list] [Back to Model list]