Download OpenAPI specification:Download
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).
Operations to create and manage WireGuard VPN Gateways.
This tag groups all operations for wireguardgateways.
This endpoint enables retrieving all WireguardGateways using pagination and optional filters.
offset | integer <int32> >= 0 Default: 0 The first element (of the total list of elements) to include in the response. Use together with limit for pagination. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with offset for pagination. |
{- "id": "55871672-381f-589c-8809-4ffbecd8b27c",
- "type": "collection",
- "href": "/wireguardgateways",
- "items": [
- {
- "id": "85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "type": "wireguardgateway",
- "href": "/wireguardgateways/85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null,
- "publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VuAyEApNLcmIfCLRwyGYN16teusuGPkdGo2C8OxiqaJLgOig4=\n-----END PUBLIC KEY-----\n"
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway allows connections to Datacenter LAN X.",
- "gatewayIP": "81.173.1.2",
- "interfaceIPv4CIDR": "172.16.0.1/30",
- "interfaceIPv6CIDR": "fd00::2/128",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "listenPort": 51820,
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
], - "offset": 0,
- "limit": 42,
- "_links": {
}
}
Creates a new WireguardGateway.
The full WireguardGateway needs to be provided to create the object. Optional data will be filled with defaults or left empty.
WireguardGateway to create.
object Metadata | |
required | object (WireguardGateway) Properties with all data needed to create a new WireGuard Gateway. |
{- "metadata": { },
- "properties": {
- "name": "My Company Gateway",
- "description": "This gateway allows connections to Datacenter LAN X.",
- "gatewayIP": "81.173.1.2",
- "interfaceIPv4CIDR": "172.16.0.1/30",
- "interfaceIPv6CIDR": "fd00::2/128",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "privateKey": "0HpE4BNwGHabeaC4aY/GFxB6fBSc0d49Db0qAzRVSVc=",
- "listenPort": 51820,
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
{- "id": "85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "type": "wireguardgateway",
- "href": "/wireguardgateways/85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null,
- "publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VuAyEApNLcmIfCLRwyGYN16teusuGPkdGo2C8OxiqaJLgOig4=\n-----END PUBLIC KEY-----\n"
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway allows connections to Datacenter LAN X.",
- "gatewayIP": "81.173.1.2",
- "interfaceIPv4CIDR": "172.16.0.1/30",
- "interfaceIPv6CIDR": "fd00::2/128",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "listenPort": 51820,
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Returns the WireguardGateway by ID.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
{- "id": "85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "type": "wireguardgateway",
- "href": "/wireguardgateways/85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null,
- "publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VuAyEApNLcmIfCLRwyGYN16teusuGPkdGo2C8OxiqaJLgOig4=\n-----END PUBLIC KEY-----\n"
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway allows connections to Datacenter LAN X.",
- "gatewayIP": "81.173.1.2",
- "interfaceIPv4CIDR": "172.16.0.1/30",
- "interfaceIPv6CIDR": "fd00::2/128",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "listenPort": 51820,
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Ensures that the WireguardGateway with the provided ID is created or modified. The full WireguardGateway needs to be provided to ensure (either update or create) the WireguardGateway. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
update WireguardGateway
id required | string <uuid> The ID (UUID) of the WireguardGateway. |
object Metadata | |
required | object (WireguardGateway) Properties with all data needed to create a new WireGuard Gateway. |
{- "id": "85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "metadata": { },
- "properties": {
- "name": "My Company Gateway",
- "description": "This gateway allows connections to Datacenter LAN X.",
- "gatewayIP": "81.173.1.2",
- "interfaceIPv4CIDR": "172.16.0.1/30",
- "interfaceIPv6CIDR": "fd00::2/128",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "privateKey": "0HpE4BNwGHabeaC4aY/GFxB6fBSc0d49Db0qAzRVSVc=",
- "listenPort": 51820,
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
{- "id": "85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "type": "wireguardgateway",
- "href": "/wireguardgateways/85c79b4b-5b40-570a-b788-58dd46ea71e2",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null,
- "publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VuAyEApNLcmIfCLRwyGYN16teusuGPkdGo2C8OxiqaJLgOig4=\n-----END PUBLIC KEY-----\n"
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway allows connections to Datacenter LAN X.",
- "gatewayIP": "81.173.1.2",
- "interfaceIPv4CIDR": "172.16.0.1/30",
- "interfaceIPv6CIDR": "fd00::2/128",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "listenPort": 51820,
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Deletes the specified WireguardGateway.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "err-1234",
- "message": "Error message example"
}
]
}
Operations to create and manage WireGuard VPN Gateway peers.
This tag groups all operations for wireguardpeers.
This endpoint enables retrieving all WireguardPeers using pagination and optional filters.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
offset | integer <int32> >= 0 Default: 0 The first element (of the total list of elements) to include in the response. Use together with limit for pagination. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with offset for pagination. |
{- "id": "7c33f158-b93c-5fe7-83c6-84dde2357a33",
- "type": "collection",
- "href": "/wireguardgateways/{gatewayId}/peers",
- "items": [
- {
- "id": "b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "type": "wireguardpeer",
- "href": "/wireguardgateways/{gatewayId}/peers/b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Peer",
- "description": "Allows local machine A to connect to Datacenter LAN Y.",
- "endpoint": {
- "host": "1.2.3.4",
- "port": 51820
}, - "allowedIPs": [
- "1.2.3.4/32"
], - "publicKey": "no8iaSEoqfbI6PVYsdEiUU5efYdtKX8VAhKity19MWI="
}
}
], - "offset": 0,
- "limit": 42,
- "_links": {
}
}
Creates a new WireguardPeer.
The full WireguardPeer needs to be provided to create the object. Optional data will be filled with defaults or left empty.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
WireguardPeer to create.
object Metadata | |
required | object (WireguardPeer) Properties with all data needed to create a new WireGuard Gateway Peer. |
{- "metadata": { },
- "properties": {
- "name": "My Company Gateway Peer",
- "description": "Allows local machine A to connect to Datacenter LAN Y.",
- "endpoint": {
- "host": "1.2.3.4",
- "port": 51820
}, - "allowedIPs": [
- "1.2.3.4/32"
], - "publicKey": "no8iaSEoqfbI6PVYsdEiUU5efYdtKX8VAhKity19MWI="
}
}
{- "id": "b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "type": "wireguardpeer",
- "href": "/wireguardgateways/{gatewayId}/peers/b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Peer",
- "description": "Allows local machine A to connect to Datacenter LAN Y.",
- "endpoint": {
- "host": "1.2.3.4",
- "port": 51820
}, - "allowedIPs": [
- "1.2.3.4/32"
], - "publicKey": "no8iaSEoqfbI6PVYsdEiUU5efYdtKX8VAhKity19MWI="
}
}
Returns the WireguardPeer by ID.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
peerId required | string <uuid> Example: b62b3a40-adee-5b6c-b98d-be20bfcbdd91 The ID (UUID) of the WireguardPeer. |
{- "id": "b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "type": "wireguardpeer",
- "href": "/wireguardgateways/{gatewayId}/peers/b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Peer",
- "description": "Allows local machine A to connect to Datacenter LAN Y.",
- "endpoint": {
- "host": "1.2.3.4",
- "port": 51820
}, - "allowedIPs": [
- "1.2.3.4/32"
], - "publicKey": "no8iaSEoqfbI6PVYsdEiUU5efYdtKX8VAhKity19MWI="
}
}
Ensures that the WireguardPeer with the provided ID is created or modified. The full WireguardPeer needs to be provided to ensure (either update or create) the WireguardPeer. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
peerId required | string <uuid> Example: b62b3a40-adee-5b6c-b98d-be20bfcbdd91 The ID (UUID) of the WireguardPeer. |
update WireguardPeer
id required | string <uuid> The ID (UUID) of the WireguardPeer. |
object Metadata | |
required | object (WireguardPeer) Properties with all data needed to create a new WireGuard Gateway Peer. |
{- "id": "b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "metadata": { },
- "properties": {
- "name": "My Company Gateway Peer",
- "description": "Allows local machine A to connect to Datacenter LAN Y.",
- "endpoint": {
- "host": "1.2.3.4",
- "port": 51820
}, - "allowedIPs": [
- "1.2.3.4/32"
], - "publicKey": "no8iaSEoqfbI6PVYsdEiUU5efYdtKX8VAhKity19MWI="
}
}
{- "id": "b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "type": "wireguardpeer",
- "href": "/wireguardgateways/{gatewayId}/peers/b62b3a40-adee-5b6c-b98d-be20bfcbdd91",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Peer",
- "description": "Allows local machine A to connect to Datacenter LAN Y.",
- "endpoint": {
- "host": "1.2.3.4",
- "port": 51820
}, - "allowedIPs": [
- "1.2.3.4/32"
], - "publicKey": "no8iaSEoqfbI6PVYsdEiUU5efYdtKX8VAhKity19MWI="
}
}
Deletes the specified WireguardPeer.
gatewayId required | string <uuid> Example: 85c79b4b-5b40-570a-b788-58dd46ea71e2 The ID (UUID) of the WireguardGateway. |
peerId required | string <uuid> Example: b62b3a40-adee-5b6c-b98d-be20bfcbdd91 The ID (UUID) of the WireguardPeer. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "err-1234",
- "message": "Error message example"
}
]
}
Operations to create and manage IPSec VPN Gateways.
This tag groups all operations for ipsecgateways.
This endpoint enables retrieving all IPSecGateways using pagination and optional filters.
offset | integer <int32> >= 0 Default: 0 The first element (of the total list of elements) to include in the response. Use together with limit for pagination. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with offset for pagination. |
{- "id": "26a73a96-96e9-51d2-98d2-90043b958618",
- "type": "collection",
- "href": "/ipsecgateways",
- "items": [
- {
- "id": "66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "type": "ipsecgateway",
- "href": "/ipsecgateways/66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway connects site A to VDC X.",
- "gatewayIP": "81.173.1.2",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "version": "IKEv2",
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
], - "offset": 0,
- "limit": 42,
- "_links": {
}
}
Creates a new IPSecGateway.
The full IPSecGateway needs to be provided to create the object. Optional data will be filled with defaults or left empty.
IPSecGateway to create.
object Metadata | |
required | object (IPSecGateway) Properties with all data needed to create a new IPSec Gateway. |
{- "metadata": { },
- "properties": {
- "name": "My Company Gateway",
- "description": "This gateway connects site A to VDC X.",
- "gatewayIP": "81.173.1.2",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "version": "IKEv2",
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
{- "id": "66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "type": "ipsecgateway",
- "href": "/ipsecgateways/66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway connects site A to VDC X.",
- "gatewayIP": "81.173.1.2",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "version": "IKEv2",
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Returns the IPSecGateway by ID.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
{- "id": "66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "type": "ipsecgateway",
- "href": "/ipsecgateways/66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway connects site A to VDC X.",
- "gatewayIP": "81.173.1.2",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "version": "IKEv2",
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Ensures that the IPSecGateway with the provided ID is created or modified. The full IPSecGateway needs to be provided to ensure (either update or create) the IPSecGateway. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
update IPSecGateway
id required | string <uuid> The ID (UUID) of the IPSecGateway. |
object Metadata | |
required | object (IPSecGateway) Properties with all data needed to create a new IPSec Gateway. |
{- "id": "66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "metadata": { },
- "properties": {
- "name": "My Company Gateway",
- "description": "This gateway connects site A to VDC X.",
- "gatewayIP": "81.173.1.2",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "version": "IKEv2",
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
{- "id": "66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "type": "ipsecgateway",
- "href": "/ipsecgateways/66a114c7-2ddd-5119-9ddf-5a789f5a5a44",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway",
- "description": "This gateway connects site A to VDC X.",
- "gatewayIP": "81.173.1.2",
- "connections": [
- {
- "datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
- "lanId": "2",
- "ipv4CIDR": "192.168.1.100/24",
- "ipv6CIDR": "fd28:5f8d:d9fe:08bd::/64"
}
], - "version": "IKEv2",
- "tier": "STANDARD",
- "maintenanceWindow": {
- "time": "16:30:59",
- "dayOfTheWeek": "Monday"
}
}
}
Deletes the specified IPSecGateway.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "err-1234",
- "message": "Error message example"
}
]
}
Operations to create and manage IPSec VPN Gateway Tunnels.
This tag groups all operations for ipsectunnels.
This endpoint enables retrieving all IPSecTunnels using pagination and optional filters.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
offset | integer <int32> >= 0 Default: 0 The first element (of the total list of elements) to include in the response. Use together with limit for pagination. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with offset for pagination. |
{- "id": "0ef10f6b-8742-5e74-98ff-3e89354b1082",
- "type": "collection",
- "href": "/ipsecgateways/{gatewayId}/tunnels",
- "items": [
- {
- "id": "c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "type": "ipsectunnel",
- "href": "/ipsecgateways/{gatewayId}/tunnels/c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Tunnel",
- "description": "Allows local subnet X to connect to virtual network Y.",
- "remoteHost": "vpn.mycompany.com",
- "auth": {
- "method": "PSK",
- "psk": { }
}, - "ike": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 86400
}, - "esp": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 3600
}, - "cloudNetworkCIDRs": [
- "192.168.1.100/24"
], - "peerNetworkCIDRs": [
- "1.2.3.4/32"
]
}
}
], - "offset": 0,
- "limit": 42,
- "_links": {
}
}
Creates a new IPSecTunnel.
The full IPSecTunnel needs to be provided to create the object. Optional data will be filled with defaults or left empty.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
IPSecTunnel to create.
object Metadata | |
required | object (IPSecTunnel) Properties with all data needed to create a new IPSec Gateway Tunnel. |
{- "metadata": { },
- "properties": {
- "name": "My Company Gateway Tunnel",
- "description": "Allows local subnet X to connect to virtual network Y.",
- "remoteHost": "vpn.mycompany.com",
- "auth": {
- "method": "PSK",
- "psk": {
- "key": "X2wosbaw74M8hQGbK3jCCaEusR6CCFRa"
}
}, - "ike": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 86400
}, - "esp": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 3600
}, - "cloudNetworkCIDRs": [
- "192.168.1.100/24"
], - "peerNetworkCIDRs": [
- "1.2.3.4/32"
]
}
}
{- "id": "c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "type": "ipsectunnel",
- "href": "/ipsecgateways/{gatewayId}/tunnels/c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Tunnel",
- "description": "Allows local subnet X to connect to virtual network Y.",
- "remoteHost": "vpn.mycompany.com",
- "auth": {
- "method": "PSK",
- "psk": { }
}, - "ike": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 86400
}, - "esp": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 3600
}, - "cloudNetworkCIDRs": [
- "192.168.1.100/24"
], - "peerNetworkCIDRs": [
- "1.2.3.4/32"
]
}
}
Returns the IPSecTunnel by ID.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
tunnelId required | string <uuid> Example: c28b2d3e-7b15-53ca-ae88-6ae9378d6efe The ID (UUID) of the IPSecTunnel. |
{- "id": "c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "type": "ipsectunnel",
- "href": "/ipsecgateways/{gatewayId}/tunnels/c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Tunnel",
- "description": "Allows local subnet X to connect to virtual network Y.",
- "remoteHost": "vpn.mycompany.com",
- "auth": {
- "method": "PSK",
- "psk": { }
}, - "ike": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 86400
}, - "esp": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 3600
}, - "cloudNetworkCIDRs": [
- "192.168.1.100/24"
], - "peerNetworkCIDRs": [
- "1.2.3.4/32"
]
}
}
Ensures that the IPSecTunnel with the provided ID is created or modified. The full IPSecTunnel needs to be provided to ensure (either update or create) the IPSecTunnel. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
tunnelId required | string <uuid> Example: c28b2d3e-7b15-53ca-ae88-6ae9378d6efe The ID (UUID) of the IPSecTunnel. |
update IPSecTunnel
id required | string <uuid> The ID (UUID) of the IPSecTunnel. |
object Metadata | |
required | object (IPSecTunnel) Properties with all data needed to create a new IPSec Gateway Tunnel. |
{- "id": "c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "metadata": { },
- "properties": {
- "name": "My Company Gateway Tunnel",
- "description": "Allows local subnet X to connect to virtual network Y.",
- "remoteHost": "vpn.mycompany.com",
- "auth": {
- "method": "PSK",
- "psk": {
- "key": "X2wosbaw74M8hQGbK3jCCaEusR6CCFRa"
}
}, - "ike": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 86400
}, - "esp": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 3600
}, - "cloudNetworkCIDRs": [
- "192.168.1.100/24"
], - "peerNetworkCIDRs": [
- "1.2.3.4/32"
]
}
}
{- "id": "c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "type": "ipsectunnel",
- "href": "/ipsecgateways/{gatewayId}/tunnels/c28b2d3e-7b15-53ca-ae88-6ae9378d6efe",
- "metadata": {
- "createdDate": "2020-12-10T13:37:50+01:00",
- "createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedDate": "2020-12-11T13:37:50+01:00",
- "lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
- "resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
- "status": "AVAILABLE",
- "statusMessage": null
}, - "properties": {
- "name": "My Company Gateway Tunnel",
- "description": "Allows local subnet X to connect to virtual network Y.",
- "remoteHost": "vpn.mycompany.com",
- "auth": {
- "method": "PSK",
- "psk": { }
}, - "ike": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 86400
}, - "esp": {
- "diffieHellmanGroup": "16-MODP4096",
- "encryptionAlgorithm": "AES256",
- "integrityAlgorithm": "SHA256",
- "lifetime": 3600
}, - "cloudNetworkCIDRs": [
- "192.168.1.100/24"
], - "peerNetworkCIDRs": [
- "1.2.3.4/32"
]
}
}
Deletes the specified IPSecTunnel.
gatewayId required | string <uuid> Example: 66a114c7-2ddd-5119-9ddf-5a789f5a5a44 The ID (UUID) of the IPSecGateway. |
tunnelId required | string <uuid> Example: c28b2d3e-7b15-53ca-ae88-6ae9378d6efe The ID (UUID) of the IPSecTunnel. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "err-1234",
- "message": "Error message example"
}
]
}