> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shutting Down a VXC and IX with the API

> This help topic describes how to use the Megaport API to shut down a VXC and IX for failover testing.

This topic describes how to shut down and re-enable a VXC and IX service that has been deployed on the Megaport network. You can also shut down a VXC and IX service when creating the service, if required.

After you have created and deployed a VXC or IX on the Megaport network, you can temporarily shut down the service for failover testing, redundancy, or network design testing purposes. For more information, see [Shutting Down a VXC for Failover Testing](https://docs.megaport.com/connections/shut-down-vxc.md).

You can shut down a VXC/IX by setting the optional `shutdown` parameter to true in the Body of the request. If not provided, it defaults to false (enabled):

```json theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
{
  "shutdown": true
}
```

To re-enable the VXC/IX, set the `shutdown` parameter to false:

```json theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
{
  "shutdown": false
}
```

Before you begin, obtain a valid access token. For more information, see [Creating an API Key](https://docs.megaport.com/api/api-key.md).

**To shut down a VXC in the Postman collection**

1. In Postman, expand **Connections > Virtual Cross Connects** in the left navigation and click **PUT Update VXC (v3)**.

2. Identify the VXC to update by adding the `productUid` to the endpoint.

   ![Update VXC request](https://docs.megaport.com/images/api/api-vxc-change-put-url.png)

3. Select the **Body** tab and update the `shutdown` parameter to true.

   ![Shutdown VXC request](https://docs.megaport.com/images/api/api-vxc-shutdown-param.png)

4. Click **Send**.\
   The changes will be reflected in the Portal within two minutes. The Services page displays the text (Shut Down) under the status when the service has been shut down.

   ![VXC Connection Shut Down in the Services Page](https://docs.megaport.com/images/api/vxc-connection-shut-down.png)

5. To re-enable the VXC, change the `shutdown` parameter to false and run the **PUT Update VXC (v3)** API again.

**To shut down an IX in the Postman collection**

1. In Postman, expand **Internet Exchange (IX)** in the left navigation and click **PUT Update IX**.

2. Identify the IX to update by adding the `productUid` to the endpoint.

   ![Update IX request](https://docs.megaport.com/images/api/api-ix-change-put-url.png)

3. Select the **Body** tab and update the `shutdown` parameter to true.

   ![Shutdown IX request](https://docs.megaport.com/images/api/api-ix-shutdown-param.png)

4. Click **Send**.\
   The changes will be reflected in the Portal within two minutes. The Services page displays the text (Shut Down) under the status when the service has been shut down.

   ![IX Connection Shut Down in the Services Page](https://docs.megaport.com/images/ix/ix-connection-shut-down.png)

5. To re-enable the IX, change the `shutdown` parameter to false and run the **PUT Update IX** API again.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.