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

Hizmetler (çekirdek)

Çekirdek hizmet uçları: yenileme, iptal, otomatik yenileme, ek hizmetler, ölçümler, SSO, parola.

#GET/services

Hizmetleri ListelemeKapsam: Services/GetServicescoreGetServicesBu işlemin OpenAPI parçası

Hesabın sahip olduğu hizmetleri 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: bekleyen hem kurulumdakini hem işlemdekini kapsar, iptal ise tamamlananı da içerir.
typequerystringÜrün türü süzgeci.
searchquerystringHizmet adında ve bağlı alan 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/services' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro core service list
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services", {
  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/services/{id}

Hizmeti OkumaKapsam: Services/GetServicecoreGetServiceBu işlemin OpenAPI parçası

Hizmetin ayarlarını, erişim bilgilerini ve yenileme durumunu döndürür. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
id 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 'https://www.gyrohosting.com/api/v1/client/services/12345' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro core service get 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345", {
  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/services/{id}

Hizmet Tercihlerini DeğiştirmeKapsam: Services/UpdateServicecoreUpdateServiceBu işlemin OpenAPI parçası

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

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

İstek gövdesi

AlanTürAçıklama
auto_renewbooleanHizmet bazlı otomatik yenileme. Hesap geneli otomatik ödeme açıkken değiştirilemez.
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
422autorenew_locked, no_auto_pay_source, not_actionable, nothing_to_update

Örnekler

curl -s -X PATCH 'https://www.gyrohosting.com/api/v1/client/services/12345' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"auto_renew": true, "billing_profile_id": 1}'
gyro service update 12345 --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/services/12345", 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/services/12345", {
  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/services/{id}/renew

Yenileme Faturası KesmeKapsam: Services/RenewServicecoreRenewServiceBu 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). Hizmet için bir yenileme faturası keser. — fatura üretir

Parametreler

AlaninTürAçıklama
id zorunlupathinteger
Idempotency-Key zorunluheaderstring

İstek gövdesi

AlanTürAçıklama
cyclestringYenileme döngüsü. Hizmet detayındaki döngü listesinden seçilir; verilmezse mevcut döngü kullanılır.

Yanıtlar

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

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/services/12345/renew' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"cycle": "string"}'
gyro service renew 12345 --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/services/12345/renew", headers=h, json={"cycle": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/renew", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({"cycle": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#GET/services/{id}/invoices

Hizmetin Faturalarını OkumaKapsam: Services/GetServiceInvoicescoreGetServiceInvoicesBu işlemin OpenAPI parçası

Bu hizmeti faturalayan belgeleri döndürür. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
id zorunlupathinteger
limitqueryintegerEn çok satır. En çok 100.
pagequeryinteger

Yanıtlar

200Success — data: array<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/services/12345/invoices' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro service invoice list 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345/invoices", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/invoices", {
  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/services/{id}/addons

Hizmet Eklentilerini OkumaKapsam: Services/GetServiceAddonscoreGetServiceAddonsBu işlemin OpenAPI parçası

Hizmete bağlı ek hizmetleri döndürür. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

Yanıtlar

200Success — data: array<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/services/12345/addons' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro core service addon list 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345/addons", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/addons", {
  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/services/{id}/cancellation

İptal Talebi AçmaKapsam: Services/CreateCancellationcoreCreateCancellationBu işlemin OpenAPI parçası

Hizmetin iptali için bir talep açar. — aynı anda tek talep

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

İstek gövdesi

AlanTürAçıklama
urgency zorunlustringNe zaman iptal edilsin: hemen ya da dönem sonunda.
reason zorunlustringGerekçe. Beş değerden biri: gerek kalmadı, pahalı, başka yere geçiliyor, özellik eksik ya da diğer.
reason_detailstringSerbest açıklama. Gerekçe diğer ise zorunludur.
notestringOperatöre not.

Yanıtlar

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

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/services/12345/cancellation' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urgency": "string", "reason": "string", "reason_detail": "string", "note": "string"}'
gyro service cancellation create 12345 --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/services/12345/cancellation", headers=h, json={"urgency": "string", "reason": "string", "reason_detail": "string", "note": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/cancellation", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"urgency": "string", "reason": "string", "reason_detail": "string", "note": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#DELETE/services/{id}/cancellation

İptal Talebini Geri ÇekmeKapsam: Services/RevokeCancellationcoreRevokeCancellationBu işlemin OpenAPI parçası

Açık bir iptal talebini geri çeker. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
id 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/services/12345/cancellation' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro service cancellation delete 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.delete("https://www.gyrohosting.com/api/v1/client/services/12345/cancellation", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/cancellation", {
  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/services/{id}/metrics

Ölçümleri OkumaKapsam: Services/GetServiceMetricscoreGetServiceMetricsBu işlemin OpenAPI parçası

Kullanıma göre ücretlenen ölçümleri ve tahmini bedeli döndürür. — kullanıma göre ücret

Parametreler

AlaninTürAçıklama
id 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 'https://www.gyrohosting.com/api/v1/client/services/12345/metrics' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro service metrics list 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345/metrics", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/metrics", {
  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/services/{id}/metrics/billing

Kullanım Fatura GeçmişiKapsam: Services/GetServiceMetricBillingcoreGetServiceMetricBillingBu işlemin OpenAPI parçası

Ölçümlerin dönem dönem faturalanmış kullanımını döndürür. — anahtarın sahibi

Parametreler

AlaninTürAçıklama
id zorunlupathinteger
pagequeryintegerKaçıncı sayfa.
limitqueryintegerSayfa başına satır. En çok 100.
metricquerystringTek bir ölçüme daraltır.

Yanıtlar

200Success — data: array<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/services/12345/metrics/billing' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro service metrics billing list 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345/metrics/billing", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/metrics/billing", {
  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/services/{id}/metrics/{key}

Ölçümü Açma ve KapatmaKapsam: Services/UpdateServiceMetriccoreUpdateServiceMetricBu işlemin OpenAPI parçası

Bir ölçümü açar ya da kapatır. — ödenmemiş fatura kilitler

Parametreler

AlaninTürAçıklama
id zorunlupathinteger
key zorunlupathstring

İstek gövdesi

AlanTürAçıklama
enabled zorunlubooleanİstenen durum.

Yanıtlar

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

Örnekler

curl -s -X PATCH 'https://www.gyrohosting.com/api/v1/client/services/12345/metrics/1' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"enabled": true}'
gyro service metrics update 12345 --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/services/12345/metrics/1", 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/services/12345/metrics/1", {
  method: "PATCH",
  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/services/{id}/dashboard

Panel Özetini OkumaKapsam: Services/GetServiceDashboardcoreGetServiceDashboardBu işlemin OpenAPI parçası

Hizmetin arkasındaki panelin özetini ve yeteneklerini döndürür. — modüle canlı sorar

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

Yanıtlar

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

Örnekler

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

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345/dashboard", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/dashboard", {
  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/services/{id}/tools

Araçları ListelemeKapsam: Services/GetServiceToolscoreGetServiceToolsBu işlemin OpenAPI parçası

Hizmet üzerinde kullanılabilecek panel araçlarını döndürür. — modüle canlı sorar

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

Yanıtlar

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

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/services/12345/tools' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro core service tool list 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345/tools", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/tools", {
  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/services/{id}/tools/{tool}

Araç Verisini OkumaKapsam: Services/GetServiceToolDatacoreGetServiceToolDataBu işlemin OpenAPI parçası

Bir aracın listelediği veriyi panelden çeker. — modüle canlı sorar

Parametreler

AlaninTürAçıklama
id zorunlupathinteger
tool zorunlupathstring
actionquerystringOkuma eylemi. Verilmezse aracın varsayılan listesi alınır.

Yanıtlar

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

Örnekler

curl -s 'https://www.gyrohosting.com/api/v1/client/services/12345/tools/1' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro core service tool get 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.get("https://www.gyrohosting.com/api/v1/client/services/12345/tools/1", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/tools/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}`);

#POST/services/{id}/tools/{tool}/{action}

Araç Eylemi ÇalıştırmaKapsam: Services/RunServiceToolActioncoreRunServiceToolActionBu işlemin OpenAPI parçası

Bir araç üzerinde oluşturma, düzenleme ya da silme çalıştırır. DNS kaydı düzenlemesi (dns-zone-editor/edit) yalnız gönderdiğinizi değiştirir: gönderilmeyen ad, TTL ya da öncelik kaydın mevcut değerini korur. — sunucuda değişiklik

Parametreler

AlaninTürAçıklama
id zorunlupathinteger
tool zorunlupathstring
action zorunlupathstring

İstek gövdesi

AlanTürAçıklama
current_pathstring
filestring
namestring
new_namestring
itemsstring

Yanıtlar

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

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/services/12345/tools/1/reboot' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"current_path": "string", "file": "string", "name": "string", "new_name": "string", "items": "string"}'
gyro core service tool run 12345 --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/services/12345/tools/1/reboot", headers=h, json={"current_path": "string", "file": "string", "name": "string", "new_name": "string", "items": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/tools/1/reboot", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"current_path": "string", "file": "string", "name": "string", "new_name": "string", "items": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/services/{id}/module-method

Modül Metodu ÇalıştırmaKapsam: Services/UseServiceModuleMethodcoreUseServiceModuleMethodBu işlemin OpenAPI parçası

Modülün müşteriye açtığı bir metodu çalıştırır. — beyanlı metotlar

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

İstek gövdesi

AlanTürAçıklama
method zorunlustringÇalıştırılacak metot. Panel özetindeki metot listesinden alınır.

Yanıtlar

200Success — data: object
401Missing, invalid or revoked key
403Key lacks the scope, IP not allowed, or feature disabled
404not_found
422invalid_method, method_required, module_unavailable, tool_rejected
500module_method_failed

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/services/12345/module-method' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"method": "string"}'
gyro service module-method 12345 --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/services/12345/module-method", headers=h, json={"method": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/module-method", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"method": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);

#POST/services/{id}/sso

Panele Tek Oturum AçmaKapsam: Services/GetServiceSsocoreGetServiceSsoBu işlemin OpenAPI parçası

Panele parolasız giriş için tek kullanımlık bir adres üretir. — kısa ömürlü adres

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

Yanıtlar

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

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/services/12345/sso' \
  -H "Authorization: Bearer $GYRO_TOKEN"
gyro service sso 12345
import os, uuid, requests

h = {"Authorization": "Bearer " + os.environ["GYRO_TOKEN"]}
r = requests.post("https://www.gyrohosting.com/api/v1/client/services/12345/sso", headers=h, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/sso", {
  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}`);

#POST/services/{id}/password

Panel Parolasını DeğiştirmeKapsam: Services/ChangeServicePasswordcoreChangeServicePasswordBu işlemin OpenAPI parçası

Hizmetin panel parolasını değiştirir. — barındırma ve sunucu

Parametreler

AlaninTürAçıklama
id zorunlupathinteger

İstek gövdesi

AlanTürAçıklama
password zorunlustringYeni panel parolası. Operatörün asgari uzunluğunu karşılamalıdır.

Yanıtlar

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

Örnekler

curl -s -X POST 'https://www.gyrohosting.com/api/v1/client/services/12345/password' \
  -H "Authorization: Bearer $GYRO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"password": "string"}'
gyro service password 12345 --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/services/12345/password", headers=h, json={"password": "string"}, timeout=60)
r.raise_for_status()
print(r.json()["data"])
const res = await fetch("https://www.gyrohosting.com/api/v1/client/services/12345/password", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GYRO_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"password": "string"}),
});
const { data, error } = await res.json();
if (!res.ok) throw new Error(`${error.code}: ${error.message}`);