Could a feature to export a corp or site rule (whether saved, unsaved, active or inactive), be exportable in JSON format from the web UI?
Having been a past WAF/CDN client of both StackPath & Edgio and having to manage many sites, it would be beneficial for me to use the web UI to initially create a test rule and then export it as JSON for archival purposes or to be applied to multiple sites via the API or CLI. (Edgio provided the ability to export most configurations, and the JSON data has been extremely beneficial during our migration to Fastly.)
I updated a corp rule using the webUI and noticed a PUT request & response in the F12 dev tools Network tab contains the same JSON info. For clarification, I’m requesting a way to expose this JSON string via the web interface for both review & export/archive.
CURRENT: The only way to access this generated JSON via the admin tool is to edit a rule, save and use F12 dev tools to capture the PUT request. (I’d like to access it on-demand without having to perform any edits.)
As a comparison, when working with the CDN configuration, VCL rules and Logger formats can both be previewed via the web UI without having to edit or use API/CLI. There’s even an option for “diff” (which is awesome).
For clarification, I’m requesting a way to expose this JSON string via the web interface for both review & export/archive.
Ah ok, thanks for clarifying! Unfortunately it is only accessible through the API today but I have noted your request within our internal feature request tracker.
As a comparison, when working with the CDN configuration, VCL rules and Logger formats can both be previewed via the web UI without having to edit or use API/CLI. There’s even an option for “diff” (which is awesome).
Completely understood! Thanks for the additional context.