CLOUDFLARE API — различия между версиями
Root (обсуждение | вклад) |
Root (обсуждение | вклад) |
||
Строка 4: | Строка 4: | ||
Список зон | Список зон | ||
− | + | ||
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 -H "Authorization: Bearer SDFrwAefrSsDDGNBq7z_SUFe1_MHDS-obef2I9bW5K" --header 'Content-Type: application/json' --header 'X-Auth-Email: finn@megapuper' | ||
Строка 10: | Строка 10: | ||
Инфо по зоне | Инфо по зоне | ||
+ | '''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' | 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' |
Версия 12:40, 11 мая 2023
Проверка валидности токена
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'