OpenAPI English gyrohosting.com ↗
Markdown olarak görClaude'da aç ↗

Alan adı ve DNS

Kayıt, transfer, yenileme, ad sunucuları, DNS kayıtları, DNSSEC, kilit, EPP kodu, gizlilik, WHOIS kişileri, yönlendirme (çekirdek WISECP müşteri API'si).

#GET/domains/tlds

Uzantı Fiyatlarını OkumaKapsam: Domains/GetTldscoreGetTldsBu işlemin OpenAPI parçası

Satıştaki uzantıları süreleri ve fiyatlarıyla döndürür. — cüzdan para birimi

Parametreler

AlaninTürAçıklama
tldquerystringTek bir uzantı. Listeyi daraltır ve süre başına fiyat tablosunu ekler.

Yanıtlar

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422domains_not_offered

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/tlds' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain tld list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/tlds", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/tlds", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/check

Alan Adının Boş Olup Olmadığını SormaKapsam: Domains/CheckDomaincoreCheckDomainBu işlemin OpenAPI parçası

Bir alan adının alınabilirliğini canlı sorar. — kayıt kuruluşuna sorar

İstek gövdesi

AlanTürAçıklama
domain zorunlustringSorulacak tam alan adı.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
422domain_check_throttled, domain_invalid, domain_required, domains_not_offered, tld_not_offered

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/check' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domain": "string"}'
gyro domain check --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/check", headers=h, json={"domain": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/check", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"domain": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/register

Alan Adı KaydetmeKapsam: Domains/RegisterDomaincoreRegisterDomainBu işlemin OpenAPI parçası

Para harcar / fatura oluşturur. Para kuralları (AK-40): gövdede "confirm": true, Idempotency-Key başlığı, yalnız bakiye (kayıtlı kart yok), hesap başına günlük ücretli işlem sınırı (varsayılan 50, hesap/bayi bazında değiştirilebilir, 00:00 TR'de sıfırlanır). Yeni bir alan adı sipariş eder ve tahsil eder. — bakiye ya da kayıtlı kart

Parametreler

AlaninTürAçıklama
Idempotency-Key zorunluheaderstring

İstek gövdesi

AlanTürAçıklama
terms zorunlubooleanŞartların kabulü. Doğru gönderilmelidir.
domain zorunlustringTam alan adı.
yearsintegerKayıt süresi. Uzantının penceresi içinde olmalı; özel fiyatlı adlar ne gönderilirse gönderilsin bir yıl kaydedilir.
accept_premiumbooleanÖzel fiyatlı adın fiyatını kabul. Böyle bir adda zorunludur.
addonsstringBirlikte alınacak ek hizmetler. Alan adı yönetimi, kayıt gizliliği ve yönlendirme; yalnız uzantı sunuyorsa.
nameserversstringAd sunucuları. İkiden dörde; verilmezse hesabın varsayılanları uygulanır.
whois_profile_idintegerKayıtlı kayıt sahibi profili. Dört rolü birden doldurur.
contactsobjectRol bazında kişiler. Her rol ya kayıtlı bir profil numarası ya da satır içi bir kişi taşır ve o rol için profili ezer.
couponsstringKupon kodları.
billing_profile_idintegerFatura profilinin numarası.
notesstringSipariş notu.
paymentobjectÖdeme kaynağı. Hesap bakiyesi ya da kayıtlı kart.
auth_codestring
methodstring
card_idstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_not_offered, contact_field_invalid, contact_field_required, domains_not_offered, insufficient_balance, nameservers_invalid, terms_required, tld_not_offered, verification_required, years_invalid

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/register' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"terms": true, "domain": "string", "years": 1, "accept_premium": true, "addons": "string", "nameservers": "string", "whois_profile_id": 1, "contacts": {}, "coupons": "string", "billing_profile_id": 1, "notes": "string", "payment": {}, "auth_code": "string", "method": "string", "card_id": "string"}'
gyro domain register --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
h["Idempotency-Key"] = str(uuid.uuid4())
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/register", headers=h, json={"terms": True, "domain": "string", "years": 1, "accept_premium": True, "addons": "string", "nameservers": "string", "whois_profile_id": 1, "contacts": {}, "coupons": "string", "billing_profile_id": 1, "notes": "string", "payment": {}, "auth_code": "string", "method": "string", "card_id": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/register", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({"terms": true, "domain": "string", "years": 1, "accept_premium": true, "addons": "string", "nameservers": "string", "whois_profile_id": 1, "contacts": {}, "coupons": "string", "billing_profile_id": 1, "notes": "string", "payment": {}, "auth_code": "string", "method": "string", "card_id": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/transfer

Alan Adı TransferiKapsam: Domains/TransferDomaincoreTransferDomainBu işlemin OpenAPI parçası

Para harcar / fatura oluşturur. Para kuralları (AK-40): gövdede "confirm": true, Idempotency-Key başlığı, yalnız bakiye (kayıtlı kart yok), hesap başına günlük ücretli işlem sınırı (varsayılan 50, hesap/bayi bazında değiştirilebilir, 00:00 TR'de sıfırlanır). Başka bir sağlayıcıdaki alan adını buraya taşır. — kod gerekebilir

Parametreler

AlaninTürAçıklama
Idempotency-Key zorunluheaderstring

İstek gövdesi

AlanTürAçıklama
terms zorunlubooleanŞartların kabulü. Doğru gönderilmelidir.
domain zorunlustringTam alan adı.
auth_codestringMevcut sağlayıcıdan alınan transfer kodu. Uzantı işaretliyse zorunludur ve her durumda hizmete yazılır.
addonsstringBirlikte alınacak ek hizmetler. Alan adı yönetimi, kayıt gizliliği ve yönlendirme; yalnız uzantı sunuyorsa.
nameserversstringAd sunucuları. İkiden dörde; verilmezse hesabın varsayılanları uygulanır.
whois_profile_idintegerKayıtlı kayıt sahibi profili. Dört rolü birden doldurur.
contactsobjectRol bazında kişiler. Her rol ya kayıtlı bir profil numarası ya da satır içi bir kişi taşır ve o rol için profili ezer.
couponsstringKupon kodları.
billing_profile_idintegerFatura profilinin numarası.
notesstringSipariş notu.
paymentobjectÖdeme kaynağı. Hesap bakiyesi ya da kayıtlı kart.
yearsstring
accept_premiumstring
methodstring
card_idstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
422auth_code_required, checkout_blocked, domain_not_registered, domain_transfer_locked, domains_not_offered, terms_required, transfer_not_offered

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/transfer' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"terms": true, "domain": "string", "auth_code": "string", "addons": "string", "nameservers": "string", "whois_profile_id": 1, "contacts": {}, "coupons": "string", "billing_profile_id": 1, "notes": "string", "payment": {}, "years": "string", "accept_premium": "string", "method": "string", "card_id": "string"}'
gyro domain transfer --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
h["Idempotency-Key"] = str(uuid.uuid4())
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/transfer", headers=h, json={"terms": True, "domain": "string", "auth_code": "string", "addons": "string", "nameservers": "string", "whois_profile_id": 1, "contacts": {}, "coupons": "string", "billing_profile_id": 1, "notes": "string", "payment": {}, "years": "string", "accept_premium": "string", "method": "string", "card_id": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/transfer", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({"terms": true, "domain": "string", "auth_code": "string", "addons": "string", "nameservers": "string", "whois_profile_id": 1, "contacts": {}, "coupons": "string", "billing_profile_id": 1, "notes": "string", "payment": {}, "years": "string", "accept_premium": "string", "method": "string", "card_id": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/whois-profiles

Kayıtlı Profilleri ListelemeKapsam: Domains/GetWhoisProfilescoreGetWhoisProfilesBu işlemin OpenAPI parçası

Hesabın kayıtlı kişi profillerini döndürür. — hesap geneli

Yanıtlar

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain whois-profile list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/whois-profiles

Profil OluşturmaKapsam: Domains/CreateWhoisProfilecoreCreateWhoisProfileBu işlemin OpenAPI parçası

Yeniden kullanılabilir bir kişi profili kaydeder. — hesap geneli

İstek gövdesi

AlanTürAçıklama
name zorunlustringProfilin etiketi.
contact zorunluobjectcontactKaydedilecek kişi. İl burada zorunlu değildir.
first_name zorunlustringKişinin adı.
last_name zorunlustringKişinin soyadı.
companystringKurum adı. Tek isteğe bağlı alandır.
email zorunlustringGeçerli bir e-posta.
phone zorunlustringTelefon.
address zorunlustringAdres satırı.
address2stringİkinci adres satırı. İsteğe bağlı; anahtar yoksa boş satır kaydedilir.
city zorunlustringŞehir.
statestringİl ya da eyalet. Alan adı kişilerinde zorunludur, kayıtlı profillerde değildir.
zip zorunlustringPosta kodu.
country zorunlustringÜlke kodu. Büyük harfe çevrilir.
postal_codestring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
422contact_email_invalid, contact_field_invalid, contact_field_required, contact_name_required, name_required, profile_rejected
500profile_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}'
gyro domain whois-profile create --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles", headers=h, json={"name": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"name": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/whois-profiles/{pid}

Profili GüncellemeKapsam: Domains/UpdateWhoisProfilecoreUpdateWhoisProfileBu işlemin OpenAPI parçası

Kayıtlı bir profili yeniden yazar. — tam kişi

Parametreler

AlaninTürAçıklama
pid zorunlupathinteger

İstek gövdesi

AlanTürAçıklama
name zorunlustringYeni etiket.
contact zorunluobjectcontactTam kişi. Kayıtlı kişi bütünüyle değiştirilir.
first_name zorunlustringKişinin adı.
last_name zorunlustringKişinin soyadı.
companystringKurum adı. Tek isteğe bağlı alandır.
email zorunlustringGeçerli bir e-posta.
phone zorunlustringTelefon.
address zorunlustringAdres satırı.
address2stringİkinci adres satırı. Profil bütün olarak değiştirilir; anahtar yoksa boş satır kaydedilir.
city zorunlustringŞehir.
statestringİl ya da eyalet. Alan adı kişilerinde zorunludur, kayıtlı profillerde değildir.
zip zorunlustringPosta kodu.
country zorunlustringÜlke kodu. Büyük harfe çevrilir.
postal_codestring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422contact_email_invalid, contact_field_invalid, contact_field_required, contact_name_required, name_required, profile_rejected

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}'
gyro domain whois-profile set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1", headers=h, json={"name": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"name": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#DELETE/domains/whois-profiles/{pid}

Profili SilmeKapsam: Domains/DeleteWhoisProfilecoreDeleteWhoisProfileBu işlemin OpenAPI parçası

Kayıtlı bir kişi profilini siler. — hesap geneli

Parametreler

AlaninTürAçıklama
pid zorunlupathinteger

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found

Örnekler

curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain whois-profile delete
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.delete("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1", {
  method: "DELETE",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/whois-profiles/{pid}/default

Profili Varsayılan YapmaKapsam: Domains/SetDefaultWhoisProfilecoreSetDefaultWhoisProfileBu işlemin OpenAPI parçası

Yeni kayıtlarda kendiliğinden uygulanacak profili belirler. — hesap geneli

Parametreler

AlaninTürAçıklama
pid zorunlupathinteger

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1/default' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain whois-profile default
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1/default", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1/default", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/default-nameservers

Varsayılan Ad Sunucularını OkumaKapsam: Domains/GetDefaultNameserverscoreGetDefaultNameserversBu işlemin OpenAPI parçası

Hesabın yeni alan adlarına uygulanan varsayılan setini döndürür. — hesap geneli

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/default-nameservers' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain default-nameserver list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/default-nameservers", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/default-nameservers", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/default-nameservers

Varsayılan Ad Sunucularını KaydetmeKapsam: Domains/UpdateDefaultNameserverscoreUpdateDefaultNameserversBu işlemin OpenAPI parçası

Yeni alan adlarına uygulanacak varsayılan seti kaydeder. — hesap geneli

İstek gövdesi

AlanTürAçıklama
nameservers zorunlustringVarsayılan set. İkiden dörde kadar geçerli sunucu adı; boşluklar kırpılır ve küçük harfe çevrilir.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
422nameservers_invalid

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/default-nameservers' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"nameservers": "string"}'
gyro domain default-nameserver set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/default-nameservers", headers=h, json={"nameservers": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/default-nameservers", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"nameservers": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains

Alan Adlarını ListelemeKapsam: Domains/GetDomainscoreGetDomainsBu işlemin OpenAPI parçası

Hesabın alan adlarını döndürür. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
pagequeryintegerKaçıncı sayfa.
limitqueryintegerSayfa başına satır. En çok 100.
statusquerystringDurum süzgeci. Rozet gruplarını alır.
tldquerystringYalnız bu uzantının alan adları.
searchquerystringAlan adında arar.

Yanıtlar

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}

Alan Adını OkumaKapsam: Domains/GetDomaincoreGetDomainBu işlemin OpenAPI parçası

Alan adını, sağlayıcının yeteneklerini ve yenileme seçeneklerini döndürür. — yetenek sondası

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain get
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PATCH/domains/{domain}

Alan Adı Tercihlerini DeğiştirmeKapsam: Domains/UpdateDomaincoreUpdateDomainBu işlemin OpenAPI parçası

Otomatik yenilemeyi ve fatura profilini değiştirir. — iki alan

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
auto_renewbooleanAlan adı bazlı otomatik yenileme. Yalnız etkin alan adlarında ve gerçek bir mantıksal değerle.
billing_profile_idintegerFatura profilinin numarası. Sıfır hesabın varsayılanına döner.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422auto_renew_invalid, autorenew_locked, billing_profile_rejected, no_auto_pay_source, not_actionable, nothing_to_update

Örnekler

curl -s -X PATCH 'https://www.gyrohosting.com/api/v1/client/domains/1' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"auto_renew": true, "billing_profile_id": 1}'
gyro domain update --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.patch("https://www.gyrohosting.com/api/v1/client/domains/1", headers=h, json={"auto_renew": True, "billing_profile_id": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1", {
  method: "PATCH",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"auto_renew": true, "billing_profile_id": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/renew

Yenileme Faturası KesmeKapsam: Domains/RenewDomaincoreRenewDomainBu işlemin OpenAPI parçası

Para harcar / fatura oluşturur. Para kuralları (AK-40): gövdede "confirm": true, Idempotency-Key başlığı, yalnız bakiye (kayıtlı kart yok), hesap başına günlük ücretli işlem sınırı (varsayılan 50, hesap/bayi bazında değiştirilebilir, 00:00 TR'de sıfırlanır). Alan adı için istenen yıl sayısı kadar yenileme faturası keser. — fatura üretir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring
Idempotency-Key zorunluheaderstring

İstek gövdesi

AlanTürAçıklama
years zorunluintegerYenileme süresi. Detaydaki fiyatlı süre satırlarından biri olmalıdır.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422not_renewable, years_invalid

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/renew' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"years": 1}'
gyro domain renew --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
h["Idempotency-Key"] = str(uuid.uuid4())
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/renew", headers=h, json={"years": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/renew", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({"years": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/transfer-status

Transferin Nerede Olduğunu SormaKapsam: Domains/GetTransferStatuscoreGetTransferStatusBu işlemin OpenAPI parçası

Devam eden bir transferin durumunu sağlayıcıdan okur. — canlı sorar

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422not_a_transfer

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/transfer-status' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain transfer-status get
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/transfer-status", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/transfer-status", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/nameservers

Ad Sunucularını OkumaKapsam: Domains/GetNameserverscoreGetNameserversBu işlemin OpenAPI parçası

Alan adının ad sunucularını ve hesabın varsayılan setini döndürür. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/nameservers' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain nameserver list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/nameservers", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/nameservers", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/{domain}/nameservers

Ad Sunucularını DeğiştirmeKapsam: Domains/UpdateNameserverscoreUpdateNameserversBu işlemin OpenAPI parçası

Alan adının ad sunucularını sağlayıcıda değiştirir. — siteyi taşır

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
nameservers zorunlustringYeni set. İkiden dörde kadar geçerli sunucu adı; boş girişler sayımdan önce düşer.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422nameservers_failed, nameservers_invalid, nameservers_not_supported, nameservers_rejected, not_actionable
500nameservers_failed

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/1/nameservers' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"nameservers": "string"}'
gyro domain nameserver set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/1/nameservers", headers=h, json={"nameservers": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/nameservers", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"nameservers": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/child-nameservers

Kendi Ad Sunucularını ListelemeKapsam: Domains/GetChildNameserverscoreGetChildNameserversBu işlemin OpenAPI parçası

Alan adının altında tanımlı ad sunucularını döndürür. — sağlayıcıdan okur

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422child_ns_failed, child_ns_not_supported
500child_ns_failed

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain child-nameserver list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/child-nameservers

Kendi Ad Sunucusunu TanımlamaKapsam: Domains/CreateChildNameservercoreCreateChildNameserverBu işlemin OpenAPI parçası

Alan adının altında bir ad sunucusu tanımlar. — sicile yazar

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
host zorunlustringSunucunun tam adı. Küçük harfe çevrilir.
ip zorunlustringSunucunun adresi. Biçimi doğrulanır.
nsstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422child_ns_failed, child_ns_fields, child_ns_host_invalid, child_ns_ip_invalid, child_ns_not_supported, child_ns_rejected, not_actionable
500child_ns_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"host": "string", "ip": "string", "ns": "string"}'
gyro domain child-nameserver create --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers", headers=h, json={"host": "string", "ip": "string", "ns": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"host": "string", "ip": "string", "ns": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#DELETE/domains/{domain}/child-nameservers

Kendi Ad Sunucusunu KaldırmaKapsam: Domains/DeleteChildNameservercoreDeleteChildNameserverBu işlemin OpenAPI parçası

Alan adının altındaki bir ad sunucusu tanımını kaldırır. — sicile yazar

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422child_ns_failed, child_ns_fields, child_ns_not_supported, child_ns_rejected, not_actionable
500child_ns_failed

Örnekler

curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain child-nameserver delete
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.delete("https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers", {
  method: "DELETE",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/transfer-lock

Transfer Kilidini OkumaKapsam: Domains/GetTransferLockcoreGetTransferLockBu işlemin OpenAPI parçası

Alan adının transfere kapalı olup olmadığını sağlayıcıdan okur. — canlı okur

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/transfer-lock' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain transfer-lock get
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/transfer-lock", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/transfer-lock", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/{domain}/transfer-lock

Transfer Kilidini DeğiştirmeKapsam: Domains/UpdateTransferLockcoreUpdateTransferLockBu işlemin OpenAPI parçası

Alan adını transfere kapatır ya da açar. — sağlayıcıya yazar

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
locked zorunlubooleanYeni kilit durumu. Gerçek bir mantıksal değer olmalıdır; metin ve sayı reddedilir.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422lock_failed, lock_not_supported, lock_rejected, locked_invalid, not_actionable
500lock_failed

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/1/transfer-lock' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"locked": true}'
gyro domain transfer-lock set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/1/transfer-lock", headers=h, json={"locked": True}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/transfer-lock", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"locked": true}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/auth-code

Transfer Kodunu İstemeKapsam: Domains/SendAuthCodecoreSendAuthCodeBu işlemin OpenAPI parçası

Transfer kodunu alan adı sahibinin e-postasına gönderir. — yanıtta kod yok

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422auth_code_failed, auth_code_not_supported, auth_code_rejected, not_actionable
500auth_code_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/auth-code' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain auth-code send
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/auth-code", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/auth-code", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/{domain}/auth-code

Gelen Transfer Kodunu KaydetmeKapsam: Domains/SaveAuthCodecoreSaveAuthCodeBu işlemin OpenAPI parçası

Devam eden bir transfer için kodu günceller. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
code zorunlustringYeni transfer kodu. İşaretleme ayıklanır ve boşluklar kırpılır.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422code_required, not_actionable

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/1/auth-code' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"code": "string"}'
gyro domain auth-code set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/1/auth-code", headers=h, json={"code": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/auth-code", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"code": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/dns-records

DNS Kayıtlarını ListelemeKapsam: Domains/GetDnsRecordscoreGetDnsRecordsBu işlemin OpenAPI parçası

Alan adının DNS kayıtlarını sağlayıcıdan okur. — ek hizmet gerekir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_pending, addon_required, dns_failed, dns_not_supported, dns_rejected
500dns_failed

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/dns-records' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain dns-record list
# kaynak gyro_domain_record: https://registry.terraform.io/providers/gyro-hosting/gyro/latest/docs/resources/domain_record
resource "gyro_domain_record" "www" {
  domain = "example.com"
  type   = "A"
  name   = "www"
  value  = gyro_server.web.ipv4
  ttl    = 3600
}
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/dns-records

DNS Kaydı EklemeKapsam: Domains/CreateDnsRecordcoreCreateDnsRecordBu işlemin OpenAPI parçası

Alan adına yeni bir DNS kaydı ekler. — ek hizmet gerekir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
type zorunlustringKayıt türü.
name zorunlustringKaydın yanıtlayacağı ad. Kabul edilen biçim sağlayıcıya göre değişir.
value zorunlustringKaydın içeriği.
ttlintegerYaşam süresi. Verilmezse sağlayıcının varsayılanı kullanılır.
priorityintegerÖncelik. Posta ve hizmet kayıtları dışında yok sayılır.
identitystring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, dns_failed, dns_fields, dns_not_supported, dns_rejected, not_actionable
500dns_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/dns-records' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "string", "name": "string", "value": "string", "ttl": 1, "priority": 1, "identity": "string"}'
gyro domain dns-record create --help    # tüm seçenekler
# kaynak gyro_domain_record: https://registry.terraform.io/providers/gyro-hosting/gyro/latest/docs/resources/domain_record
resource "gyro_domain_record" "www" {
  domain = "example.com"
  type   = "A"
  name   = "www"
  value  = gyro_server.web.ipv4
  ttl    = 3600
}
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", headers=h, json={"type": "string", "name": "string", "value": "string", "ttl": 1, "priority": 1, "identity": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"type": "string", "name": "string", "value": "string", "ttl": 1, "priority": 1, "identity": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/{domain}/dns-records

DNS Kaydını DüzenlemeKapsam: Domains/UpdateDnsRecordcoreUpdateDnsRecordBu işlemin OpenAPI parçası

Var olan bir DNS kaydını değiştirir. — numara ile eşleşir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
identitystringListeden gelen kayıt numarası. Liste bir numara döndürdüyse mutlaka gönderin.
type zorunlustringKayıt türü.
name zorunlustringKaydın adı.
value zorunlustringYeni içerik.
ttlintegerYaşam süresi. Verilmezse kayıt mevcut yaşam süresini korur.
priorityintegerÖncelik. Verilmezse kayıt, türü değişmediği sürece mevcut önceliğini korur.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, dns_edit_not_supported, dns_failed, dns_fields, dns_rejected, not_actionable
500dns_failed

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/1/dns-records' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"identity": "string", "type": "string", "name": "string", "value": "string", "ttl": 1, "priority": 1}'
gyro domain dns-record set --help    # tüm seçenekler
# kaynak gyro_domain_record: https://registry.terraform.io/providers/gyro-hosting/gyro/latest/docs/resources/domain_record
resource "gyro_domain_record" "www" {
  domain = "example.com"
  type   = "A"
  name   = "www"
  value  = gyro_server.web.ipv4
  ttl    = 3600
}
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", headers=h, json={"identity": "string", "type": "string", "name": "string", "value": "string", "ttl": 1, "priority": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"identity": "string", "type": "string", "name": "string", "value": "string", "ttl": 1, "priority": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#DELETE/domains/{domain}/dns-records

DNS Kaydını SilmeKapsam: Domains/DeleteDnsRecordcoreDeleteDnsRecordBu işlemin OpenAPI parçası

Bir DNS kaydını kaldırır. — eşleşme daraltılır

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, dns_failed, dns_fields, dns_rejected, not_actionable
500dns_failed

Örnekler

curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/dns-records' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain dns-record delete
# kaynak gyro_domain_record: https://registry.terraform.io/providers/gyro-hosting/gyro/latest/docs/resources/domain_record
resource "gyro_domain_record" "www" {
  domain = "example.com"
  type   = "A"
  name   = "www"
  value  = gyro_server.web.ipv4
  ttl    = 3600
}
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.delete("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/dns-records", {
  method: "DELETE",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/dnssec

İmza Kayıtlarını ListelemeKapsam: Domains/GetDnssecRecordscoreGetDnssecRecordsBu işlemin OpenAPI parçası

Alan adının imza doğrulama kayıtlarını döndürür. — sağlayıcıdan okur

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422dnssec_failed, dnssec_not_supported
500dnssec_failed

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/dnssec' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain dnssec list
# kaynak gyro_domain_record: https://registry.terraform.io/providers/gyro-hosting/gyro/latest/docs/resources/domain_record
resource "gyro_domain_record" "www" {
  domain = "example.com"
  type   = "A"
  name   = "www"
  value  = gyro_server.web.ipv4
  ttl    = 3600
}
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/dnssec", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/dnssec", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/dnssec

İmza Kaydı EklemeKapsam: Domains/CreateDnssecRecordcoreCreateDnssecRecordBu işlemin OpenAPI parçası

Alan adına bir imza doğrulama kaydı ekler. — algoritma denetlenir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
key_tag zorunluintegerAnahtarın etiketi. dnskey-keytag-flags'te anahtar bayrağını taşır.
algorithm zorunluintegerAnahtar algoritmasının numarası. Modülün bildirdiği kümede olmalıdır.
digest_type zorunluintegerÖzet algoritmasının numarası ya da meta.dnssec_fields'in adlandırdığı anahtar bayrağı veya protokol. Modülün bildirdiği kümede olmalıdır.
digest zorunlustringİmza özeti. DNSKEY isteyen servis sağlayıcı burada açık anahtarı (base64) alır.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422dnssec_algorithm_invalid, dnssec_digest_type_invalid, dnssec_failed, dnssec_fields, dnssec_not_supported, dnssec_rejected, not_actionable
500dnssec_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/dnssec' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"key_tag": 1, "algorithm": 1, "digest_type": 1, "digest": "string"}'
gyro domain dnssec create --help    # tüm seçenekler
# kaynak gyro_domain_record: https://registry.terraform.io/providers/gyro-hosting/gyro/latest/docs/resources/domain_record
resource "gyro_domain_record" "www" {
  domain = "example.com"
  type   = "A"
  name   = "www"
  value  = gyro_server.web.ipv4
  ttl    = 3600
}
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/dnssec", headers=h, json={"key_tag": 1, "algorithm": 1, "digest_type": 1, "digest": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/dnssec", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"key_tag": 1, "algorithm": 1, "digest_type": 1, "digest": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#DELETE/domains/{domain}/dnssec

İmza Kaydını SilmeKapsam: Domains/DeleteDnssecRecordcoreDeleteDnssecRecordBu işlemin OpenAPI parçası

Bir imza doğrulama kaydını kaldırır. — siteyi kırabilir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422dnssec_failed, dnssec_fields, dnssec_not_supported, dnssec_rejected, not_actionable
500dnssec_failed

Örnekler

curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/dnssec' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain dnssec delete
# kaynak gyro_domain_record: https://registry.terraform.io/providers/gyro-hosting/gyro/latest/docs/resources/domain_record
resource "gyro_domain_record" "www" {
  domain = "example.com"
  type   = "A"
  name   = "www"
  value  = gyro_server.web.ipv4
  ttl    = 3600
}
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.delete("https://www.gyrohosting.com/api/v1/client/domains/1/dnssec", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/dnssec", {
  method: "DELETE",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/whois

Alan Adı Kişilerini OkumaKapsam: Domains/GetWhoisContactscoreGetWhoisContactsBu işlemin OpenAPI parçası

Alan adının dört rolündeki kişi bilgilerini döndürür. — sağlayıcıdan okur

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422whois_not_supported, whois_rejected

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/whois' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain whois get
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/whois", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/whois", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/{domain}/whois

Alan Adı Kişilerini YazmaKapsam: Domains/UpdateWhoisContactscoreUpdateWhoisContactsBu işlemin OpenAPI parçası

Bir kişiyi seçilen role ya da dört role birden yazar. — sicile yazar

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
rolestringHangi rollere yazılacağı. Verilmezse dört rolün hepsine yazılır.
contact zorunluobjectcontactYazılacak kişi.
first_name zorunlustringKişinin adı.
last_name zorunlustringKişinin soyadı.
companystringKurum adı. Tek isteğe bağlı alandır.
email zorunlustringGeçerli bir e-posta.
phone zorunlustringTelefon.
address zorunlustringAdres satırı.
address2stringİkinci adres satırı (daire, kat, blok). Anahtar gönderilmezse sağlayıcıdaki satır korunur; boş metin satırı siler.
city zorunlustringŞehir.
statestringİl ya da eyalet. Alan adı kişilerinde zorunludur, kayıtlı profillerde değildir.
zip zorunlustringPosta kodu.
country zorunlustringÜlke kodu. Büyük harfe çevrilir.
postal_codestring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422contact_email_invalid, contact_field_invalid, contact_field_required, contact_name_required, not_actionable, role_invalid, whois_failed, whois_not_supported, whois_rejected
500whois_failed

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/1/whois' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}'
gyro domain whois set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/1/whois", headers=h, json={"role": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/whois", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"role": "string", "contact": {}, "first_name": "string", "last_name": "string", "company": "string", "email": "string", "phone": "string", "address": "string", "address2": "string", "city": "string", "state": "string", "zip": "string", "country": "string", "postal_code": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/whois/apply

Kayıtlı Profili UygulamaKapsam: Domains/ApplyWhoisProfilecoreApplyWhoisProfileBu işlemin OpenAPI parçası

Kayıtlı bir kişi profilini alan adının dört rolüne birden yazar. — dört rolü doldurur

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
profile_id zorunluintegerUygulanacak profilin numarası.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422not_actionable, whois_failed, whois_not_supported, whois_rejected
500whois_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/whois/apply' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"profile_id": 1}'
gyro domain whois apply --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/whois/apply", headers=h, json={"profile_id": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/whois/apply", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"profile_id": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/{domain}/whois-privacy

Kayıt Gizliliğini DeğiştirmeKapsam: Domains/UpdateWhoisPrivacycoreUpdateWhoisPrivacyBu işlemin OpenAPI parçası

Kişi bilgilerinin herkese açık sorguda gizlenmesini açar ya da kapatır. — ücretli olabilir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
enabled zorunlubooleanGizlilik açık mı. Gerçek bir mantıksal değer olmalıdır.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, enabled_invalid, not_actionable, privacy_failed, privacy_not_supported, privacy_rejected
500privacy_failed

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/1/whois-privacy' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"enabled": true}'
gyro domain whois-privacy set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/1/whois-privacy", headers=h, json={"enabled": True}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/whois-privacy", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"enabled": true}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/email-forwards

E-posta Yönlendirmelerini ListelemeKapsam: Domains/GetEmailForwardscoreGetEmailForwardsBu işlemin OpenAPI parçası

Alan adında tanımlı e-posta yönlendirmelerini döndürür. — ek hizmet gerekir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: array<object>
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_pending, addon_required, email_forwarding_failed, email_forwarding_not_supported
500email_forwarding_failed

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain email-forward list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/email-forwards

E-posta Yönlendirmesi EklemeKapsam: Domains/CreateEmailForwardcoreCreateEmailForwardBu işlemin OpenAPI parçası

Alan adına gelen postayı başka bir kutuya taşıyan bir kural ekler. — ek hizmet gerekir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
prefix zorunlustringAlan adındaki yerel kısım. Yönlendirme bu kısım ile alan adının birleşimine yanıt verir.
target zorunlustringHedef posta kutusu. Geçerli bir e-posta adresi olmalıdır.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, email_forward_fields, email_forward_rejected, email_forward_target_invalid, email_forwarding_failed, email_forwarding_not_supported, not_actionable
500email_forwarding_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prefix": "string", "target": "string"}'
gyro domain email-forward create --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards", headers=h, json={"prefix": "string", "target": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"prefix": "string", "target": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#DELETE/domains/{domain}/email-forwards

E-posta Yönlendirmesini SilmeKapsam: Domains/DeleteEmailForwardcoreDeleteEmailForwardBu işlemin OpenAPI parçası

Bir e-posta yönlendirme kuralını kaldırır. — eşleşme daraltılır

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, email_forward_fields, email_forwarding_failed, email_forwarding_not_supported, not_actionable
500email_forwarding_failed

Örnekler

curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain email-forward delete
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.delete("https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards", {
  method: "DELETE",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/domains/{domain}/forwarding

Adres Yönlendirmesini OkumaKapsam: Domains/GetUrlForwardingcoreGetUrlForwardingBu işlemin OpenAPI parçası

Alan adının başka bir adrese yönlendirilip yönlendirilmediğini döndürür. — ek hizmet gerekir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_pending, addon_required, url_forwarding_failed, url_forwarding_not_supported
500url_forwarding_failed

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/forwarding' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain forwarding get
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/domains/1/forwarding", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/forwarding", {
  method: "GET",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#PUT/domains/{domain}/forwarding

Adres Yönlendirmesi KurmaKapsam: Domains/UpdateUrlForwardingcoreUpdateUrlForwardingBu işlemin OpenAPI parçası

Alan adına gelen ziyaretçiyi başka bir adrese gönderir. — ek hizmet gerekir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

İstek gövdesi

AlanTürAçıklama
url zorunlustringTam hedef adres. Şeması yönlendirmenin şeması olur; yazılmazsa güvensiz şema kullanılır.
methodintegerYönlendirme türü. Kalıcı olan varsayılandır; başka bir değer ona düşer.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, not_actionable, url_forwarding_failed, url_forwarding_not_supported, url_forwarding_rejected, url_required
500url_forwarding_failed

Örnekler

curl -s -X PUT 'https://www.gyrohosting.com/api/v1/client/domains/1/forwarding' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "string", "method": 1}'
gyro domain forwarding set --help    # tüm seçenekler
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.put("https://www.gyrohosting.com/api/v1/client/domains/1/forwarding", headers=h, json={"url": "string", "method": 1}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/forwarding", {
  method: "PUT",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"url": "string", "method": 1}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#DELETE/domains/{domain}/forwarding

Adres Yönlendirmesini KaldırmaKapsam: Domains/DeleteUrlForwardingcoreDeleteUrlForwardingBu işlemin OpenAPI parçası

Alan adının adres yönlendirmesini kaldırır. — ek hizmet gerekir

Parametreler

AlaninTürAçıklama
domain zorunlupathstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_required, not_actionable, url_forwarding_failed, url_forwarding_not_supported, url_forwarding_rejected
500url_forwarding_failed

Örnekler

curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/forwarding' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro domain forwarding delete
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.delete("https://www.gyrohosting.com/api/v1/client/domains/1/forwarding", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/forwarding", {
  method: "DELETE",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/domains/{domain}/addons/{key}

Alan Adı Ek Hizmeti AlmaKapsam: Domains/BuyDomainAddoncoreBuyDomainAddonBu işlemin OpenAPI parçası

Para harcar / fatura oluşturur. Para kuralları (AK-40): gövdede "confirm": true, Idempotency-Key başlığı, yalnız bakiye (kayıtlı kart yok), hesap başına günlük ücretli işlem sınırı (varsayılan 50, hesap/bayi bazında değiştirilebilir, 00:00 TR'de sıfırlanır). Alan adı yönetimi, gizlilik ya da yönlendirme ek hizmetini satın alır. — oranlı ilk dönem

Parametreler

AlaninTürAçıklama
domain zorunlupathstring
key zorunlupathstring
Idempotency-Key zorunluheaderstring

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422addon_active, addon_free, addon_not_offered, addon_not_supported, addon_pending, addon_rejected, addon_term_invalid, not_actionable
500addon_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/addons/1' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"
gyro domain addon buy
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
h["Idempotency-Key"] = str(uuid.uuid4())
r = requests.post("https://www.gyrohosting.com/api/v1/client/domains/1/addons/1", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/domains/1/addons/1", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),
  },
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);