compute
DELETE /v1/compute/clusters/{clusterId}
Delete a cluster and every machine in it.
စစ်မှန်ကြောင်း အတည်ပြုခြင်း
API သော့တစ်ခုကို bearer token အဖြစ် ပို့ပါ။ သော့တွင် sites.delete ခွင့်ပြုချက် ပါရှိရမည်ဖြစ်ပြီး၊ ၎င်းမပါရှိသော သော့ကို 404 အစား 403 ဖြင့် ငြင်းပယ်ပါမည်။
ဤ အမှတ်ဆက် (endpoint) သည် အဖွဲ့အစည်း အိုင်ဒီ (organisation id) ကို မယူပါ။ သင်၏ သော့ချက် (key) သည် ၎င်းပိုင်ဆိုင်သည့် အဖွဲ့အစည်းကို အလိုအလျောက် ဖော်ထုတ်ပြီးဖြစ်ကာ တုံ့ပြန်ချက်ကိုလည်း ၎င်းနှင့်သာ ကန့်သတ်ထားမည် ဖြစ်သည်။
စမ်းကြည့်ရန်
ထောင့်ချိတ်များအတွင်းရှိ မည်သည့်အရာကိုမဆို သင်၏ကိုယ်ပိုင်တန်ဖိုးများဖြင့် အစားထိုးပြီး သင့်ဒက်ရှ်ဘုတ်မှ သော့ချက်တစ်ခုဖြင့် key ကို အစားထိုးပါ။
curl -X DELETE https://api.zinndigital.com/v1/compute/clusters/{clusterId} \
-H "Authorization: Bearer zdk_live_…"ဝင်ရောက်ပြီးပြီလား။ သင့်ဒက်ရှ်ဘုတ်ရှိ API ကွန်ဆိုးလ်တွင် သင့်၏ တကယ့်အဖွဲ့အစည်း ID နှင့် သင့်ကိုယ်ပိုင်သော့ချက်တို့ဖြင့် ဖြည့်သွင်းပေးပြီး တကယ့်တုံ့ပြန်ချက်ကို သင်မြင်နိုင်ရန် တိုက်ရိုက် API (live API) ကို အသုံးပြု၍ တောင်းဆိုမှုကို လုပ်ဆောင်ပေးပါသည်။ ဤအဆုံးသတ်အမှတ် (endpoint) ကို 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. |
တုံ့ပြန်ချက်
| နာမည် | အမျိုးအစား | လိုအပ်သည် | ဘာလဲဆိုတာ |
|---|---|---|---|
id | Uuid | ဟုတ်ကဲ့ | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | ဟုတ်ကဲ့ | — |
deploy_target | string | ဟုတ်ကဲ့ | — |
zone | string | ဟုတ်ကဲ့ | — |
plan_code | string | ဟုတ်ကဲ့ | — |
image | string | ဟုတ်ကဲ့ | — |
worker_count | integer | ဟုတ်ကဲ့ | — |
install_argocd | boolean | ဟုတ်ကဲ့ | — |
deploy_sample_app | boolean | ဟုတ်ကဲ့ | — |
status | string<pending, provisioning, bootstrapping, ready, failed, terminating, terminated> | ဟုတ်ကဲ့ | — |
message | string | ဟုတ်ကဲ့ | — |
kubernetes_version | string | ဟုတ်ကဲ့ | — |
argocd_version | string | ဟုတ်ကဲ့ | — |
ready_nodes | integer | ဟုတ်ကဲ့ | — |
sample_app_health | string | ဟုတ်ကဲ့ | Argo CD's sync/health for the sample application, e.g. Synced/Healthy. |
api_address | string | ဟုတ်ကဲ့ | The Kubernetes API's public address (port 6443). |
network_id | string | ဟုတ်ကဲ့ | — |
nodes | ComputeServer[] | ဟုတ်ကဲ့ | — |
created_at | string | ဟုတ်ကဲ့ | — |
ready_at | object | ဟုတ်ကဲ့ | — |
ဤအမှတ်ဆက်မှ ပြန်ပေးနိုင်သော အမှားများ
401 · 403 · 404 · 422 · 429 · 503