pydo.apps.get_exec()
Generated on 17 Apr 2025
from pydo
version
v0.10.0
Description
Returns a websocket URL that allows sending/receiving console input and output to a component of the specified deployment if one exists.
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
app_id |
string | True | The app ID | |
deployment_id |
string | True | The deployment ID | |
component_name |
string | True | An optional component name. If set, logs will be limited to this component only. |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
get_resp = client.apps.get_exec(app_id="4f6c71e2", deployment_id="3aa4d20e", component_name="component")
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.