softlayer-python
softlayer-python copied to clipboard
Bug in `slcli edit cdn` command, it only uses http, and cannot use https
~/ $ slcli cdn edit 172 --header www.techsupport.com
SoftLayerAPIError(SoftLayer_Exception): Status [400]: HTTP port cannot be set when protocol is HTTPS.
~/ $ slcli cdn edit -h
Usage: slcli cdn edit [OPTIONS] IDENTIFIER
Edit a CDN Account.
Note: You can use the hostname or uniqueId as IDENTIFIER.
┌────┬─────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │ identifier │ │
│ -H │ --header │ Host header. │
│ -t │ --http-port │ HTTP port. │
│ -o │ --origin │ Origin server address. │
│ -r │ --respect-headers │ Respect headers. The value 1 is On and 0 is Off. │
│ -c │ --cache │ Cache key optimization. These are the valid options to choose: 'include-all', 'ignore-all', 'include-specified', 'ignore-specified'. If you select │
│ │ │ 'include-specified' or 'ignore-specified' please add a description too using again --cache, e.g --cache=include-specified --cache=description. │
│ -p │ --performance-configuration │ Optimize for, General web delivery', 'Large file optimization', 'Video on demand optimization', the Dynamic content acceleration option is not added │
│ │ │ because this has a special configuration. │
│ -h │ --help │ Show this message and exit. │
└────┴─────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Uses by default only the http protocol, and does not take into account the https protocol, for some cdns The command with considers the https protocol
~/ $ slcli --version
Current: slcli (SoftLayer Command-line) v6.1.0
Latest: slcli (SoftLayer Command-line) v6.1.0