User Tools

Site Tools


howtos:enable_or_disable_certificate_transparency_monitoring_via_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:enable_or_disable_certificate_transparency_monitoring_via_api [24/06/2022 14:53] – created domingohowtos:enable_or_disable_certificate_transparency_monitoring_via_api [24/06/2022 14:59] (current) – [The Solution] domingo
Line 32: Line 32:
  
 It was then trivial to make a script to go through all the zones and set the flag. It was then trivial to make a script to go through all the zones and set the flag.
 +
 +As Cloudflare paginates the output from the zone query I've accounted for the output to span multiple pages. The max amount of zones you can get per page is only 50, so if you have more than that you will not get all the zones in one call. The script takes the default per_page value (20) and then makes the required calls to get all pages.
 +You can modify the calls to get more per page by adding "&per_page=xxx" like this:
 +<code>
 +/client/v4/zones?page=$page&per_page=xxx
 +</code>
  
 ==== The Script ==== ==== The Script ====
howtos/enable_or_disable_certificate_transparency_monitoring_via_api.txt · Last modified: 24/06/2022 14:59 by domingo