compute
DELETE /v1/compute/servers/{serverId}/plan/{purchaseId}
Stop paying for one option — where the provider permits it.
प्रमाणन
बेरर टोकन के रूप में एक API कुंजी भेजें। कुंजी के पास billing.payment.manage अनुमति होनी चाहिए; इसके बिना एक कुंजी को 404 के बजाय 403 के साथ अस्वीकार कर दिया जाता है।
यह एंडपॉइंट कोई संगठन आईडी नहीं लेता है। आपकी कुंजी पहले से ही उस संगठन की पहचान करती है जिससे वह संबंधित है, और प्रतिक्रिया उसी के दायरे में है।
इसे आज़माएँ
कोणार्कित ब्रैकेट्स में दी गई किसी भी चीज़ को अपने मानों से बदलें, और की प्लेसहोलर को अपने डैशबोर्ड की एक की से बदलें।
curl -X DELETE https://api.zinndigital.com/v1/compute/servers/{serverId}/plan/{purchaseId} \
-H "Authorization: Bearer zdk_live_…"साइन इन हैं? आपके डैशबोर्ड में मौजूद API कंसोल आपकी वास्तविक संगठन आईडी और आपकी अपनी कुंजी स्वतः भर देता है, और लाइव API के विरुद्ध अनुरोध चलाता है ताकि आप वास्तविक प्रतिक्रिया देख सकें। इस एंडपॉइंट को API कंसोल में खोलें
विवरण
⛔⛔ Not a delete at the provider, and the response says so. this platform charges the option's term up front and refund nothing, so this stops the renewal: the thing stays attached and the customer keeps what they paid for until the contract expires. The purchase comes back as cancelling, never ended, precisely so no screen can claim otherwise. ⛔ 422 on the VPS range, always. A VPS add-on is a sub-contract of the machine and this platform exposes no way to cancel one - not through the reseller API, not through the contract (the write is accepted and ignored), and not in their own control panel, where the row carries no action at all and is labelled "renews with" the machine. Read addons_removable from getComputeServerPlan and do not offer the control at all rather than inviting a refusal. Requires billing.payment.manage.
पैरामीटर
| नाम | प्रकार | आवश्यक | यह क्या है |
|---|---|---|---|
serverId (path) | Uuid | हाँ | The server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. |
purchaseId (path) | Uuid | हाँ | The purchase's id. Ours (UUIDv7), minted when the option was bought — never the provider's identifier for the add-on contract, which no client ever sees. |
प्रतिक्रिया
| नाम | प्रकार | आवश्यक | यह क्या है |
|---|---|---|---|
data | ComputeAddonPurchase | हाँ | One paid option a tenant actually bought against one machine. ⛔ status is cancelling, not ended, after a removal. The thing is still running and still ours to pay for until… |
त्रुटियाँ जो यह एंडपॉइंट लौटा सकता है
401 · 403 · 404 · 422 · 429