WireguardPeersApi
Method
HTTP request
Description
WireguardgatewaysPeersDelete
var result = WireguardgatewaysPeersDelete(ctx, gatewayId, peerId)
.Execute()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.
peerId := "b62b3a40-adee-5b6c-b98d-be20bfcbdd91" // string | The ID (UUID) of the WireguardPeer.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := vpn.NewAPIClient(configuration)
resp, err := apiClient.WireguardPeersApi.WireguardgatewaysPeersDelete(context.Background(), gatewayId, peerId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WireguardPeersApi.WireguardgatewaysPeersDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
WireguardgatewaysPeersFindById
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
WireguardgatewaysPeersGet
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
WireguardgatewaysPeersPost
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
WireguardgatewaysPeersPut
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
