dots.v2.droplets.byDroplet_id().neighbors.get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.droplets.byDroplet_id(droplet_id).neighbors.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | NeighborsGetResponse>

Description

To retrieve a list of any “neighbors” (i.e. Droplets that are co-located on the same physical hardware) for a specific Droplet, send a GET request to /v2/droplets/{droplet_id}/neighbors.

The results will be returned as a JSON object with a key of droplets. This will be set to an array containing objects representing any other Droplets that share the same physical hardware. An empty array indicates that the Droplet is not co-located any other Droplets associated with your account.

Parameters

droplet_id integer required

Example: 3164444

A unique identifier for a Droplet instance.

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.droplets
    .byDroplet_id(3164444).neighbors.get();

Response Example

Show Response Example
{
  "droplets": []
}

More Information

See /v2/droplets/{droplet_id}/neighbors 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.