pydo.apps.restart()

Generated on 17 Apr 2025 from pydo version v0.10.0

Description

Perform a rolling restart of all or specific components in an app.

Parameters

Name Type Required Description Default Value
app_id string True The app ID
body JSON or IO[bytes] False

Request Sample

import os
from pydo import Client

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

create_resp = client.apps.restart(app_id="b6bdf840", body={"components": ["component1", "component2"]})

More Information

See the API spec for this endpoint to view 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.