Immediately cancel an in-progress deployment.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
app_id |
string | True | The app ID | |
deployment_id |
string | True | The deployment ID |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
cancel_resp = client.apps.cancel_deployment("12345", "24556")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.