Azion CLI origins command and its subcommands

See the command and subcommands that enable the management of your origins used on the Azion Platform using Azion CLI.


List the origins available in your account.

Terminal window
$ azioncli origins --application-id 12738

The --application-id flag gives the ID for the edge application and, based on that, the origins related to the application are listed.

The --details option displays all relevant fields when listing.

The --help option displays more information about the list subcommand.


Creates an origin based on given attributes to be used with edge applications.

Terminal window
$ azioncli origins create --application-id 1673635839 --name "name" --addresses "xxxxxx.me" --host-header "host"

The --name flag gives the origin’s name.

The --application-id flag gives the ID for the edge application related to this origin.

the --addresses flag passes a list of addresses linked to the origin being created.

The --host-header flag specifies the hostname of the server being accessed.

The --help option displays more information about the create subcommand.

The --hmac-authentication option informs whether Hmac Authentication is used by the origin or not.

Expected values:

  • true
  • false

The --hmac-access-key option informs the Hmac access key, if the value informed through the --hmac-authentication flag is true.

The --hmac-region-name option informs the Hmac region name, if the value informed through the --hmac-authentication flag is true.

The --hmac-secret-key option informs the Hmac Secret Key, if the value informed through the --hmac-authentication flag is true.

The --host-header option specifies the hostname of the server being accessed.

The --origin-path option gives the path to be appended to the URI when forwarding the request to the origin. Leave it in blank to use only the URI.

The --origin-protocol-policy option informs the protocol policy used in the origin.

The --origin-type option identifies the source of a record.

Expected values:

  • single_origin
  • load_balancer

The --in option informs the file path to a JSON file containing all attributes of the origin that will be created.

Note: if the flag --in is given, all information will be accessed through the filepath that was passed through the flag, so the other flags aren’t necessary.


Updates an Origin based on the ID informed and given attributes.

Terminal window
azioncli origins update --application-id 1673635839 --origin-key "58755fef-e830-4ea4-b9e0-6481f1ef496d" --name "newname" --addresses "xxxxxx.me" --host-header "host"

The --application-id flag informs the ID of the edge application related to the origin.

The --origin-key flag informs the origin key unique identifier.

The --name flag gives the origin’s name.

the --addresses flag passes a list of addresses linked to the origin being updated.

The --host-header flag specifies the hostname of the server being accessed.

The --help option displays more information about the update subcommand.

The --hmac-authentication option informs whether Hmac Authentication is used by the origin or not.

Expected values:

  • true
  • false

The --hmac-access-key option informs the Hmac access key, if the value informed through the --hmac-authentication flag is true.

The --hmac-region-name option informs the Hmac region name, if the value informed through the --hmac-authentication flag is true.

The --hmac-secret-key option informs the Hmac Secret Key, if the value informed through the --hmac-authentication flag is true.

The --host-header option specifies the hostname of the server being accessed.

The --origin-path option gives the path to be appended to the URI when forwarding the request to the origin. Leave it in blank to use only the URI.

The --origin-protocol-policy option informs the protocol policy used in the origin.

The --origin-type option identifies the source of a record.

Expected values:

  • single_origin
  • load_balancer

The --in option informs the file path to a JSON file containing all attributes of the origin that will be updated.

Note: if the flag --in is given, all information will be accessed through the filepath that was passed through the flag, so the other flags aren’t necessary.


Returns details about a specific origin, based on a given ID.

Terminal window
$ azioncli origins describe --application-id 4312 --origin-id 31223

The --application-id flag informs the ID of the edge application related to the origin that will be described.

The --origin-id flag informs the ID of the origin that will be described.

The --out option exports the output of the describe command to a given filepath.

The --format option, followed by the value json, changes the output format to JSON.

The --help option displays more information about the describe subcommand.


Deletes an origin on the Azion platform.

Terminal window
$ azioncli origins delete --application-id 1234 --origin-key 03a6e7bf-8e26-49c7-a66e-ab8eaa425086

The --application-id flag informs the ID of the edge application related to the origin that will be deleted.

The --origin-key flag informs the origin key unique identifier.

The --help option displays more information about the delete subcommand.