Interacting with CDN¶
cdn detail¶
Detail a CDN Account.
cdn detail [OPTIONS] UNIQUE_ID
Options
- --history <history>¶
Bandwidth, Hits, Ratio counted over history number of days ago. 89 is the maximum.
Arguments
- UNIQUE_ID¶
Required argument
cdn list¶
List all CDN accounts.
cdn list [OPTIONS]
Options
- --sortby <sortby>¶
Column to sort by
- Options
unique_id | domain | origin | vendor | cname | status
cdn origin-add¶
Create an origin path for an existing CDN mapping.
For more information see the following documentation:
https://cloud.ibm.com/docs/infrastructure/CDN?topic=CDN-manage-your-cdn#adding-origin-path-details
cdn origin-add [OPTIONS] UNIQUE_ID ORIGIN PATH
Options
- -t, --origin-type <origin_type>¶
The origin type.
- Default
server
- Options
server | storage
- -H, --header <header>¶
The host header to communicate with the origin.
- -b, --bucket-name <bucket_name>¶
The name of the available resource [required if –origin-type=storage]
- -p, --port <port>¶
The http port number.
- Default
80
- -P, --protocol <protocol>¶
The protocol used by the origin.
- Default
http
- -o, --optimize-for <optimize_for>¶
Performance configuration
- Default
web
- Options
web | video | file
- -e, --extensions <extensions>¶
File extensions that can be stored in the CDN, example: ‘jpg, png, pdf’
- -c, --cache-query <cache_query>¶
Cache query rules with the following formats: ‘ignore-all’, ‘include: <query-names>’, ‘ignore: <query-names>’
- Default
include-all
Arguments
- UNIQUE_ID¶
Required argument
- ORIGIN¶
Required argument
- PATH¶
Required argument
cdn origin-list¶
List origin path for an existing CDN mapping.
cdn origin-list [OPTIONS] UNIQUE_ID
Arguments
- UNIQUE_ID¶
Required argument
cdn origin-remove¶
Removes an origin path for an existing CDN mapping.
cdn origin-remove [OPTIONS] UNIQUE_ID ORIGIN_PATH
Arguments
- UNIQUE_ID¶
Required argument
- ORIGIN_PATH¶
Required argument
cdn purge¶
Creates a purge record and also initiates the purge call.
- Example:
slcli cdn purge 9779455 /article/file.txt
For more information see the following documentation:
https://cloud.ibm.com/docs/infrastructure/CDN?topic=CDN-manage-your-cdn#purging-cached-content
cdn purge [OPTIONS] UNIQUE_ID PATH
Arguments
- UNIQUE_ID¶
Required argument
- PATH¶
Required argument
cdn edit¶
Edit a CDN Account.
Note: You can use the hostname or uniqueId as IDENTIFIER.
cdn edit [OPTIONS] IDENTIFIER
Options
- -H, --header <header>¶
Host header.
- -t, --http-port <http_port>¶
HTTP port.
- -s, --https-port <https_port>¶
HTTPS port.
- -o, --origin <origin>¶
Origin server address.
- -r, --respect-headers <respect_headers>¶
Respect headers. The value 1 is On and 0 is Off.
- Options
1 | 0
- -c, --cache <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 <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.
- Options
General web delivery | Large file optimization | Video on demand optimization
Arguments
- IDENTIFIER¶
Required argument