v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Partner Network Connect

Create a new partner attachment

To create a new partner attachment, send a POST request to /v2/partner_network_connect/attachments with a JSON object containing the required configuration details.

post/v2/partner_network_connect/attachments

Request body

namestring required

The name of the partner attachment. Must be unique and may only contain alphanumeric characters, dashes, and periods.

connection_bandwidth_in_mbps1000 | 2000 | 5000 | 10000 required

Bandwidth (in Mbps) of the connection.

region'nyc' | 'sfo' | 'fra' | 'ams' | 'sgp' required

The region to create the partner attachment.

naas_providerstring required
vpc_idsstring[] required

An array of VPCs IDs.

parent_uuidstring

Optional associated partner attachment UUID

redundancy_zone'MEGAPORT_BLUE' | 'MEGAPORT_RED'

Optional redundancy zone for the partner attachment.

Example request

{
  "name": "env.prod-partner-network-connect",
  "connection_bandwidth_in_mbps": 1000,
  "region": "nyc",
  "naas_provider": "megaport",
  "vpc_ids": [
    "c140286f-e6ce-4131-8b7b-df4590ce8d6a",
    "994a2735-dc84-11e8-80bc-3cfdfea9fba1"
  ],
  "parent_uuid": "d594cf8d-8c79-4bc5-aec1-6f9b211506b3",
  "bgp": {
    "local_router_ip": "169.254.0.1/29",
    "peer_router_ip": "169.254.0.6/29",
    "peer_router_asn": 64532,
    "auth_key": "0xsNnb1pwQlowdoMySEfWwk4I"
  },
  "redundancy_zone": "MEGAPORT_BLUE"
}

Response

The response will be a JSON object with details about the partner attachment including attached VPC network IDs and BGP configuration information

Example response

{
  "partner_attachment": {
    "id": "5a4981aa-9653-4bd1-bef5-d6bff52042e4",
    "name": "env.prod-partner-network-connect",
    "state": "CREATED",
    "created_at": "2025-03-27T13:03:53Z",
    "connection_bandwidth_in_mbps": 1000,
    "region": "NYC",
    "naas_provider": "MEGAPORT",
    "vpc_ids": [
      "796c6fe3-2a1d-4da2-9f3e-38239827dc91"
    ],
    "bgp": {
      "local_asn": 65000,
      "local_router_ip": "2.2.2.2/29",
      "peer_asn": 65001,
      "peer_router_ip": "3.3.3.3/29"
    }
  }
}