การยืนยันตัวตน

ส่ง API key ในรูปแบบ bearer token คีย์ดังกล่าวต้องมีสิทธิ์ sites.delete หากไม่มีสิทธิ์ ระบบจะปฏิเสธด้วยรหัส 403 แทนที่จะเป็น 404

ปลายทางนี้ไม่ต้องใช้รหัสองค์กร คีย์ของคุณระบุองค์กรที่เป็นเจ้าของอยู่แล้ว และการตอบกลับจะถูกจำกัดขอบเขตไว้เฉพาะองค์กรนั้น

ทดลองใช้เลย

แทนที่สิ่งใดๆ ที่อยู่ภายในวงเล็บแหลมด้วยค่าของคุณเอง และตัวยึดตำแหน่งคีย์ด้วยคีย์จากแดชบอร์ดของคุณ

curl -X DELETE https://api.zinndigital.com/v1/compute/clusters/{clusterId} \
  -H "Authorization: Bearer zdk_live_…"

เข้าสู่ระบบแล้วใช่ไหม คอนโซล API ในแดชบอร์ดของคุณจะเติมรหัสองค์กรจริงและคีย์ของคุณเองโดยอัตโนมัติ และทำการส่งคำขอไปยัง API จริง เพื่อให้คุณเห็นผลลัพธ์ที่เป็นข้อมูลจริง เปิดจุดสิ้นสุดนี้ในคอนโซล API

รายละเอียด

202. ⛔ Irreversible: every node is deleted with its disk, its floating IPs are released, its meter is settled, and the network and the cluster's keys are removed. Refused while the cluster is still being built. Requires sites.delete.

พารามิเตอร์

ชื่อประเภทจำเป็นต้องมีลักษณะของสิ่งนี้
clusterId (path)Uuidใช่The cluster's id, as listComputeClusters reports it.

การตอบกลับ

ชื่อประเภทจำเป็นต้องมีลักษณะของสิ่งนี้
idUuidใช่UUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringใช่
deploy_targetstringใช่
zonestringใช่
plan_codestringใช่
imagestringใช่
worker_countintegerใช่
install_argocdbooleanใช่
deploy_sample_appbooleanใช่
statusstring<pending, provisioning, bootstrapping, ready, failed, terminating, terminated>ใช่
messagestringใช่
kubernetes_versionstringใช่
argocd_versionstringใช่
ready_nodesintegerใช่
sample_app_healthstringใช่Argo CD's sync/health for the sample application, e.g. Synced/Healthy.
api_addressstringใช่The Kubernetes API's public address (port 6443).
network_idstringใช่
nodesComputeServer[]ใช่
created_atstringใช่
ready_atobjectใช่

ข้อผิดพลาดที่เอนด์พอยต์นี้สามารถส่งกลับได้

401 · 403 · 404 · 422 · 429 · 503