WireguardGatewaysApi
All URIs are relative to https://vpn.de-fra.ionos.com
WireguardgatewaysDelete
var result = WireguardgatewaysDelete(ctx, gatewayId)
.Execute()Delete WireguardGateway
Example
package main
import (
"context"
"fmt"
"os"
vpn "github.com/ionos-cloud/sdk-go-bundle/products/vpn"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
gatewayId := "85c79b4b-5b40-570a-b788-58dd46ea71e2" // string | The ID (UUID) of the WireguardGateway.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := vpn.NewAPIClient(configuration)
resp, err := apiClient.WireguardGatewaysApi.WireguardgatewaysDelete(context.Background(), gatewayId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WireguardGatewaysApi.WireguardgatewaysDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
}Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
gatewayId
string
The ID (UUID) of the WireguardGateway.
Other Parameters
Other parameters are passed through a pointer to an apiWireguardgatewaysDeleteRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
(empty response body)
HTTP request headers
Content-Type: Not defined
Accept: application/json
WireguardgatewaysFindById
Retrieve WireguardGateway
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
gatewayId
string
The ID (UUID) of the WireguardGateway.
Other Parameters
Other parameters are passed through a pointer to an apiWireguardgatewaysFindByIdRequest struct via the builder pattern
Name
Type
Description
Notes
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
WireguardgatewaysGet
Retrieve all WireguardGateways
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiWireguardgatewaysGetRequest struct via the builder pattern
offset
int32
The first element (of the total list of elements) to include in the response. Use together with limit for pagination.
[default to 0]
limit
int32
The maximum number of elements to return. Use together with offset for pagination.
[default to 100]
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/json
WireguardgatewaysPost
Create WireguardGateway
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to an apiWireguardgatewaysPostRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
WireguardgatewaysPut
Ensure WireguardGateway
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
gatewayId
string
The ID (UUID) of the WireguardGateway.
Other Parameters
Other parameters are passed through a pointer to an apiWireguardgatewaysPutRequest struct via the builder pattern
Return type
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated
