-
Look up AWS location details
To create a VXC to AWS, you first need to identify the
productUidof the port you want to connect to. You can look up AWS locations for the B-End of the connection with thev2/dropdowns/partner/megaportsendpoint. -
Create and deploy a VXC
With the port details identified, you can create the VXC to AWS from the MVE.
Configuration details are specified in the Body of the request. Some of the key information you need to specify include the
productUidof the MVE, theproductUidof the AWS port, and the AWS account ID.
Look up AWS location details
Use the API to look up theproductUid of the port you want to connect to. The response includes details of the available ports. You need the port details to create the VXC.
In the API response, available ports that accept VXCs are listed as "vxcPermitted": true.
To look up AWS location details
- Expand the Locations folder in the left navigation and click GET Partner Megaports.
-
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
connectTypeandvxcPermitted.This example uses a port in the region eu-west-2 (London) that accepts VXCs ("vxcPermitted": true).
Create and deploy a VXC Hosted VIF
With the port details, create the VXC to AWS from the MVE. You specify the configuration details in the Body of the request. The firstproductUid identifies the MVE ID and the bEnd: productUid identifies the AWS port location from the Partner Megaports lookup. You also need to provide your AWS account number in the request.
This example uses the Hosted VIF connection type, connectType=AWS.
To create a VXC
-
Create a request with the POST Buy AWS - Hosted VIF (v3) endpoint:
-
Update the Body of the request with the
productUidof the MVE, the name of the VXC, theproductUidof the AWS port, and the AWS account ID (ownerAccount).
You can also change additional values, such as rate limit, contract term, VLAN ID, ASN values, authKey, and IP addressing. The vNIC is determined byvNicIndex, innerVlan identifies VLAN number run within the vNIC, in this case 103.
The vNIC number relates to the following MVE interfaces:
- vNIC 0 = interface 1 on the MVE
- vNIC 1 = interface 2 on the MVE
- vNIC 2 = interface 3 on the MVE
- vNIC 3 = interface 4 on the MVE
- vNIC 4 = interface 5 on the MVE
Create and deploy a VXC Hosted Connection
With the port details, create the VXC to AWS from the MVE. You specify the configuration details in the Body of the request. The firstproductUid identifies the MVE ID and the bEnd: productUid identifies the AWS port location from the Partner Megaports lookup. You also need to provide your AWS account number in the request.
This example uses the Hosted Connection connection type, connectType=AWSHC.
To create a VXC
-
Create a request with the POST Buy AWS - Hosted Connection (v3) endpoint:
-
Update the Body of the request with the
productUidof the MVE, the name of the VXC, theproductUidof the AWS port, and the AWS account ID (ownerAccount).
You can also change additional values, such as rate limit, contract term, VLAN ID, ASN values, authKey, and IP addressing. The vNIC is determined byvNicIndex, innerVlan identifies VLAN number run within the vNIC, in this case 666.
The vNIC number relates to the following MVE interfaces:
- vNIC 0 = interface 1 on the MVE
- vNIC 1 = interface 2 on the MVE
- vNIC 2 = interface 3 on the MVE
- vNIC 3 = interface 4 on the MVE
- vNIC 4 = interface 5 on the MVE