Skip to content

azion_update_domains

GitHub Action edited this page Oct 19, 2023 · 4 revisions

azion update domains

Updates a Domain

Synopsis

Updates a Domain based on its ID to update its name and other attributes

azion update domains --domain-id <domain_id> [flags]

Examples

$ azion update domains --domain-id 1234 --name 'Hello'
$ azion update domains --domain-id 1234 --application-id 4321
$ azion update domains --domain-id 1234 --cnames www.testhere.com,www.pudim.com
$ azion update domains --domain-id 9123 --cname-access-only true
$ azion update domains --domain-id 9123 --cname-access-only false
$ azion update domains --domain-id 9123 --application-id 192837
$ azion update domains --in "update.json"
      

Options

      --active string                   Whether the Domain should be active or not
      --application-id int              Unique identifier for an edge application used by this domain.
      --cname-access-only string        Whether the Domain should be Accessed through Cname only or not
      --cnames strings                  Cnames of your Domain
      --digital-certificate-id string   Unique identifier of the Digital Certificate; this value is either an integer or null
      --domain-id int                   The '--domain-id'
  -h, --help                            Displays more information about the update domains subcommand
      --in string                       Given path and JSON file to automatically update the Domain attributes; you can use - for reading from stdin
      --name string                     The Domain's name

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
  -l, --log-level string   Displays log at a debug level (default "info")
  -s, --silent             Silences log completely; mostly used for automation purposes
  -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

Auto generated by spf13/cobra on 19-Oct-2023