စစ်မှန်ကြောင်း အတည်ပြုခြင်း

API သော့တစ်ခုကို bearer token အဖြစ် ပို့ပါ။ သော့တွင် domains.dns.manage ခွင့်ပြုချက် ပါရှိရမည်ဖြစ်ပြီး၊ ၎င်းမပါရှိသော သော့ကို 404 အစား 403 ဖြင့် ငြင်းပယ်ပါမည်။

ဤ အမှတ်ဆက် (endpoint) သည် အဖွဲ့အစည်း အိုင်ဒီ (organisation id) ကို မယူပါ။ သင်၏ သော့ချက် (key) သည် ၎င်းပိုင်ဆိုင်သည့် အဖွဲ့အစည်းကို အလိုအလျောက် ဖော်ထုတ်ပြီးဖြစ်ကာ တုံ့ပြန်ချက်ကိုလည်း ၎င်းနှင့်သာ ကန့်သတ်ထားမည် ဖြစ်သည်။

စမ်းကြည့်ရန်

ထောင့်ချိတ်များအတွင်းရှိ မည်သည့်အရာကိုမဆို သင်၏ကိုယ်ပိုင်တန်ဖိုးများဖြင့် အစားထိုးပြီး သင့်ဒက်ရှ်ဘုတ်မှ သော့ချက်တစ်ခုဖြင့် key ကို အစားထိုးပါ။

curl -X POST https://api.zinndigital.com/v1/domains/{domainId}/dns/records \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "type": <DnsRecordType>, "value": <string> }'

ဝင်ရောက်ပြီးပြီလား။ သင့်ဒက်ရှ်ဘုတ်ရှိ API ကွန်ဆိုးလ်တွင် သင့်၏ တကယ့်အဖွဲ့အစည်း ID နှင့် သင့်ကိုယ်ပိုင်သော့ချက်တို့ဖြင့် ဖြည့်သွင်းပေးပြီး တကယ့်တုံ့ပြန်ချက်ကို သင်မြင်နိုင်ရန် တိုက်ရိုက် API (live API) ကို အသုံးပြု၍ တောင်းဆိုမှုကို လုပ်ဆောင်ပေးပါသည်။ ဤအဆုံးသတ်အမှတ် (endpoint) ကို API ကွန်ဆိုးလ်တွင် ဖွင့်ပါ

အသေးစိတ်အချက်အလက်များ

Adds a record to the domain's hosted zone. Requires domains.dns.manage. On the Footprint-Free line an A/AAAA record (or a CNAME to an IP literal, which resolves to one) is refused with a 422 — those are platform-managed. Adding an apex MX is not additive (issue #622). MX preference is lowest-number-wins, so a new record at or below the best existing preference takes delivery away from the host the customer's mail reaches today, without removing its record. That is refused 409 MAIL_CHANGE_REFUSED unless confirm_mail_change=true; a strictly higher preference number is an ordinary backup MX and is allowed, as is the first MX on a domain that has none.

ကန့်သတ်ဘောင်များ

နာမည်အမျိုးအစားလိုအပ်သည်ဘာလဲဆိုတာ
domainId (path)Uuidဟုတ်ကဲ့The domain's id.
confirm_mail_change (query)booleanမဟုတ်ပါSet true to proceed with a record change that would move or remove this domain's inbound email (issue #622). Without it, a write that stops mail reaching a host it reaches today…

တောင်းဆိုချက် ကိုယ်ထည်

နာမည်အမျိုးအစားလိုအပ်သည်ဘာလဲဆိုတာ
namestringဟုတ်ကဲ့The record name — @/empty for the apex, or a relative/absolute host.
typeDnsRecordTypeဟုတ်ကဲ့A DNS resource-record type the shared editor supports (docs/31 §5.2).
valuestringဟုတ်ကဲ့
ttlintegerမဟုတ်ပါ
priorityobjectမဟုတ်ပါ
proxiedobjectမဟုတ်ပါServe this record through the provider's HTTP proxy — Cloudflare's orange cloud. A and AAAA only; sending it on any other type is a 422 rather than a silent drop,…

တုံ့ပြန်ချက်

နာမည်အမျိုးအစားလိုအပ်သည်ဘာလဲဆိုတာ
idstringဟုတ်ကဲ့The provider-assigned record id.
namestringဟုတ်ကဲ့The record name — @ for the apex, or a relative/absolute host.
typeDnsRecordTypeဟုတ်ကဲ့A DNS resource-record type the shared editor supports (docs/31 §5.2).
valuestringဟုတ်ကဲ့The record value (target/content).
ttlintegerဟုတ်ကဲ့Time-to-live in seconds.
priorityobjectမဟုတ်ပါPriority for MX/SRV records; null otherwise.
proxiedobjectမဟုတ်ပါWhether this record is served through the provider's HTTP proxy — Cloudflare's orange cloud. Applies to A and AAAA; providers without a proxy ignore it. ⛔⛔…
ownerDnsRecordOwnerဟုတ်ကဲ့Who may change this record. platform means the platform created it and converges it — the A/AAAA record at the apex or www that points the domain at the hosting we run for it.…
driftDnsRecordDriftမဟုတ်ပါWhat the last reconcile found about a platform-owned record at the provider, or null when the provider agrees with us (the overwhelmingly common case). changed — a record…

ဤအမှတ်ဆက်မှ ပြန်ပေးနိုင်သော အမှားများ

401 · 403 · 404 · 409 · 422 · 429 · 502 · 503