dots.v2.insights.resources.get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.insights.resources.get(requestConfiguration?: RequestConfiguration<ResourcesRequestBuilderGetQueryParameters>): Promise<undefined | List_resources_response>

Description

To list the resources in your account that have telemetry signal enablement recorded, along with the current state of their metrics, logs, and traces signals, send a GET request to /v2/insights/resources.

Results are paginated with pagination.page and pagination.per_page (default 20, maximum 200) and can be sorted with pagination.sort and pagination.sort_direction. Optionally filter by filter.product_types and filter.regions.

A signal is omitted from a resource when no explicit enablement has ever been recorded for it.

Parameters

filterProductTypes array of strings optional

Example: ["droplet"]

Optional filter. When set, only resources of these product types are returned. Repeat the parameter for multiple product types.

filterRegions array of strings optional

Example: ["nyc3"]

Optional filter. When set, only resources in these regions are returned. Repeat the parameter for multiple regions.

paginationPage integer optional

Example: 1

Which 'page' of paginated results to return.

Default: 1

Min: 1

paginationPerPage integer optional

Example: 20

Number of items returned per page.

Default: 20

Min: 1

Max: 200

paginationSort string optional

Field to sort by. Defaults to resource_urn.

One of: resource_urn, effective_at

paginationSortDirection string optional

Sort direction. Defaults to asc.

One of: asc, desc

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.insights.resources.get();

Response Example

Show Response Example
{
  "resources": [
    {
      "resource_urn": "do:droplet:12345",
      "product_type": "droplet",
      "region": "nyc3",
      "metrics": {
        "enabled": true,
        "effective_at": "2026-10-01T12:00:00Z"
      },
      "logs": {
        "enabled": true,
        "effective_at": "2026-10-01T12:00:00Z"
      },
      "traces": {
        "enabled": false,
        "effective_at": "2026-10-03T08:30:00Z"
      }
    },
    {
      "resource_urn": "do:kubernetes:8d91d5e0-1c2b-4f3a-9e7d-6a5b4c3d2e1f",
      "product_type": "kubernetes",
      "region": "sfo3",
      "metrics": {
        "enabled": true,
        "effective_at": "2026-09-20T09:15:00Z"
      }
    }
  ],
  "pagination": {
    "page": 1,
    "pages": 1,
    "per_page": 20,
    "total": 2
  }
}

More Information

See /v2/insights/resources 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.