Create
- POST
- /workspaces
- /:workspace
- /targets
Creates a new Digital Ocean Kubernetes target.
Example:
curl -X POST "https://api.buddy.works/workspaces/:workspace/targets" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"id": "tg-k6d2gow5ec6a0",
"identifier": "doks_workspace",
"tags": [
"orange",
"rabsperry",
"olive"
],
"name": "DOKS WORKSPACE",
"integration": "DIGITAL_OCEAN_TOKEN",
"cluster": "https://192.168.5.226:6443",
"type": "DOKS"
}'
EXAMPLE RESPONSE{ "url": "https://api.buddy.works/workspaces/buddy/targets/tg-m2lobrci7mr23", "html_url": "https://app.buddy.works/buddy/-/targets/tg-m2lobrci7mr23/edit", "id": "tg-m2lobrci7mr23", "identifier": "doks_workspace", "permissions": { "others": "USE_ONLY", "users": [ { "id": 1, "access_level": "MANAGE" } ] }, "tags": [ "orange", "rabsperry", "olive" ], "name": "DOKS WORKSPACE", "integration": "DIGITAL_OCEAN_TOKEN", "cluster": "https://192.168.5.226:6443", "type": "DOKS" }
STATUS200 OK
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999