{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To create a new partner attachment, send a `POST` request to\n`/v2/partner_network_connect/attachments` with a JSON object containing the\nrequired configuration details.\n","properties":{"body":{"$ref":"#/definitions/partner_attachment_writable"}},"required":[],"additionalProperties":false,"definitions":{"partner_attachment_writable":{"type":"object","required":["name","connection_bandwidth_in_mbps","region","naas_provider","vpc_ids"],"properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9\\-\\.]+$","description":"The name of the partner attachment. Must be unique and may only contain alphanumeric characters, dashes, and periods.","examples":["env.prod-partner-network-connect"]},"connection_bandwidth_in_mbps":{"type":"integer","description":"Bandwidth (in Mbps) of the connection.","enum":[1000,2000,5000,10000],"examples":[1000]},"region":{"description":"The region to create the partner attachment.","enum":["nyc","sfo","fra","ams","sgp"],"type":"string","examples":["nyc"]},"naas_provider":{"type":"string","examples":["megaport"]},"vpc_ids":{"type":"array","items":{"type":"string"},"minItems":1,"description":"An array of VPCs IDs.","examples":[["c140286f-e6ce-4131-8b7b-df4590ce8d6a","994a2735-dc84-11e8-80bc-3cfdfea9fba1"]]},"parent_uuid":{"type":"string","description":"Optional associated partner attachment UUID","examples":["d594cf8d-8c79-4bc5-aec1-6f9b211506b3"]},"bgp":{"type":"object","description":"Optional BGP configurations","required":["local_router_ip","peer_router_ip","peer_router_asn","auth_key"],"properties":{"local_router_ip":{"type":"string","description":"IP of the DO router","examples":["169.254.0.1/29"]},"peer_router_ip":{"type":"string","description":"IP of the Naas Provider router","examples":["169.254.0.6/29"]},"peer_router_asn":{"type":"integer","description":"ASN of the peer router","examples":[64532]},"auth_key":{"type":"string","description":"BGP Auth Key","examples":["0xsNnb1pwQlowdoMySEfWwk4I"]}}},"redundancy_zone":{"type":"string","description":"Optional redundancy zone for the partner attachment.","enum":["MEGAPORT_BLUE","MEGAPORT_RED"],"examples":["MEGAPORT_BLUE"]}}}}},"name":"Create a new partner attachment","id":"digitalocean.partnerattachments_create","example":{},"maxRequests":1,"summary":false}}