Skip to main content

partner_attachments

Creates, updates, deletes, gets or lists a partner_attachments resource.

Overview

Namepartner_attachments
TypeResource
Iddigitalocean.network.partner_attachments

Fields

The following fields are returned by SELECT queries:

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

NameDatatypeDescription
idstring (string)A unique ID that can be used to identify and reference the partner attachment. (example: 5a4981aa-9653-4bd1-bef5-d6bff52042e4)
namestringThe name of the partner attachment. Must be unique and may only contain alphanumeric characters, dashes, and periods. (pattern: ^[a-zA-Z0-9-.]+$, example: env.prod-partner-network-connect)
bgpobjectThe BGP configuration for the partner attachment.
childrenarrayAn array of associated partner attachment UUIDs.
connection_bandwidth_in_mbpsintegerThe bandwidth (in Mbps) of the connection.
created_atstring (date-time)A time value given in ISO8601 combined date and time format. (example: 2020-03-13T19:20:47.442049222Z)
naas_providerstringThe Network as a Service (NaaS) provider for the partner attachment. (example: megaport)
parent_uuidstringAssociated partner attachment UUID (example: 34259a41-0ca6-4a6b-97dd-a22bcab900dd)
regionstringThe region where the partner attachment is located. (example: nyc)
statestringThe current operational state of the attachment. (example: active)
vpc_idsarrayAn array of VPC network IDs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
partner_attachments_getselectpa_idTo get the details of a partner attachment, send a GET request to
/v2/partner_network_connect/attachments/{pa_id}.
partner_attachments_listselectper_page, pageTo list all of the Partner Attachments on your account, send a GET request to /v2/partner_network_connect/attachments.
partner_attachments_createinsertdata__name, data__connection_bandwidth_in_mbps, data__region, data__naas_provider, data__vpc_idsTo create a new partner attachment, send a POST request to
/v2/partner_network_connect/attachments with a JSON object containing the
required configuration details.
partner_attachments_patchupdatepa_idTo update an existing partner attachment, send a PATCH request to
/v2/partner_network_connect/attachments/{pa_id} with a JSON object containing the
fields to be updated.
partner_attachments_deletedeletepa_idTo delete an existing partner attachment, send a DELETE request to
/v2/partner_network_connect/attachments/{pa_id}.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pa_idstring (string)A unique identifier for a partner attachment. (example: 4de7ac8b-495b-4884-9a69-1050c6793cd6)
pageintegerWhich 'page' of paginated results to return. (example: 1)
per_pageintegerNumber of items returned per page (example: 2)

SELECT examples

To get the details of a partner attachment, send a GET request to
/v2/partner_network_connect/attachments/{pa_id}.

SELECT
id,
name,
bgp,
children,
connection_bandwidth_in_mbps,
created_at,
naas_provider,
parent_uuid,
region,
state,
vpc_ids
FROM digitalocean.network.partner_attachments
WHERE pa_id = '{{ pa_id }}' -- required;

INSERT examples

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.

INSERT INTO digitalocean.network.partner_attachments (
data__name,
data__connection_bandwidth_in_mbps,
data__region,
data__naas_provider,
data__vpc_ids,
data__parent_uuid,
data__bgp,
data__redundancy_zone
)
SELECT
'{{ name }}' --required,
{{ connection_bandwidth_in_mbps }} --required,
'{{ region }}' --required,
'{{ naas_provider }}' --required,
'{{ vpc_ids }}' --required,
'{{ parent_uuid }}',
'{{ bgp }}',
'{{ redundancy_zone }}'
RETURNING
partner_attachment
;

UPDATE examples

To update an existing partner attachment, send a PATCH request to
/v2/partner_network_connect/attachments/{pa_id} with a JSON object containing the
fields to be updated.

UPDATE digitalocean.network.partner_attachments
SET
-- No updatable properties
WHERE
pa_id = '{{ pa_id }}' --required
RETURNING
partner_attachment;

DELETE examples

To delete an existing partner attachment, send a DELETE request to
/v2/partner_network_connect/attachments/{pa_id}.

DELETE FROM digitalocean.network.partner_attachments
WHERE pa_id = '{{ pa_id }}' --required;