---
schema_version: "1"
id: 2eb052c38ecc422b8e0d2ab67a33147f00a2c50a1b9042f36b62661b37e2ba52
title: Managing Private Spaces
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/cloudhub-2/ps-manage.md
canonical_url: https://docs.mulesoft.com/cloudhub-2/ps-manage
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b49747702bf2961913643f50b7e63e0c6ac6a4567457f97eec1f6c67363361f3
description: MuleSoft Documentation Site
latest: true
---
---
product: CloudHub 2.0
---

# Managing Private Spaces

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Use Anypoint Runtime Manager to manage private spaces, such as adding and removing a route from the
route table or detaching a transit gateway from the private space.

## Add or Remove a Route from the Route Table

Routes determine how to direct traffic from your private space, for example, to the public internet
or through a connection (VPN or transit gateway).

You might want to add a route to enable a new subnet to be accessible or remove a route if you no
longer want a subnet to be accessible through the transit gateway.

When you create a new private space, you can remove the default routes that MuleSoft provides.
However, when you change the default route, your private space might experience downtime. If the
**X** icon doesn’t appear for a route, you can’t remove it.

You cannot remove the MuleSoft-defined routes for existing private spaces created before March
9, 2023. You must create and configure a new private space to remove the default routes that
MuleSoft defines. MuleSoft defines other routes, such as control plane traffic routes, that you
cannot view or remove from the route table. Note that Anypoint MQ, ObjectStore v2, and API Manager
require internet access from your network.

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Private Network** section, click **Route Table**:

    The route table shows all routes for the private space.

    - Add a route by entering the subnet in CIDR notation, selecting the connection, and clicking
      **Add Route**:

      You can’t add a route that matches a priority route (a route that’s used by your private
      network).

      Routes can be used by only one connection at a time. If you enter a non-local/Internet Gateway
      (IGW) route, CloudHub 2.0 warns that the route is being used by another connection.

      Routes should not overlap with existing routes. CloudHub 2.0 warns if you enter a route that
      overlaps with another route in the route table.

    - Remove a route by clicking the **X** icon for a row in the table and then clicking **Delete**
      to confirm.

      If the **X** icon doesn’t appear for a route, you can’t remove it.

      You can remove routes for static VPN connections.

4.  Click **Done** to close the route table.

Anypoint Platform submits the new route to AWS.

> [!NOTE] You cannot add 169.254.168.0/22 (reserved by AWS) as a route destination.

## Rename a Connection

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the Connections menu (**…​**) and
    select **Rename**:

4.  Enter the new name and click **Save**.

## Create Redundant VPN

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the VPN menu (**…​**) and select
    **Create Redundant VPN**:

    <screenshot>

4.  Follow the steps in [Create a Redundant VPN](https://docs.mulesoft.com/cloudhub-2/ps-create-configure-vpn#create-redundant-vpn).

## Rename a VPN

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the VPN menu (**…​**) and select
    **Rename**:

4.  Enter the new name and click **Save**.

## Change VPN Connection Settings

You can change the tunnel initiation behavior after configuring the VPN connection.

This setting applies to all VPNs in this connection and is enabled by default.

> [!IMPORTANT] Modifying the tunnel initiation after VPN creation causes all VPNs in this connection
> to restart.

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the VPN menu (**…​**) and select
    **Connection Settings**:

4.  On the **Connection Settings** page, you can:

    - Enter a new name for the VPN connection.

    - Expand **Advanced Options** to change the **Automatic Tunnel Initiation** option.

      Enable this option to specify that VPN starts up automatically.

      If you deselect this option, you must generate traffic from the customer gateway to establish
      VPN tunnels.

5.  Click **Save** or **Cancel** to close the **Connection Settings** window.

    Modifying the **Automatic Tunnel Initiation** option restarts all VPNs in the connection.

## View VPN Status

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the VPN menu (**…​**) and select
    **View Details**:

4.  Click **X** to close the **VPN Details** window.

## Enable VPN logs

You can enable VPN logs to be directly accessible by MuleSoft support engineers. This shortens the
process for obtaining the logs from AWS.

1.  For VPN connections created after March 8, 2023, VPN logs are enabled by default upon creation.

2.  For existing VPN connections:

    1.  You can enable VPN logs via PATCH call to the following existing endpoint:

        `[https://anypoint.mulesoft.com/runtimefabric/api/organizations/{{org-id}}/privatespaces/{{ps-id}}/connections/{{connection-id}}/vpns/{{vpn-id}}](https://anypoint.mulesoft.com/runtimefabric/api/organizations/{{org-id}}/privatespaces/{{ps-id}}/connections/{{connection-id}}/vpns/{{vpn-id}})`.

        The payload to enable logs for VPNs with two tunnels without making other changes is
        `{"vpnTunnels":[{"isLogsEnabled": true}, {"isLogsEnabled": true}]}`.

        The `isLogsEnabled` flag can only be set to `true`; otherwise, the API returns a 400 error.

    2.  Any updates you make to an existing VPN after March 8, 2023 enables the VPN logs to be
        directly accessible by MuleSoft Support Engineers.

> [!NOTE] Enabling this feature speeds up the process for obtaining VPN logs from AWS, as the
> MuleSoft support team can download them directly, with no need to raise an AWS support ticket.

## Delete a VPN

Deleting the last VPN in a connection removes the entire connection.

> [!IMPORTANT] You can’t undo this action.

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the VPN menu (**…​**) and select
    **Delete**:

4.  Click **Delete** to confirm the deletion or **Cancel**.

## Rename a Transit Gateway Attachment

You might want to rename a transit gateway attachment to match the attachment name in AWS.

To rename a transit gateway attachment:

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the transit gateway menu (**…​**)
    and select **Rename**:

4.  Enter the new name and click **Save**.

## Detach a Transit Gateway from the Private Space

You might want to detach a transit gateway attachment for the following reasons:

- If you reject an attachment in AWS, the transit gateway attachment appears as `Rejected` in
  Anypoint Platform. In this case, you must remove the attachment before trying to attach it again.

- If an attachment is deleted on AWS, you can remove the attachment from Anypoint Platform.

Removing a transit gateway attachment also deletes any associate routes. The resource share on AWS
remains unaffected so you can readd the transit gateway without creating a new one. However,
detaching a transit gateway from a private space also deletes the attachment in AWS.

The transit gateway appears under **Add a transit gateway** if you only detach it and do not delete
it from your organization. Any apps deployed to the private space continue to run, but they are no
longer connected to your Amazon VPCs and VPNs.

To detach the transit gateway:

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, in the **Connections** section, click the transit gateway menu (**…​**)
    and select **Detach**:

4.  At the confirmation prompt, click **Detach**.

    Detaching a transit gateway might take several minutes.

## Delete a Transit Gateway

To completely remove the transit gateway from your Anypoint Platform organization, use the
[delete transit gateway API call](https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/cloudhub-20-api/minor/1.0/console/method/%234136/)
(`DELETE <>/organizations/:orgId/transitgateways/:tgw-id`) and delete the resources share on AWS.
For information, see
[Deleting a resource share](https://docs.aws.amazon.com/ram/latest/userguide/working-with-sharing-delete.html)
in the AWS documentation.

## Delete a Private Network

You can’t delete a private network if any apps are deployed to it or if any connections exist.

> [!IMPORTANT] You can’t undo this action.

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  On the **Network** tab, click the Private Network menu (**…​**) and select **Delete**:

4.  Click **Delete** to confirm the deletion.

## Delete a Private Space

You can’t delete a private space if it has any related private network, VPNs, or transit gateway
attachments.

> [!IMPORTANT] You can’t undo this action.

1.  From Anypoint Platform, select **Runtime Manager** > **Private Spaces**.

2.  Click the name of the private space to manage.

3.  Click the Private Space menu (**…​**) and select **Delete**.

    ![Delete option in the Private Space menu](/mulesoft/current/en-us/cloudhub-2/_images/ps-delete.png)

4.  Click **Delete private space** to confirm the deletion or **Cancel**.

## See Also

- [Deleting a resource share](https://docs.aws.amazon.com/ram/latest/userguide/working-with-sharing-delete.html)
  in the AWS documentation
