Skip to main content
This topic describes the API procedure to create a Megaport Object Storage connection from a Port, MCR, MVE, or NAT Gateway that you own. A Megaport Object Storage connection is a Virtual Cross Connect (VXC) with your existing service as the A-End and a storage destination as the B-End. The steps include how to:
  • get the productUid for the service to use as the A-End
  • find the storage destination to use as the B-End
  • validate and order the VXC

Prerequisites

Before you begin, obtain a valid access token. For more information, see Creating an API Key. You also need:
  • Object Storage provisioned in the . For more information, see Megaport Object Storage Overview.
  • A provisioned Port, MCR, MVE, or NAT Gateway to use as the A-End of the connection.
For the equivalent Megaport Portal procedure, see Creating a Megaport Object Storage Connection.

Getting the productUid for the A-End service

To create the VXC, you need the productUid of the service to connect from. To get the productUid for the A-End service
  1. Get the product list.
  2. From the returned product details, locate the productUid value for the Port, MCR, MVE, or NAT Gateway you want to connect from. This example uses this value: ef59ff80-7f50-11f1-b1ba-59b488c88b57

Finding the storage destination for the B-End

The storage destination is the B-End of the connection. Discover the available storage destinations by filtering the Megaport partner interfaces on the STORAGE connect type. To find the storage destination
  1. Get the list of interfaces Megaport has with partners, filtered on the STORAGE connect type.
  2. From the response, select the storage destination that matches the location where you provisioned your storage.
    Connect to the location where you provisioned your storage. Connecting to a different location does not provide access to your buckets.
    To order the VXC, you need the following IDs for the B-End from the response:
    • locationId — The ID of the storage location.
    • productUid — The storage port to connect to.
    • companyUid — The ID of the storage provider, used as the ownerUid on the B-End.

Validating and ordering the connection

You set the storage configuration on the B-End partnerConfig, where you specify the BGP details for the connection. The A-End partnerConfig is empty. A storage connection requires BGP. At a minimum, specify the asn. You can add the BGP password when you create the VXC or after it is provisioned. Set the B-End vlan to -1 so that the storage port assigns the VLAN rather than you choosing one. Set the A-End vlan to 0.
The validate endpoint uses v3 of the API while the buy endpoint uses v4.
To validate the configuration
  1. Create a request with this URL:
  2. Add these headers to the request:
    • Content-Type: application/json
    • Authorization: Bearer {your accessToken}
  3. Create the request Body with the configuration details. The validate request Body is an array of design objects. Each design object identifies the A-End service with productUid and carries the storage VXC in associatedVxcs.
    A successful response returns "message": "Validation passed" and the pricing details for the connection.
To order the connection
  1. After you validate the configuration, create a request with this URL:
  2. Create the request Body.
    The buy request wraps the design objects from the validate step in a networkDesign array, alongside a discountCodes array.
  3. Send the request. If the request is successful, the response confirms the created VXC, including its technicalServiceUid. The VXC then appears in the Megaport Portal.

Storage connection parameters

The storage configuration is set on the B-End partnerConfig.
In this example, prefixes and route_table are set to null. The format for populated values for these parameters is not covered in this example.
To see all options for the requests used in this example, see https://dev.megaport.com.

Helpful references

Last modified on August 21, 2026