Skip to content

Resource Reference

Data models, field definitions, valid values, and constraints for all Megaport resource types

Field-level reference for every Megaport resource type. Use this alongside Input Modes when constructing JSON configurations.


Resource lifecycle

All provisioned resources move through these states:

StatusDescription
CONFIGUREDResource created — fabric provisioning in progress
LIVEResource is active and operational
CANCELLEDDeletion requested — pending end of billing period
DECOMMISSIONEDResource fully removed from the fabric

Commands wait for LIVE status by default. Use --no-wait to return immediately after creation.


Shared constraints

These apply across all resource types.

ConstraintValue
Contract terms1, 12, 24, 36 months
Max resource name length64 characters (ports, MVE)
Output formatstable, json, csv, xml

Port

Physical port connecting on-premises infrastructure to the Megaport fabric.

Fields

FieldTypeDescription
uidstringUnique identifier
namestringPort name (max 64 chars)
locationIdintegerData centre location ID
portSpeedintegerSpeed in Mbps
provisioningStatusstringCurrent lifecycle state
marketPlaceVisibilitybooleanVisible to other Megaport customers
costCentrestringCost centre label
termintegerContract term in months
lockedbooleanLock state (prevents deletion)
diversityZonestringDiversity zone for redundant ports
resourceTagsmap<string, string>Key-value tags for organising and labelling the resource

Port speeds

SpeedDescription
10001 Gbps
1000010 Gbps
100000100 Gbps

LAG port speeds

SpeedMax member count
100008
1000008

Buy (JSON)

json
{
  "name": "Sydney Primary",
  "locationId": 3,
  "portSpeed": 10000,
  "term": 12,
  "marketPlaceVisibility": false,
  "costCentre": "INFRA-001",
  "diversityZone": "blue",
  "resourceTags": {
    "environment": "production",
    "team": "network-ops"
  }
}

name, locationId, portSpeed, term, and marketPlaceVisibility are required.


VXC

Virtual Cross Connect — a Layer 2 point-to-point circuit between two endpoints.

Fields

FieldTypeDescription
uidstringUnique identifier
namestringVXC name
aEndUidstringA-End port/MCR/MVE UID
bEndUidstringB-End UID (partner port or owned port)
aEndVlanintegerA-End VLAN ID
bEndVlanintegerB-End VLAN ID
rateLimitintegerBandwidth in Mbps
provisioningStatusstringCurrent lifecycle state
termintegerContract term in months
costCentrestringCost centre label
lockedbooleanLock state
resourceTagsmap<string, string>Key-value tags for organising and labelling the resource

VLAN values

ValueMeaning
0Auto-assign (Megaport chooses)
-1Untagged
24093Assignable range
1Reserved — cannot be used
4094Maximum IEEE 802.1Q value

VXC partner configs (b-end)

Use the bEndPartnerConfig field in JSON input to connect to cloud providers.

AWS Direct Connect

json
{
  "connectType": "AWS",
  "ownerAccount": "123456789012",
  "type": "private",
  "connectionName": "my-dx-connection",
  "asn": 65000,
  "authKey": "optional-bgp-auth-key"
}
FieldRequiredDescription
connectTypeYes"AWS" (standard) or "AWSHC" (Hosted Connection)
ownerAccountYesAWS account ID (12 digits)
typeNo"private" (default) or "public"
connectionNameNoName in AWS Console (max 255 chars)
asnNoBGP ASN for the virtual interface
authKeyNoBGP authentication key

Azure ExpressRoute

json
{
  "connectType": "AZURE",
  "serviceKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
FieldRequiredDescription
connectTypeYes"AZURE"
serviceKeyYesAzure ExpressRoute circuit service key (UUID)
peersNoArray of BGP peer configurations

Google Cloud Interconnect

json
{
  "connectType": "GOOGLE",
  "pairingKey": "your-gcp-pairing-key"
}
FieldRequiredDescription
connectTypeYes"GOOGLE"
pairingKeyYesGCP VLAN attachment pairing key

Oracle FastConnect

json
{
  "connectType": "ORACLE",
  "virtualCircuitId": "ocid1.virtualcircuit.oc1..."
}
json
{
  "connectType": "IBM",
  "accountId": "32hexcharactersexactly0123456789"
}

accountId must be exactly 32 hex characters.

Megaport Internet (Transit)

json
{
  "connectType": "TRANSIT"
}

Megaport Internet provides direct internet transit connectivity via a VXC. No additional configuration fields are required beyond the connect type.

vRouter (MCR-to-MCR or private BGP)

json
{
  "connectType": "VROUTER",
  "interfaces": [
    {
      "ipAddresses": ["192.168.1.1/30"],
      "bgpConnections": [
        {
          "peerAsn": 65001,
          "localIpAddress": "192.168.1.1",
          "peerIpAddress": "192.168.1.2"
        }
      ]
    }
  ]
}

MCR

Megaport Cloud Router — a virtual Layer 3 router in the Megaport fabric.

Fields

FieldTypeDescription
uidstringUnique identifier
namestringMCR name
locationIdintegerLocation ID
provisioningStatusstringCurrent lifecycle state
portSpeedintegerTotal throughput capacity in Mbps
mcrAsnintegerBGP Autonomous System Number
costCentrestringCost centre label
marketPlaceVisibilitybooleanVisible to other customers
diversityZonestringDiversity zone
lockedbooleanLock state
resourceTagsmap<string, string>Key-value tags for organising and labelling the resource

MCR speeds

1000, 2500, 5000, 10000, 25000, 50000, 100000 Mbps

Buy (JSON)

json
{
  "name": "Cloud Router SYD",
  "locationId": 3,
  "portSpeed": 5000,
  "term": 12,
  "marketPlaceVisibility": false,
  "mcrAsn": 64512
}

name, locationId, portSpeed, term, and marketPlaceVisibility are required. mcrAsn is auto-assigned if omitted.

ASN guidelines

  • Private ASN range: 64512–65534
  • Use private ASNs unless you have a registered public ASN
  • ASN cannot be changed after provisioning

Prefix filter list entry fields

FieldRequiredDescription
actionYes"permit" or "deny"
prefixYesCIDR prefix (e.g. "10.0.0.0/8")
geNoMinimum prefix length (greater-than-or-equal)
leNoMaximum prefix length (less-than-or-equal)

Always add {"action":"deny","prefix":"0.0.0.0/0"} as the final entry for a default-deny.


MVE

Megaport Virtual Edge — a vendor network appliance running in the Megaport fabric.

Fields

FieldTypeDescription
uidstringUnique identifier
namestringMVE name (max 64 chars)
locationIdintegerLocation ID
provisioningStatusstringCurrent lifecycle state
vendorstringAppliance vendor
productSizestringVM size tier
imageIdintegerVendor image version ID
costCentrestringCost centre label
lockedbooleanLock state
resourceTagsmap<string, string>Key-value tags for organising and labelling the resource

Product sizes

SizeDescription
SMALLSmallest compute allocation
MEDIUMStandard compute
LARGEHigh-performance
X_LARGE_12Extra large (12 vCPU)

Supported vendors

Vendor keyVendor
6wind6WIND VSR
arubaAruba SD-WAN
aviatrixAviatrix
ciscoCisco CSR / ASA
fortinetFortiGate
merakiCisco Meraki
palo_altoPalo Alto Networks
prismaPalo Alto Prisma SD-WAN
versaVersa Networks
vmwareVMware SD-WAN

Vendor config required fields

VendorRequired fields
6windimageId, productSize, sshPublicKey
arubaimageId, productSize, accountName, accountKey
aviatriximageId, productSize, cloudInit
ciscoimageId, productSize, adminSshPublicKey, sshPublicKey
fortinetimageId, productSize, adminSshPublicKey, sshPublicKey, licenseData
merakiimageId, productSize, token
palo_altoimageId, productSize, sshPublicKey, adminPasswordHash, licenseData
prismaimageId, productSize, ionKey, secretKey
versaimageId, productSize, directorAddress, controllerAddress, localAuth, remoteAuth, serialNumber
vmwareimageId, productSize, adminSshPublicKey, sshPublicKey, vcoAddress, vcoActivationCode

All vendors support an optional mveLabel field. Use megaport-cli mve list-images to find the correct imageId for your vendor and region.


IX

Internet Exchange connection. Attaches to an existing port.

Fields

FieldTypeDescription
uidstringUnique identifier
namestringIX connection name
productUidstringParent port UID
networkServiceTypestringIX service type
asnintegerYour BGP ASN for this IX
macAddressstringMAC address for the IX interface
rateLimitintegerBandwidth in Mbps
vlanintegerVLAN tag
provisioningStatusstringCurrent lifecycle state

Location

Data centre on the Megaport fabric. Read-only — locations cannot be provisioned or deleted.

Fields

FieldTypeDescription
idintegerLocation ID
namestringLocation name
countrystringCountry code
metrostringMetro area
marketstringMarket code
statusstringLocation availability status
dataCentreNamestringData centre operator name
mcrAvailablebooleanMCR can be provisioned here
mveAvailablebooleanMVE can be provisioned here
latitudefloatGeographic latitude
longitudefloatGeographic longitude

Service Key

Grants access to a port or resource for a third party.

Fields

FieldTypeDescription
keystringThe service key value
productUidstringPort or resource UID this key grants access to
descriptionstringPurpose of the key
activebooleanWhether the key is currently valid
maxSpeedintegerMaximum bandwidth the key holder can use
preApprovedbooleanSkip approval flow for connections
singleUsebooleanKey expires after first use

BGP reference

Used in VXC vRouter configurations and MCR BGP sessions.

ParameterValid rangeDescription
AS path prepend count0–10Times to prepend the AS path
BFD interval300–30000 msBFD keepalive interval
BFD multiplier3–20BFD failure detection multiplier
MED0–4294967295Multi-Exit Discriminator
BGP peer typeNON_CLOUD, PRIV_CLOUD, PUB_CLOUDPeer classification
Export policypermit, denyDefault export policy