Docs API başvurusu DNS ve alan adları Alan adı ve DNS 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ı Okuma Kapsam: Domains/GetTlds coreGetTlds Bu işlemin OpenAPI parçası
Satıştaki uzantıları süreleri ve fiyatlarıyla döndürür. — cüzdan para birimi
Parametreler Alan in Tür Açıklama tldquery string Tek bir uzantı. Listeyi daraltır ve süre başına fiyat tablosunu ekler.
Yanıtlar 200 Success — data: array<object> 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 domains_not_offered
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/tlds' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain tld listKopyala 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"])Kopyala 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ı Sorma Kapsam: Domains/CheckDomain coreCheckDomain Bu işlemin OpenAPI parçası
Bir alan adının alınabilirliğini canlı sorar. — kayıt kuruluşuna sorar
İstek gövdesi Alan Tür Açıklama domain zorunlu string Sorulacak tam alan adı.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 422 domain_check_throttled, domain_invalid, domain_required, domains_not_offered, tld_not_offered
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain check --help # tüm seçeneklerKopyala 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"])Kopyala 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ı Kaydetme Kapsam: Domains/RegisterDomain coreRegisterDomain Bu 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 Alan in Tür Açıklama Idempotency-Key zorunlu header string
İstek gövdesi Alan Tür Açıklama terms zorunlu boolean Şartların kabulü. Doğru gönderilmelidir. domain zorunlu string Tam alan adı. yearsinteger Kayı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. addonsstring Birlikte alınacak ek hizmetler. Alan adı yönetimi, kayıt gizliliği ve yönlendirme; yalnız uzantı sunuyorsa. nameserversstring Ad sunucuları. İkiden dörde; verilmezse hesabın varsayılanları uygulanır. whois_profile_idinteger Kayıtlı kayıt sahibi profili. Dört rolü birden doldurur. contactsobject Rol 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. couponsstring Kupon kodları. billing_profile_idinteger Fatura profilinin numarası. notesstring Sipariş notu. paymentobject Ödeme kaynağı. Hesap bakiyesi ya da kayıtlı kart. auth_codestring methodstring card_idstring
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_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 CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain register --help # tüm seçeneklerKopyala 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"])Kopyala 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ı Transferi Kapsam: Domains/TransferDomain coreTransferDomain Bu 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 Alan in Tür Açıklama Idempotency-Key zorunlu header string
İstek gövdesi Alan Tür Açıklama terms zorunlu boolean Şartların kabulü. Doğru gönderilmelidir. domain zorunlu string Tam alan adı. auth_codestring Mevcut sağlayıcıdan alınan transfer kodu. Uzantı işaretliyse zorunludur ve her durumda hizmete yazılır. addonsstring Birlikte alınacak ek hizmetler. Alan adı yönetimi, kayıt gizliliği ve yönlendirme; yalnız uzantı sunuyorsa. nameserversstring Ad sunucuları. İkiden dörde; verilmezse hesabın varsayılanları uygulanır. whois_profile_idinteger Kayıtlı kayıt sahibi profili. Dört rolü birden doldurur. contactsobject Rol 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. couponsstring Kupon kodları. billing_profile_idinteger Fatura profilinin numarası. notesstring Sipariş notu. paymentobject Ödeme kaynağı. Hesap bakiyesi ya da kayıtlı kart. yearsstring accept_premiumstring methodstring card_idstring
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 422 auth_code_required, checkout_blocked, domain_not_registered, domain_transfer_locked, domains_not_offered, terms_required, transfer_not_offered
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain transfer --help # tüm seçeneklerKopyala 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"])Kopyala 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 Listeleme Kapsam: Domains/GetWhoisProfiles coreGetWhoisProfiles Bu işlemin OpenAPI parçası
Hesabın kayıtlı kişi profillerini döndürür. — hesap geneli
Yanıtlar 200 Success — data: array<object> 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain whois-profile listKopyala 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"])Kopyala 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şturma Kapsam: Domains/CreateWhoisProfile coreCreateWhoisProfile Bu işlemin OpenAPI parçası
Yeniden kullanılabilir bir kişi profili kaydeder. — hesap geneli
İstek gövdesi Alan Tür Açıklama name zorunlu string Profilin etiketi. contact zorunlu object contactKaydedilecek kişi. İl burada zorunlu değildir. first_name zorunlu string Kişinin adı. last_name zorunlu string Kişinin soyadı. companystring Kurum adı. Tek isteğe bağlı alandır. email zorunlu string Geçerli bir e-posta. phone zorunlu string Telefon. address zorunlu string Adres satırı. address2string İkinci adres satırı. İsteğe bağlı; anahtar yoksa boş satır kaydedilir. city zorunlu string Şehir. statestring İl ya da eyalet. Alan adı kişilerinde zorunludur, kayıtlı profillerde değildir. zip zorunlu string Posta kodu. country zorunlu string Ülke kodu. Büyük harfe çevrilir. postal_codestring
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 422 contact_email_invalid, contact_field_invalid, contact_field_required, contact_name_required, name_required, profile_rejected 500 profile_failed
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain whois-profile create --help # tüm seçeneklerKopyala 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"])Kopyala 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üncelleme Kapsam: Domains/UpdateWhoisProfile coreUpdateWhoisProfile Bu işlemin OpenAPI parçası
Kayıtlı bir profili yeniden yazar. — tam kişi
Parametreler Alan in Tür Açıklama pid zorunlu path integer
İstek gövdesi Alan Tür Açıklama name zorunlu string Yeni etiket. contact zorunlu object contactTam kişi. Kayıtlı kişi bütünüyle değiştirilir. first_name zorunlu string Kişinin adı. last_name zorunlu string Kişinin soyadı. companystring Kurum adı. Tek isteğe bağlı alandır. email zorunlu string Geçerli bir e-posta. phone zorunlu string Telefon. address zorunlu string Adres satırı. address2string İkinci adres satırı. Profil bütün olarak değiştirilir; anahtar yoksa boş satır kaydedilir. city zorunlu string Şehir. statestring İl ya da eyalet. Alan adı kişilerinde zorunludur, kayıtlı profillerde değildir. zip zorunlu string Posta kodu. country zorunlu string Ülke kodu. Büyük harfe çevrilir. postal_codestring
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 contact_email_invalid, contact_field_invalid, contact_field_required, contact_name_required, name_required, profile_rejected
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain whois-profile set --help # tüm seçeneklerKopyala 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"])Kopyala 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 Silme Kapsam: Domains/DeleteWhoisProfile coreDeleteWhoisProfile Bu işlemin OpenAPI parçası
Kayıtlı bir kişi profilini siler. — hesap geneli
Parametreler Alan in Tür Açıklama pid zorunlu path integer
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found
Örnekler curl CLI Python JavaScript
Kopyala curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain whois-profile deleteKopyala 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"])Kopyala 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 Yapma Kapsam: Domains/SetDefaultWhoisProfile coreSetDefaultWhoisProfile Bu işlemin OpenAPI parçası
Yeni kayıtlarda kendiliğinden uygulanacak profili belirler. — hesap geneli
Parametreler Alan in Tür Açıklama pid zorunlu path integer
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found
Örnekler curl CLI Python JavaScript
Kopyala curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/whois-profiles/1/default' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain whois-profile defaultKopyala 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"])Kopyala 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ı Okuma Kapsam: Domains/GetDefaultNameservers coreGetDefaultNameservers Bu işlemin OpenAPI parçası
Hesabın yeni alan adlarına uygulanan varsayılan setini döndürür. — hesap geneli
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/default-nameservers' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain default-nameserver listKopyala 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"])Kopyala 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ı Kaydetme Kapsam: Domains/UpdateDefaultNameservers coreUpdateDefaultNameservers Bu işlemin OpenAPI parçası
Yeni alan adlarına uygulanacak varsayılan seti kaydeder. — hesap geneli
İstek gövdesi Alan Tür Açıklama nameservers zorunlu string Varsayılan set. İkiden dörde kadar geçerli sunucu adı; boşluklar kırpılır ve küçük harfe çevrilir.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 422 nameservers_invalid
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain default-nameserver set --help # tüm seçeneklerKopyala 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"])Kopyala 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ı Listeleme Kapsam: Domains/GetDomains coreGetDomains Bu işlemin OpenAPI parçası
Hesabın alan adlarını döndürür. — anahtarın sahibi
Parametreler Alan in Tür Açıklama pagequery integer Kaçıncı sayfa. limitquery integer Sayfa başına satır. En çok 100. statusquery string Durum süzgeci. Rozet gruplarını alır. tldquery string Yalnız bu uzantının alan adları. searchquery string Alan adında arar.
Yanıtlar 200 Success — data: array<object> 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala 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"])Kopyala 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ı Okuma Kapsam: Domains/GetDomain coreGetDomain Bu 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 Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala 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"])Kopyala 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ştirme Kapsam: Domains/UpdateDomain coreUpdateDomain Bu işlemin OpenAPI parçası
Otomatik yenilemeyi ve fatura profilini değiştirir. — iki alan
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama auto_renewboolean Alan adı bazlı otomatik yenileme. Yalnız etkin alan adlarında ve gerçek bir mantıksal değerle. billing_profile_idinteger Fatura profilinin numarası. Sıfır hesabın varsayılanına döner.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 auto_renew_invalid, autorenew_locked, billing_profile_rejected, no_auto_pay_source, not_actionable, nothing_to_update
Örnekler curl CLI Python JavaScript
Kopyala 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}'Kopyala gyro domain update --help # tüm seçeneklerKopyala 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"])Kopyala 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ı Kesme Kapsam: Domains/RenewDomain coreRenewDomain Bu 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 Alan in Tür Açıklama domain zorunlu path string Idempotency-Key zorunlu header string
İstek gövdesi Alan Tür Açıklama years zorunlu integer Yenileme süresi. Detaydaki fiyatlı süre satırlarından biri olmalıdır.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 not_renewable, years_invalid
Örnekler curl CLI Python JavaScript
Kopyala 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}'Kopyala gyro domain renew --help # tüm seçeneklerKopyala 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"])Kopyala 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 Sorma Kapsam: Domains/GetTransferStatus coreGetTransferStatus Bu işlemin OpenAPI parçası
Devam eden bir transferin durumunu sağlayıcıdan okur. — canlı sorar
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 not_a_transfer
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/transfer-status' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain transfer-status getKopyala 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"])Kopyala 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ı Okuma Kapsam: Domains/GetNameservers coreGetNameservers Bu 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 Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/nameservers' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain nameserver listKopyala 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"])Kopyala 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ştirme Kapsam: Domains/UpdateNameservers coreUpdateNameservers Bu işlemin OpenAPI parçası
Alan adının ad sunucularını sağlayıcıda değiştirir. — siteyi taşır
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama nameservers zorunlu string Yeni set. İkiden dörde kadar geçerli sunucu adı; boş girişler sayımdan önce düşer.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 nameservers_failed, nameservers_invalid, nameservers_not_supported, nameservers_rejected, not_actionable 500 nameservers_failed
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain nameserver set --help # tüm seçeneklerKopyala 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"])Kopyala 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ı Listeleme Kapsam: Domains/GetChildNameservers coreGetChildNameservers Bu 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 Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 child_ns_failed, child_ns_not_supported 500 child_ns_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain child-nameserver listKopyala 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"])Kopyala 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ımlama Kapsam: Domains/CreateChildNameserver coreCreateChildNameserver Bu işlemin OpenAPI parçası
Alan adının altında bir ad sunucusu tanımlar. — sicile yazar
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama host zorunlu string Sunucunun tam adı. Küçük harfe çevrilir. ip zorunlu string Sunucunun adresi. Biçimi doğrulanır. nsstring
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 child_ns_failed, child_ns_fields, child_ns_host_invalid, child_ns_ip_invalid, child_ns_not_supported, child_ns_rejected, not_actionable 500 child_ns_failed
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain child-nameserver create --help # tüm seçeneklerKopyala 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"])Kopyala 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ırma Kapsam: Domains/DeleteChildNameserver coreDeleteChildNameserver Bu işlemin OpenAPI parçası
Alan adının altındaki bir ad sunucusu tanımını kaldırır. — sicile yazar
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 child_ns_failed, child_ns_fields, child_ns_not_supported, child_ns_rejected, not_actionable 500 child_ns_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/child-nameservers' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain child-nameserver deleteKopyala 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"])Kopyala 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 Okuma Kapsam: Domains/GetTransferLock coreGetTransferLock Bu işlemin OpenAPI parçası
Alan adının transfere kapalı olup olmadığını sağlayıcıdan okur. — canlı okur
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/transfer-lock' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain transfer-lock getKopyala 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"])Kopyala 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ştirme Kapsam: Domains/UpdateTransferLock coreUpdateTransferLock Bu işlemin OpenAPI parçası
Alan adını transfere kapatır ya da açar. — sağlayıcıya yazar
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama locked zorunlu boolean Yeni kilit durumu. Gerçek bir mantıksal değer olmalıdır; metin ve sayı reddedilir.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 lock_failed, lock_not_supported, lock_rejected, locked_invalid, not_actionable 500 lock_failed
Örnekler curl CLI Python JavaScript
Kopyala 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}'Kopyala gyro domain transfer-lock set --help # tüm seçeneklerKopyala 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"])Kopyala 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 İsteme Kapsam: Domains/SendAuthCode coreSendAuthCode Bu işlemin OpenAPI parçası
Transfer kodunu alan adı sahibinin e-postasına gönderir. — yanıtta kod yok
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 auth_code_failed, auth_code_not_supported, auth_code_rejected, not_actionable 500 auth_code_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/auth-code' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain auth-code sendKopyala 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"])Kopyala 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 Kaydetme Kapsam: Domains/SaveAuthCode coreSaveAuthCode Bu işlemin OpenAPI parçası
Devam eden bir transfer için kodu günceller. — anahtarın sahibi
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama code zorunlu string Yeni transfer kodu. İşaretleme ayıklanır ve boşluklar kırpılır.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 code_required, not_actionable
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain auth-code set --help # tüm seçeneklerKopyala 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"])Kopyala 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ı Listeleme Kapsam: Domains/GetDnsRecords coreGetDnsRecords Bu işlemin OpenAPI parçası
Alan adının DNS kayıtlarını sağlayıcıdan okur. — ek hizmet gerekir
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: array<object> 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_pending, addon_required, dns_failed, dns_not_supported, dns_rejected 500 dns_failed
Örnekler curl CLI Terraform Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/dns-records' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain dns-record listKopyala # 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
}Kopyala 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"])Kopyala 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ı Ekleme Kapsam: Domains/CreateDnsRecord coreCreateDnsRecord Bu işlemin OpenAPI parçası
Alan adına yeni bir DNS kaydı ekler. — ek hizmet gerekir
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama type zorunlu string Kayıt türü. name zorunlu string Kaydın yanıtlayacağı ad. Kabul edilen biçim sağlayıcıya göre değişir. value zorunlu string Kaydın içeriği. ttlinteger Yaş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 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, dns_failed, dns_fields, dns_not_supported, dns_rejected, not_actionable 500 dns_failed
Örnekler curl CLI Terraform Python JavaScript
Kopyala 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"}'Kopyala gyro domain dns-record create --help # tüm seçeneklerKopyala # 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
}Kopyala 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"])Kopyala 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üzenleme Kapsam: Domains/UpdateDnsRecord coreUpdateDnsRecord Bu işlemin OpenAPI parçası
Var olan bir DNS kaydını değiştirir. — numara ile eşleşir
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama identitystring Listeden gelen kayıt numarası. Liste bir numara döndürdüyse mutlaka gönderin. type zorunlu string Kayıt türü. name zorunlu string Kaydın adı. value zorunlu string Yeni içerik. ttlinteger Yaş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 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, dns_edit_not_supported, dns_failed, dns_fields, dns_rejected, not_actionable 500 dns_failed
Örnekler curl CLI Terraform Python JavaScript
Kopyala 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}'Kopyala gyro domain dns-record set --help # tüm seçeneklerKopyala # 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
}Kopyala 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"])Kopyala 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ı Silme Kapsam: Domains/DeleteDnsRecord coreDeleteDnsRecord Bu işlemin OpenAPI parçası
Bir DNS kaydını kaldırır. — eşleşme daraltılır
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, dns_failed, dns_fields, dns_rejected, not_actionable 500 dns_failed
Örnekler curl CLI Terraform Python JavaScript
Kopyala curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/dns-records' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain dns-record deleteKopyala # 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
}Kopyala 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"])Kopyala 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ı Listeleme Kapsam: Domains/GetDnssecRecords coreGetDnssecRecords Bu 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 Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: array<object> 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 dnssec_failed, dnssec_not_supported 500 dnssec_failed
Örnekler curl CLI Terraform Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/dnssec' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain dnssec listKopyala # 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
}Kopyala 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"])Kopyala 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ı Ekleme Kapsam: Domains/CreateDnssecRecord coreCreateDnssecRecord Bu işlemin OpenAPI parçası
Alan adına bir imza doğrulama kaydı ekler. — algoritma denetlenir
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama key_tag zorunlu integer Anahtarın etiketi. dnskey-keytag-flags'te anahtar bayrağını taşır. algorithm zorunlu integer Anahtar algoritmasının numarası. Modülün bildirdiği kümede olmalıdır. digest_type zorunlu integer Ö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 zorunlu string İmza özeti. DNSKEY isteyen servis sağlayıcı burada açık anahtarı (base64) alır.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 dnssec_algorithm_invalid, dnssec_digest_type_invalid, dnssec_failed, dnssec_fields, dnssec_not_supported, dnssec_rejected, not_actionable 500 dnssec_failed
Örnekler curl CLI Terraform Python JavaScript
Kopyala 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"}'Kopyala gyro domain dnssec create --help # tüm seçeneklerKopyala # 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
}Kopyala 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"])Kopyala 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ı Silme Kapsam: Domains/DeleteDnssecRecord coreDeleteDnssecRecord Bu işlemin OpenAPI parçası
Bir imza doğrulama kaydını kaldırır. — siteyi kırabilir
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 dnssec_failed, dnssec_fields, dnssec_not_supported, dnssec_rejected, not_actionable 500 dnssec_failed
Örnekler curl CLI Terraform Python JavaScript
Kopyala curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/dnssec' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain dnssec deleteKopyala # 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
}Kopyala 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"])Kopyala 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}`);# POST /domains/{domain}/whois/apply Kayıtlı Profili Uygulama Kapsam: Domains/ApplyWhoisProfile coreApplyWhoisProfile Bu 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 Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama profile_id zorunlu integer Uygulanacak profilin numarası.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 not_actionable, whois_failed, whois_not_supported, whois_rejected 500 whois_failed
Örnekler curl CLI Python JavaScript
Kopyala 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}'Kopyala gyro domain whois apply --help # tüm seçeneklerKopyala 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"])Kopyala 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ştirme Kapsam: Domains/UpdateWhoisPrivacy coreUpdateWhoisPrivacy Bu işlemin OpenAPI parçası
Kişi bilgilerinin herkese açık sorguda gizlenmesini açar ya da kapatır. — ücretli olabilir
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama enabled zorunlu boolean Gizlilik açık mı. Gerçek bir mantıksal değer olmalıdır.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, enabled_invalid, not_actionable, privacy_failed, privacy_not_supported, privacy_rejected 500 privacy_failed
Örnekler curl CLI Python JavaScript
Kopyala 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}'Kopyala gyro domain whois-privacy set --help # tüm seçeneklerKopyala 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"])Kopyala 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 Listeleme Kapsam: Domains/GetEmailForwards coreGetEmailForwards Bu işlemin OpenAPI parçası
Alan adında tanımlı e-posta yönlendirmelerini döndürür. — ek hizmet gerekir
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: array<object> 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_pending, addon_required, email_forwarding_failed, email_forwarding_not_supported 500 email_forwarding_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain email-forward listKopyala 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"])Kopyala 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 Ekleme Kapsam: Domains/CreateEmailForward coreCreateEmailForward Bu işlemin OpenAPI parçası
Alan adına gelen postayı başka bir kutuya taşıyan bir kural ekler. — ek hizmet gerekir
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama prefix zorunlu string Alan adındaki yerel kısım. Yönlendirme bu kısım ile alan adının birleşimine yanıt verir. target zorunlu string Hedef posta kutusu. Geçerli bir e-posta adresi olmalıdır.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, email_forward_fields, email_forward_rejected, email_forward_target_invalid, email_forwarding_failed, email_forwarding_not_supported, not_actionable 500 email_forwarding_failed
Örnekler curl CLI Python JavaScript
Kopyala 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"}'Kopyala gyro domain email-forward create --help # tüm seçeneklerKopyala 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"])Kopyala 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 Silme Kapsam: Domains/DeleteEmailForward coreDeleteEmailForward Bu işlemin OpenAPI parçası
Bir e-posta yönlendirme kuralını kaldırır. — eşleşme daraltılır
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, email_forward_fields, email_forwarding_failed, email_forwarding_not_supported, not_actionable 500 email_forwarding_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/email-forwards' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain email-forward deleteKopyala 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"])Kopyala 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 Okuma Kapsam: Domains/GetUrlForwarding coreGetUrlForwarding Bu 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 Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_pending, addon_required, url_forwarding_failed, url_forwarding_not_supported 500 url_forwarding_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s 'https://www.gyrohosting.com/api/v1/client/domains/1/forwarding' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain forwarding getKopyala 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"])Kopyala 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 Kurma Kapsam: Domains/UpdateUrlForwarding coreUpdateUrlForwarding Bu işlemin OpenAPI parçası
Alan adına gelen ziyaretçiyi başka bir adrese gönderir. — ek hizmet gerekir
Parametreler Alan in Tür Açıklama domain zorunlu path string
İstek gövdesi Alan Tür Açıklama url zorunlu string Tam hedef adres. Şeması yönlendirmenin şeması olur; yazılmazsa güvensiz şema kullanılır. methodinteger Yönlendirme türü. Kalıcı olan varsayılandır; başka bir değer ona düşer.
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, not_actionable, url_forwarding_failed, url_forwarding_not_supported, url_forwarding_rejected, url_required 500 url_forwarding_failed
Örnekler curl CLI Python JavaScript
Kopyala 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}'Kopyala gyro domain forwarding set --help # tüm seçeneklerKopyala 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"])Kopyala 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ırma Kapsam: Domains/DeleteUrlForwarding coreDeleteUrlForwarding Bu işlemin OpenAPI parçası
Alan adının adres yönlendirmesini kaldırır. — ek hizmet gerekir
Parametreler Alan in Tür Açıklama domain zorunlu path string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_required, not_actionable, url_forwarding_failed, url_forwarding_not_supported, url_forwarding_rejected 500 url_forwarding_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s -X DELETE 'https://www.gyrohosting.com/api/v1/client/domains/1/forwarding' \
-H "Authorization: Bearer $GYRO_TOKEN"Kopyala gyro domain forwarding deleteKopyala 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"])Kopyala 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 Alma Kapsam: Domains/BuyDomainAddon coreBuyDomainAddon Bu 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 Alan in Tür Açıklama domain zorunlu path string key zorunlu path string Idempotency-Key zorunlu header string
Yanıtlar 200 Success — data: object 401 Missing, invalid or revoked key 403 Key lacks the scope, IP not allowed, or feature disabled 404 not_found 422 addon_active, addon_free, addon_not_offered, addon_not_supported, addon_pending, addon_rejected, addon_term_invalid, not_actionable 500 addon_failed
Örnekler curl CLI Python JavaScript
Kopyala curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/domains/1/addons/1' \
-H "Authorization: Bearer $GYRO_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"Kopyala gyro domain addon buyKopyala 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"])Kopyala 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}`);