create

Create a CDN distribution. Wiki: https://docs.ionos.com/cloud/network-services/cdn/dcd-how-tos/create-cdn-distribution

Usage

ionosctl cdn distribution create [flags]

Aliases

For distribution command:

[ds]

For create command:

[c post]

Description

Create a CDN distribution. Wiki: https://docs.ionos.com/cloud/network-services/cdn/dcd-how-tos/create-cdn-distribution

Options

  -u, --api-url string          Override default host URL (default "https://cdn.de-fra.ionos.com")
      --certificate-id string   The ID of the certificate
      --cols strings            Set of columns to be printed on output 
                                Available columns: [Id Domain CertificateId State]
  -c, --config string           Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.json")
      --domain string           The domain of the distribution
  -f, --force                   Force command to execute without user input
  -h, --help                    Print usage
  -l, --location string         Location of the resource to operate on. Can be one of: de/fra
      --no-headers              Don't print table headers when table output is used
  -o, --output string           Desired output format [text|json|api-json] (default "text")
  -q, --quiet                   Quiet output
      --routing-rules string    The routing rules of the distribution. JSON string or file path of routing rules
      --routing-rules-example   Print an example of routing rules
  -v, --verbose                 Print step-by-step process when running command

Examples

ionosctl cdn ds create --domain foo-bar.com --certificate-id id --routing-rules rules.json

Last updated