pydo.apps.list_deployments()
Generated on 20 Oct 2025
from pydo version
v0.18.0
Description
List all deployments of an app.
Parameters
| Name | Type | Required | Description | Default Value |
|---|---|---|---|---|
app_id |
string | True | The app ID | |
page |
integer | False | Which ‘page’ of paginated results to return. | 1 |
per_page |
integer | False | Number of items returned per page | 20 |
deployment_types |
array | False | Optional. Filter deployments by deployment_type - MANUAL: manual deployment - DEPLOY_ON_PUSH: deployment triggered by a push to the app’s repository - MAINTENANCE: deployment for maintenance purposes - MANUAL_ROLLBACK: manual revert to a previous deployment - AUTO_ROLLBACK: automatic revert to a previous deployment - UPDATE_DATABASE_TRUSTED_SOURCES: update database trusted sources - AUTOSCALED: deployment that has been autoscaled |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
get_resp = client.apps.list_deployments(app_id="4f6c71e2")More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.