pydo.byoip_prefixes.list_resources()

Generated on 8 May 2026 from pydo version v0.34.0

Usage

client.byoip_prefixes.list_resources(
    byoip_prefix_uuid="f47ac10b-58cc-4372-a567-0e02b2c3d479",
    per_page=20,
    page=1,
)
Returns JSONRaises HttpResponseError

Description

To list resources associated with BYOIP prefixes, send a GET request to /v2/byoip_prefixes/{byoip_prefix_uuid}/ips.

A successful response will return a list of resources associated with the specified BYOIP prefix.

Parameters

byoip_prefix_uuid string required

The unique identifier for the BYOIP Prefix.

Min: 1

per_page integer optional

Number of items returned per page

Min: 1

Max: 200

Default: 20

page integer optional

Which 'page' of paginated results to return.

Min: 1

Default: 1

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

resp = client.byoip_prefixes.resources_list(byoip_prefix_uuid="fa3b-1234-5678-90ab-cdef01234567")

Pagination

This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page parameter:

from urllib.parse import urlparse, parse_qs

resp = client.byoip_prefixes.list_resources(byoip_prefix_uuid="f47ac10b-58cc-4372-a567-0e02b2c3d479", )
pages = resp.get("links", {}).get("pages", {})

while "next" in pages:
    parsed = urlparse(pages["next"])
    page = int(parse_qs(parsed.query)["page"][0])
    resp = client.byoip_prefixes.list_resources(byoip_prefix_uuid="f47ac10b-58cc-4372-a567-0e02b2c3d479", page=page)
    pages = resp.get("links", {}).get("pages", {})

Response Example

Show Response Example
{
  "ips": [
    {
      "id": 11111023,
      "byoip": "203.0.113.2",
      "region": "nyc3",
      "resource": "do:droplet:fa3c10b-58cc-4372-a567-0e02b2c3d479",
      "assigned_at": "2025-06-25T12:00:00Z"
    },
    {
      "id": 11111024,
      "byoip": "203.0.113.3",
      "region": "nyc3",
      "resource": "do:droplet:fa3c10b-58cc-4372-a567-0e02b2c3d480",
      "assigned_at": "2025-06-25T13:00:00Z"
    }
  ],
  "links": {},
  "meta": {
    "total": 2
  }
}

More Information

See /v2/byoip_prefixes/{byoip_prefix_uuid}/ips 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.