To list all of the load balancer instances on your account, send a GET request
to /v2/load_balancers
.
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 |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.load_balancers.list()
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.