1.5 Port Kontrolü
POST /apiv2/getAvailablePort
Zorunlu Parametreler
Ad
Tür
Açıklama
tsPanelBayiiIp
string
Bayi ip adresi
tsPanelUserName
string
TsPanel Kullanıcı Adı
tsPanelApiKey
string
TsPanel Api Key
tsPanelPort
int
Kontrol edilecek port
tsPanelPortBaslangic*
int
Boş port arama başlangıcı
*: tsPanelPort parametresindeki port kullanımda ise cevap olarak tsPanelPortBaslangic dan sonraki ilk müsait port dönecektir.
cURL (Örnek)
curl --request POST \
--url http://tspanel.net/apiv2/getAvailablePort \
--header 'cache-control: no-cache' \
--header 'content-type: multipart/form-data;' \
--form tsPanelBayiIp=bayi_ip\
--form tsPanelUserName=tspanel_username \
--form tsPanelApiKey=tspanel_apikey \
--form tsPanelPort=1234 \
--form tsPanelPortBaslangic=9000
Cevap (Örnek)
{
"success": true,
"data": "1234"
}
Last updated
Was this helpful?