dots.v2.partner_network_connect.attachments.byPa_id().bgp_auth_key.get()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.partner_network_connect.attachments.byPa_id(pa_id).bgp_auth_key.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Bgp_auth_keyGetResponse>

Description

To get the current BGP auth key for a partner attachment, send a GET request to /v2/partner_network_connect/attachments/{pa_id}/bgp_auth_key.

Parameters

pa_id string required

Example: 4de7ac8b-495b-4884-9a69-1050c6793cd6

A unique identifier for a partner attachment.

Min: 1

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.partner_network_connect.attachments
    .byPa_id("4de7ac8b-495b-4884-9a69-1050c6793cd6").bgp_auth_key.get();

Response Example

Show Response Example
{
  "bgp_auth_key": {
    "value": "secret"
  }
}

More Information

See /v2/partner_network_connect/attachments/{pa_id}/bgp_auth_key in the API reference for 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.