Create new sandbox
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
Creates a new Create new sandbox action in the pipeline
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/actions" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Create sandbox",
"disabled": true,
"type": "SANDBOX_CREATE",
"trigger_time": "ON_EVERY_EXECUTION",
"timeout": 1800,
"retry_interval": 60,
"retry_count": 5,
"ignore_errors": true,
"current_revision": "21825f31ddce8a89b3ed9f4c92f038b339cde150",
"from": "SCRATCH",
"update_if_exists": true,
"start": false,
"spec": {
"name": "Running",
"identifier": "running",
"os": "ubuntu:24.04",
"resources": "3x6",
"first_boot_commands": "apt-get update\napt-get install -y nginx",
"tags": [
"azure",
"purple"
],
"apps": [
"nginx -t"
],
"app_dir": "/var/www/html",
"endpoints": [
{
"name": "buddy-graigmaribelesposito-dev-tcp",
"endpoint": "localhost:22",
"domain": "agent-dev.net",
"subdomain": null,
"region": "EU",
"type": "TCP",
"timeout": 60,
"whitelist": [
"12.34.56.78"
]
}
]
},
"loop": [
"env_key"
]
}'STATUS200 OK