-
Notifications
You must be signed in to change notification settings - Fork 29
azion_create_cache setting
GitHub Action edited this page Jan 5, 2026
·
1 revision
Creates a new Cache Settings configuration
Creates a Cache Settings configuration based on given attributes to be used in Applications
azion create cache-setting [flags]
$ azion create cache-setting --application-id 1673635839 --name "phototypesetting"
$ azion create cache-setting --application-id 1673635839 --file "create.json"
--application-id int Unique identifier for an Application
--browser-cache-behavior string Configures the amount of time that the content is cached in the web browser (default "honor")
--browser-cache-max-age int Defines how long content is cached by the web browser before it expires
--cache-by-cookies string Whether cache by cookies is active or not (default "ignore")
--cache-by-query-string string Defines how you want the content to be cached according to variations of Query String in your URLs (default "ignore")
--cookie-names strings Distinguishes objects in the Azion cache by name/value of cookies
--enable-caching-for-options string Whether caching for options is active or not (default "false")
--enable-caching-for-post string Whether caching for post is active or not
--file string Path to a JSON file containing the attributes of the Cache Settings configuration that will be created; you can use - for reading from stdin
-h, --help Displays more information about the create cache-setting command
--name string The Cache Settings configuration name
--query-string-fields strings Gives a list of query strings parameters to be considered in the Cache Settings configuration, that will segregate the cache to the same URL
--tiered-caching-enabled string Whether tiered caching is active or not
-c, --config string Sets the Azion configuration folder for the current command only, without changing persistent settings.
-d, --debug Displays log at a debug level
--format string Changes the output format passing the json value to the flag
-l, --log-level string Set the logging level, "debug", "info", or "error". (default "info")
--no-color Changes the output format passing the json value to the flag
--out string Exports the output to the given <file_path/file_name.ext>
-s, --silent Silences log completely; mostly used for automation purposes
--timeout int Defines how much time in seconds the CLI will wait before timing out from the HTTP connection (default 50)
-t, --token string Saves a given Personal Token locally to authorize CLI commands
-y, --yes Answers all yes/no interactions automatically with yes
- azion create - Creates a new resource