CLOUDFLARE API

Материал из megapuper
Перейти к: навигация, поиск

Проверка валидности токена

curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" -H "Authorization: Bearer SDFrwAefrSsDDGNBq7z_SUFe1_MHDS-obef2I9bW5K" -H "Content-Type:application/json"


Список зон

GET https://api.cloudflare.com/client/v4/zones/{identifier}
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'


Инфо по зоне

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'