Skip to main content

partner_attachments_remote_routes

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

Overview

Namepartner_attachments_remote_routes
TypeResource
Iddigitalocean.network.partner_attachments_remote_routes

Fields

The following fields are returned by SELECT queries:

The response will be a JSON object with a remote_routes array containing
information on all the remote routes associated with the partner attachment

NameDatatypeDescription
cidrstringA CIDR block representing a remote route. (example: 10.10.10.0/24)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
partner_attachments_list_remote_routesselectpa_idper_page, pageTo list all remote routes associated with a partner attachment, send a GET request to
/v2/partner_network_connect/attachments/{pa_id}/remote_routes.

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 list all remote routes associated with a partner attachment, send a GET request to
/v2/partner_network_connect/attachments/{pa_id}/remote_routes.

SELECT
cidr
FROM digitalocean.network.partner_attachments_remote_routes
WHERE pa_id = '{{ pa_id }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}';