Create
- POST
- /workspaces
- /:workspace
- /targets
Creates a new kubernetes cluster target in the project.
Example:
curl -X POST "https://api.buddy.works/workspaces/:workspace/targets" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"id": "tg-ypfw2tpfm5i4p",
"identifier": "k8s_cluster_workspace",
"tags": [],
"name": "K8S_CLUSTER WORKSPACE",
"cluster": "https://192.168.5.226:6443",
"auth": {
"method": "TOKEN",
"token": "!encrypted 9834+V/D7lXE/OhoVor4rd4R+VRBxaG33ZZ9ciZLs3z/12s6WETH27xoi/mWcl5E.aW1crlXL9VMXb8mJjT6YKA=="
},
"type": "K8S_CLUSTER"
}'
EXAMPLE RESPONSE{ "url": "https://api.buddy.works/workspaces/buddy/targets/tg-aqtucqx1agenv", "html_url": "https://app.buddy.works/buddy/-/targets/tg-aqtucqx1agenv/edit", "id": "tg-aqtucqx1agenv", "identifier": "k8s_cluster_workspace", "permissions": { "others": "USE_ONLY", "users": [ { "id": 1, "access_level": "MANAGE" } ] }, "name": "K8S_CLUSTER WORKSPACE", "cluster": "https://192.168.5.226:6443", "auth": { "method": "TOKEN", "token": "!encrypted 9834+V/D7lXE/OhoVor4rd4R+VRBxaG33ZZ9ciZLs3z/12s6WETH27xoi/mWcl5E.aW1crlXL9VMXb8mJjT6YKA==" }, "type": "K8S_CLUSTER" }
STATUS200 OK
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999