Create
- POST
- /workspaces
- /:workspace
- /targets
Creates a new Google Kubernetes Engine 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-rjqupxybacvld", "identifier": "gke_workspace", "tags": [ "orange", "rabsperry", "olive" ], "name": "GKE WORKSPACE", "integration": "GOOGLE_SERVICE_ACCOUNT_DEFAULT", "cluster": "buddy-tests", "project_id": "tests-buddy", "zone": "europe-west3-a", "type": "GKE" }'EXAMPLE RESPONSE{ "url": "https://api.buddy.works/workspaces/buddy/targets/tg-qm20i6qafqpwa", "html_url": "https://app.buddy.works/buddy/-/targets/tg-qm20i6qafqpwa/edit", "id": "tg-qm20i6qafqpwa", "identifier": "gke_workspace", "permissions": { "others": "USE_ONLY", "users": [ { "id": 1, "access_level": "MANAGE" } ] }, "tags": [ "orange", "rabsperry", "olive" ], "name": "GKE WORKSPACE", "integration": "GOOGLE_SERVICE_ACCOUNT_DEFAULT", "cluster": "buddy-tests", "project_id": "tests-buddy", "zone": "europe-west3-a", "type": "GKE" }
STATUS200 OK
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999