pydo.partner_attachments.create()

Generated on 20 Oct 2025 from pydo version v0.18.0

Description

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.

Request Sample

import os
from pydo import Client

client = Client(token=os.getenv("$DIGITALOCEAN_TOKEN"))

req = { 
  "connection_bandwidth_in_mbps": 1000,
  "naas_provider": "MEGAPORT",  
  "name": "c5pAqd-ped-007",
  "region": "NYC",
  "vpc_ids": [
      "bafc1c1d-bac1-2412-7f5e-fezc832z213z"
  ],
  "bgp": {
      "auth_key": "0zzyTNuRZa00vqkzIToPG3q",
      "local_router_ip": "169.254.11.1/29",
      "peer_router_asn": 133938,
      "peer_router_ip": "169.254.11.2/29"
  },
}

resp = client.partner_attachments.create(body=req)

More Information

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.