Skip to content

azion_update_cache setting

GitHub Action edited this page Jan 5, 2026 · 1 revision

azion update cache-setting

Updates a Cache Settings configuration

Synopsis

Updates a Cache Settings configuration based on given attributes to be used in Applications

azion update cache-setting [flags]

Examples

$ azion update cache-setting --application-id 1673635839 --cache-setting-id 123123421 --name "phototypesetting"
$ azion update cache-setting --application-id 1673635839 --cache-setting-id 123123421 --file "create.json"

Options

      --application-id int                  Unique identifier for an Application
      --browser-cache-max-age int           Defines how long content is cached by the web browser before it expires
      --browser-cache-settings string       Configures the amount of time that the content is cached in the web browser (default "honor")
      --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")
      --cache-setting-id int                Unique identifier for an Cache Setting
      --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
      --enable-caching-string-sort string   Whether caching string sort 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 update 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

Options inherited from parent commands

  -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

SEE ALSO

  • azion update - Modifies or changes single or multiple configurations of existing services or resources on Azion
Auto generated by spf13/cobra on 5-Jan-2026

Clone this wiki locally