
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.
The CloudHub Private Space VPN (Referring to Creating VPN Connections) supports Automatic Tunnel Initiation. This option is enabled by default. It's in the "Advanced Options"
By default, VPN tunnels are initiated automatically. If you deselect this option, you must generate traffic from the customer gateway to establish VPN tunnels.The CloudHub 2 VPN connection will initiate the IKE negotiation process to bring the tunnel up with this option clicked. Note, the CloudHub 2 VPN only initiates the tunnel once when the VPN is created or updated, referring to Anypoint VPN Upgrade - 2022 for the VPN update. If the tunnel goes down afterwards, the CloudHub 2 VPN won't initiate the tunnel again by default. You will need to bring up the tunnel by sending traffic from the remote VPN side.
DPD timeout action: The action to take after dead peer detection (DPD) timeout occurs. By default, the IKE session is stopped, the tunnel goes down, and the routes are removed. You can specify that Anypoint VPN must restart the IKE session when DPD timeout occurs, or you can specify that no action is taken when DPD timeout occurs.The following limitations apply:
1. You will need a bearer token to send the request. Please refer to the How to generate your Authorization Bearer token for Anypoint Platform or How to generate a bearer token for Anypoint Platform API calls using a SAML enabled account
2. The API requires the org-id, ps-id, connection-id and vpn-id. You can find your org-id by following How to know my Organization ID (Org ID) on the Anypoint Platform
3. The ps-id is in the address bar when you are in the Private Space console
4. Use the bearer token, org-id and ps-id to find out the connection ID and VPN ID. As shown in the below example, vpnId is the vpn-id and connectionId is connection-id. Ensure the values are in the right VPN JSON body if there are multiple VPNs
curl -H 'Authorization: Bearer <bearer token>' https://anypoint.mulesoft.com/runtimefabric/api/organizations/<org-id>/privatespaces/<ps-id>/connections
# For example
curl -H 'Authorization: Bearer ee7e1e5d-42b8-4fa1-967a-0123456789ab' https://anypoint.mulesoft.com/runtimefabric/api/organizations/b2ee7923-e6c7-4ca3-0123456789ab/privatespaces/f2b360ea-15fe-48f2-9061-0123456789ab/connections | jq
[
{
"id": "9538a4e1-3133-44e3-9d26-0123456789ab",
"name": "bgpvpndemo",
"vpns": [
{
"name": "VPN 1",
"vpnId": "148e700a-1316-4a1b-be22-0123456789ab",
"connectionId": "9538a4e1-3133-44e3-9d26-0123456789ab",
"connectionName": "bgpvpndemo",
"vpnConnectionStatus": "available",
"remoteAsn": 65001,
"localAsn": 64512,
...
}]
}
]
5. Send a PATCH call
curl -XPATCH 'https://anypoint.mulesoft.com/runtimefabric/api/organizations/{org-id}/privatespaces/{ps-id}/connections/{connection-id}/vpns/{vpn-id}' \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'Authorization: Bearer {bearer token}' \
-d '{"vpnTunnels": [{"dPDTimeoutAction": "restart"}, {"dPDTimeoutAction": "restart"}]}'
# For example
curl -XPATCH 'https://anypoint.mulesoft.com/runtimefabric/api/organizations/b2ee7923-e6c7-4ca3-86a0-0123456789ab/privatespaces/f2b360ea-15fe-48f2-9061-0123456789ab/connections/9538a4e1-3133-44e3-9d26-0123456789ab/vpns/148e700a-1316-4a1b-be22-0123456789ab' \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'Authorization: Bearer ee7e1e5d-42b8-4fa1-967a-0123456789ab' \
-d '{"vpnTunnels": [{"dPDTimeoutAction": "restart"}, {"dPDTimeoutAction": "restart"}]}'
{"id":"9538a4e1-3133-44e3-9d26-0123456789ab","name":"bgpvpndemo","vpns":[{"name":"VPN 1","vpnId":"148e700a-1316-4a1b-be22-0123456789ab","connectionId":"9538a4e1-3133-44e3-9d26-0123456789ab","connectionName":"bgpvpndemo","vpnConnectionStatus":"unavailable","remoteAsn":65001,"localAsn":64512,"remoteIpAddress":"12.34.56.78","vpnTunnels":[{"psk":"","ptpCidr":"","startupAction":"start","dPDTimeoutAction":"restart"},{"psk":"","ptpCidr":"","startupAction":"start","dPDTimeoutAction":"restart"}]}]}%
curl -H 'Authorization: Bearer <bearer token>' https://anypoint.mulesoft.com/runtimefabric/api/organizations/<org-id>/privatespaces/<ps-id>/connections
The action to take after dead peer detection (DPD) timeout (default to 30s) occurs. You can specify the following:
Default: Clear
You can also Update Automatic Tunnel Initiation via API in CloudHub 2
001119824