Skip to main content
This topic describes the API procedure to create a VXC from a Port to AWS, including how to look up cloud interconnect locations, validate the connection, and order the VXC. The example in this topic creates a Hosted VIF connection to AWS with a data rate of 500 Mbps. To step through this example, use the staging environment URL, which lets you configure the connections but does not deploy or charge for the services. Before you begin, obtain a valid access token. For more information, see Creating an API Key.
To see all options for the requests used in this example, see https://dev.megaport.com.

Look up AWS port location details

To create a VXC to AWS, you need to know the AWS port details. Use the API to return the interfaces Megaport has with cloud service providers, to identify the required AWS port details. To look up AWS port location details in the Postman collection
  1. Expand the Locations folder in the left navigation and click GET Partner Megaports.
  2. Click Send to make a GET request to the API server.
    This request returns all the interfaces Megaport has with Cloud Service Providers. You can search by clicking the magnifying glass and entering a location, data center, or other parameter in the search field. The connectType indicates the Cloud Service Provider. AWS includes “AWS” for Hosted VIFs and “AWSHC” for Hosted Connections. You can filter the results by connectType and vxcPermitted.
    This example uses a port in Interxion DUB2 that is accepting VXCs ("vxcPermitted": true) and is in the region eu-west-1.

Create and deploy a VXC

With the AWS port details from the GET Partner Megaports API, you can validate and then create a VXC. To test and validate the order
  1. In Postman, expand Cloud Connectivity > Port > AWS Direct Connect in the left navigation and select POST Validate AWS - Hosted VIF (v3).
  2. Update the Body of the request with the productUid of the Port, the productUid of the AWS port, and the AWS account ID.
    You can also change additional values, such as name, rate limit, contract term, VLAN ID, ASN values, authKey, and IP addressing.
  3. Click Send to POST the request.
When validated, you are ready to place the VXC order. To create a VXC
  1. Copy the validated Body from POST Validate AWS - Hosted VIF (v3) and paste into the Body of POST Buy AWS - Hosted VIF (v3).
  2. Click Send to post the request.
Here is an example of a successful response.
The Port and VXC now appear in the Megaport Portal. For this example, the AWS Hosted VIF will appear in the AWS portal account under Direct Connect - Virtual Interfaces. The account holder can accept the Virtual Interface and connect it to a Virtual Private Gateway or a Direct Connect Gateway and then to their VPCs.
Last modified on August 21, 2026