cURL
curl --request GET \
--url "https://siteadresiniz.example/Files/Controllers/ControllersAll.php?main=Cloudflare&container=status" \
--header "X-API-Key: $ZONELY_API_KEY"const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://example.com/Files/Controllers/ControllersAll.php', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>",
"success": true,
"data": {
"connected": true,
"account": {
"status": "<string>",
"status_label": "<string>",
"token_status": "<string>",
"token_id": "<string>",
"last_sync_at": "<string>",
"last_error": "<string>",
"updated_at": "<string>"
},
"summary": {
"total_zones": 123,
"total_dns_records": 123,
"proxied_records": 123,
"last_sync_at": "<string>",
"token_status": "<string>",
"last_error": "<string>",
"active_security_mode": "<string>",
"cache_status": "<string>",
"risk_score": 123,
"dns_health_score": 123,
"recommendation_count": 123,
"guardban_status": "<string>",
"active_security_actions": 123
},
"zones": "<array>",
"guardban": {
"settings": {
"mode": "<string>",
"failed_login_threshold": 123,
"form_threshold": 123,
"api_threshold": 123,
"endpoint_threshold": 123,
"risk_threshold": 123,
"default_action": "<string>",
"default_duration": "<string>",
"trusted_ips": "<array>",
"never_block_ips": "<array>",
"auto_remove": true,
"notifications": true
},
"items": "<array>",
"active_count": 123
},
"turnstile": {
"enabled": true,
"site_key": "<string>",
"has_secret": true
}
}
}Статус ссылки Cloudflare
Запрос URL и параметров для работы с Cloudflare.
GET
/
Files
/
Controllers
/
ControllersAll.php
cURL
curl --request GET \
--url "https://siteadresiniz.example/Files/Controllers/ControllersAll.php?main=Cloudflare&container=status" \
--header "X-API-Key: $ZONELY_API_KEY"const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://example.com/Files/Controllers/ControllersAll.php', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "<string>",
"success": true,
"data": {
"connected": true,
"account": {
"status": "<string>",
"status_label": "<string>",
"token_status": "<string>",
"token_id": "<string>",
"last_sync_at": "<string>",
"last_error": "<string>",
"updated_at": "<string>"
},
"summary": {
"total_zones": 123,
"total_dns_records": 123,
"proxied_records": 123,
"last_sync_at": "<string>",
"token_status": "<string>",
"last_error": "<string>",
"active_security_mode": "<string>",
"cache_status": "<string>",
"risk_score": 123,
"dns_health_score": 123,
"recommendation_count": 123,
"guardban_status": "<string>",
"active_security_actions": 123
},
"zones": "<array>",
"guardban": {
"settings": {
"mode": "<string>",
"failed_login_threshold": 123,
"form_threshold": 123,
"api_threshold": 123,
"endpoint_threshold": 123,
"risk_threshold": 123,
"default_action": "<string>",
"default_duration": "<string>",
"trusted_ips": "<array>",
"never_block_ips": "<array>",
"auto_remove": true,
"notifications": true
},
"items": "<array>",
"active_count": 123
},
"turnstile": {
"enabled": true,
"site_key": "<string>",
"has_secret": true
}
}
}GET /Files/Controllers/ControllersAll.php?main=Cloudflare&container=status
