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, --http-port <http_port>
The http port number. [http or https is required]
- -s, --https-port <https_port>
The https port number. [http or https is required]
- -P, --protocol <protocol>
The protocol used by the origin.
- Default:
'http'
- -o, --optimize-for <optimize_for>
Performance configuration
- Default:
'web'
- Options:
web | video | file | dynamic
- -d, --dynamic-path <dynamic_path>
The path that Akamai edge servers periodically fetch the test object from.example = /detection-test-object.html
- -i, --compression <compression>
Enable or disable compression of JPEG images for requests over certain network conditions.
- Default:
'true'
- -g, --prefetching <prefetching>
Enable or disable the embedded object prefetching feature.
- Default:
'true'
- -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 to option –cache-description. e.g –cache=include-specified –cache-description=description.
- -C, --cache-description <cache_description>
In cache option, if you select ‘include-specified’ or ‘ignore-specified’, please add a description too using this option. e.g –cache include-specified –cache-description 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
cdn delete
Delete a CDN domain mapping.
cdn delete [OPTIONS] UNIQUE_ID
Arguments
- UNIQUE_ID
Required argument
cdn create
Create a CDN domain mapping.
cdn create [OPTIONS]
Options
- --hostname <hostname>
Required To route requests to your website, enter the hostname for yourwebsite, for example, www.example.com or app.example.com.
- --origin <origin>
Required Your server IP address or hostname.
- --origin-type <origin_type>
The origin type. Note: If OriginType is storage then OriginHost is take as Endpoint
- Default:
'server'
- Options:
server | storage
- --http <http>
Http port
- --https <https>
Https port
- --bucket-name <bucket_name>
Bucket name
- --cname <cname>
Enter a globally unique subdomain. The full URL becomes the CNAME we use to configure your DNS. If no value is entered, we will generate a CNAME for you.
- --header <header>
The edge server uses the host header in the HTTP header to communicate with the Origin host. It defaults to Hostname.
- --path <path>
Give a path relative to the domain provided, which can be used to reach this Origin. For example, ‘articles/video’ => ‘www.example.com/articles/video
- --ssl <ssl>
A DV SAN Certificate allows HTTPS traffic over your personal domain, but it requires a domain validation to prove ownership. A wildcard certificate allows HTTPS traffic only when using the CNAME given.
- Options:
dvSan | wilcard