CLOUDFLARE API
Версия от 12:45, 11 мая 2023; Root (обсуждение | вклад)
Проверка валидности токена
curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" -H "Authorization: Bearer SDFrwAefrSsDDGNBq7z_SUFe1_MHDS-obef2I9bW5K" -H "Content-Type:application/json"
Список зон
curl --request GET --url https://api.cloudflare.com/client/v4/zones -H "Authorization: Bearer SDFrwAefrSsDDGNBq7z_SUFe1_MHDS-obef2I9bW5K" --header 'Content-Type: application/json' --header 'X-Auth-Email: finn@megapuper'
Инфо по зоне
GET https://api.cloudflare.com/client/v4/zones/{identifier}
curl --request GET --url https://api.cloudflare.com/client/v4/zones/11fed7f893767b5c3f69c04bc2b1b845 -H "Authorization: Bearer SDFrwAefrSsDDGNBq7z_SUFe1_MHDS-obef2I9bW5K" --header 'Content-Type: application/json' --header 'X-Auth-Email: finn@megapuper.ru'