azion_update_origin - aziontech/azion GitHub Wiki

azion update origin

Updates an Origin

Synopsis

Updates an Origin based on its key and given attributes

azion update origin [flags]

Examples

$ azion update origin --application-id 1673635839 --origin-key "58755fef-e830-4ea4-b9e0-6481f1ef496d" --name "ffcafe222sdsdffdf" --addresses "httpbin.org" --host-header "\${host}" --origin-type "single_origin" --origin-protocol-policy "http" --origin-path "/requests" --hmac-authentication "false"
$ azion update origin --application-id 1673635839 --origin-key "58755fef-e830-4ea4-b9e0-6481f1ef496d" --name "drink coffe" --addresses "asdfg.asd" --host-header "\${host}"
$ azion update origin --file "update.json"

Options

      --addresses strings               Passes a list of addresses linked to the Origin
      --application-id int              Unique identifier for an Application
      --bucket string                   The Origin's bucket
      --file string                     Path to a JSON file containing the attributes of the Origin that will be created; you can use - for reading from stdin
  -h, --help                            Displays more information about the update Origin command
      --hmac-access-key string          Informs Hmac Access Key
      --hmac-authentication string      Whether Hmac Authentication is used or not
      --hmac-region-name string         Informs Hmac region name
      --hmac-secret-key string          Informs Hmac Secret Key
      --host-header string              Specifies the hostname of the server being accessed
      --name string                     The Origin's name
      --origin-key string               The Origin's key unique identifier
      --origin-path string              Path to be appended to the URI when forwarding the request to the Origin. Leave it in blank to use only the URI
      --origin-protocol-policy string   Tells the protocol policy used in the Origin
      --origin-type string              Identifies the source of a record. I.e. "single_origin"
      --prefix string                   The Origin's prefix

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 30-Mar-2026