pydo.byoip_prefixes.list()
Generated on 16 Jul 2025
from pydo
version
v0.13.0
Description
To list all BYOIP prefixes, send a GET request to /v2/byoip_prefixes
.
A successful response will return a list of all BYOIP prefixes associated with the account.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
per_page |
integer | False | Number of items returned per page | 20 |
page |
integer | False | Which ‘page’ of paginated results to return. | 1 |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.byoip_prefixes.list()
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.