-
Click Locations in the left navigation and click GET Locations (v3).
This request is not expecting Parameters or Body information. -
Click Send to make the request.
Ensure the request was successful by looking for Status: 200 OK and display the response in the Body section in the Pretty format. The request returns hundreds of Port locations. You can search by clicking the magnifying glass and entering a specific city, data center, or other parameter in the search field. This example uses the Digital Realty, London location.
market value and id value. In this example, the market is UK and the data center ID is 89.
To test and validate the Port order
- In Postman, open the Ports folder in the left navigation and select POST Validate Port Order (v3).
-
Update the Body with the
locationId(89),term(number of months - 1, 12, 24, 36, 48, or 60),productName(whatever name you want for your Port),portSpeed(1000, 10000, or 100000 Mbps), andmarket(UK) and click Send.
-
With a validated Port request and reviewed cost information, copy the Body from POST Validate Port Order (v3) and paste into the Body of POST Buy Port (v3).
If you make this call on api.megaport.com, your account will be charged for the service. Alternatively, you can provision against the staging API without charges, as in these examples.
-
Send the request.
A successful response includes atechnicalServiceUid, which is the same as theproductUid.
For our example, this value is a49cf3f1-20a1-4390-93aa-5005bdafe3d7.
Download the Letter of Authorization (LOA)
After you create your Port, you can download the LOA.Before you can download the LOA, the Provisioning Status of the Port must be Configured.
- In Postman, expand Ports in the left navigation and select GET Regenerate LOA for Megaport Service.
-
In the GET command, replace the
productIDwith the value created during Port creation. -
Send the request.
With a successful 200 OK response, this message appears in the Body section:
This message appears because the LOA is a PDF document and must be downloaded. To download, click Save Response in Postman and save the PDF to a convenient location.