compute
PUT /v1/compute/servers/{serverId}/reverse-dns
Point one address's PTR at a hostname, or reset it.
प्रमाणीकरण
बेरर टोकन म्हणून API की पाठवा. की मध्ये sites.restart परवानगी असणे आवश्यक आहे; ती नसलेली की 404 ऐवजी 403 सह नाकारली जाते.
या एंडपॉइंटला कोणतीही संस्था आयडी (organisation id) लागत नाही. तुमची की (key) आधीच ती कोणत्या संस्थेशी संबंधित आहे हे ओळखते आणि प्रतिसाद त्यानुसार मर्यादित केला जातो.
प्रयत्न करा
कोनसांस्कृतिक कंसात (<>) असलेली कोणतीही गोष्ट तुमच्या स्वतःच्या मूल्यांनी बदला आणि key प्लेसहोल्डरला तुमच्या डॅशबोर्डवरील किने बदला.
curl -X PUT https://api.zinndigital.com/v1/compute/servers/{serverId}/reverse-dns \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "ip": <string> }'साइन इन केलेले आहे? तुमच्या डॅशबोर्डमधील API कन्सोल तुमची खरी संस्था आयडी आणि तुमची स्वतःची की आपोआप भरतो आणि लाइव्ह API विरुद्ध विनंती कार्यान्वित करतो जेणेकरून तुम्हाला वास्तविक प्रतिसाद पाहता येईल. एपी कन्सोलमध्ये हा एंडपॉइंट उघडा
तपशील
⛔ ip is required and is never inferred from the machine: a machine has an IPv4 and an IPv6 address with different default states, so "set the PTR of this server" is not a well-formed request. An empty hostname resets that address to the provider's own default, which is a real thing to want and is not the same as leaving it alone. ⛔⛔ The hostname must resolve forward to this address, and that is checked before anything is written. Receiving mail servers check forward-confirmed reverse DNS, so a PTR whose name does not point back is worse than the supplier's default: it looks configured on the screen and still fails delivery. A name that does not resolve at all is refused too — "we could not look it up" is not evidence the record exists. An ip the machine does not hold is 422, and that refusal is the tenancy boundary: the provider would happily set a PTR for any address on the account, including another customer's. Requires sites.restart.
पॅरामीटर्स
| नाव | प्रकार | आवश्यक | हे काय आहे |
|---|---|---|---|
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. |
विनंती मुख्य भाग
| नाव | प्रकार | आवश्यक | हे काय आहे |
|---|---|---|---|
ip | string | होय | Which address to set. ⛔ Required and never inferred: a machine has an IPv4 and an IPv6 with different default states, so "set the PTR of this server" is not a well-formed request.… |
hostname | string | नाही | The name to point at. Empty resets the address to the provider's own default, which is a real thing to want and is not the same as leaving it alone. ⛔ A non-empty name must… |
प्रतिसाद
| नाव | प्रकार | आवश्यक | हे काय आहे |
|---|---|---|---|
data | ComputeReverseDnsRecord[] | होय | — |
ही एंडपॉइंट परत करू शकेल अशा त्रुटी
401 · 403 · 404 · 422 · 429 · 503