DigitalOcean-public.v2-new_Apps
Retrieve Exec URL for Deployment
Returns a websocket URL that allows sending/receiving console input and output to a component of the specified deployment if one exists. Optionally, the instance_name parameter can be provided to retrieve the exec URL for a specific instance. Note that instances are ephemeral; therefore, we recommended to avoid making persistent changes or such scripting around them.
get/v2/apps/{app_id}/deployments/{deployment_id}/components/{component_name}/exec
Path parameters
app_idstring required
The app ID
deployment_idstring required
The deployment ID
component_namestring required
An optional component name. If set, logs will be limited to this component only.
Query parameters
instance_namestring
The name of the actively running ephemeral compute instance
Response
A JSON object with a websocket URL that allows sending/receiving console input and output.
Example response
{
"url": "wss://exec/?token=xxx"
}