CLOUDFLARE API — различия между версиями

Материал из megapuper
Перейти к: навигация, поиск
Строка 1: Строка 1:
 
Проверка валидности токена
 
Проверка валидности токена
 
  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 -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'
 
  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:39, 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"


Список зон

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'