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