Skip to content

Sub features and Example were missing in slcli cdn edit, slcli cdn origin-add #2019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ramkishor-ch opened this issue Jul 13, 2023 · 0 comments · Fixed by #2054
Closed

Sub features and Example were missing in slcli cdn edit, slcli cdn origin-add #2019

ramkishor-ch opened this issue Jul 13, 2023 · 0 comments · Fixed by #2054
Assignees
Labels

Comments

@ramkishor-ch
Copy link
Contributor

  1. ./slcli cdn edit --help
    Options, cache-description was missing, please add it.
    Options:
    --cache-description string 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.

Expected:

./slcli cdn edit --help  
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.                                                                                                                                 │
│ -s │ --https-port                │ HTTPS port.                                                                                                                                │
│ -o │ --origin                    │ Origin server address.                                                                                                                     │
│ -r │ --respect-headers           │ Respect headers. The value 1 is On and 0 is Off. Choices: 1, 0                                                                             │
│ -c │ --cache                     │ Cache key optimization. These are the valid options to choose: 'include-all', 'ignore-all', 'include-specified', 'ignore-specified'. If    │
│ -d │ --cache-description string  │ 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.   │
│    │                             │ 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. Choices: General web delivery, Large file optimization, Video on demand optimization   │
│ -h │ --help                      │ Show this message and exit.                                                                                                                │
└────┴─────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  1. slcli cdn origin-add
    a. Example was missing, please add it.
    Example:
    slcli cdn origin-add --origin 123.123.123.123 --path /example/videos --http 80
    b. Options: are missing, please add it.
    --https port Https port. [http or https is required]
    --compression Enable or disable compression of JPEG images for requests over certain network conditions. (default true)
    --dynamic-path string The path that Akamai edge servers periodically fetch the test object from. example = /detection-test-object.html
    --prefetching Enable or disable the embedded object prefetching feature. (default true)

Expected:

./slcli cdn origin-add --help
Usage: slcli cdn origin-add [OPTIONS] UNIQUE_ID ORIGIN PATH

Example:
slcli cdn origin-add --origin 123.123.123.123 --path /example/videos --http 80

        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

┌────┬────────────────┬─────────────────────────────────────────────────────────────────────────────────────────┐
│    │ unique_id      │                                                                                         │
│    │ origin         │                                                                                         │
│    │ path           │                                                                                         │
│ -t │ --origin-type  │ The origin type.  [default: server] Choices: server, storage                            │
│ -H │ --header       │ The host header to communicate with the origin.                                         │
│ -b │ --bucket-name  │ The name of the available resource [required if --origin-type=storage]                  │
│ -p │ --port         │ The http port number.  [default: 80]                                                    │
│ -hp │ --https port         │ Https port. [http or https is required]                                                    │
│ -P │ --protocol     │ The protocol used by the origin.  [default: http]                                       │
│ -o │ --optimize-for │ Performance configuration  [default: web] Choices: web, video, file                     │
│ -e │ --extensions   │ File extensions that can be stored in the CDN, example: 'jpg, png, pdf'                 │
│ -c │ --cache-query  │ Cache query rules with the following formats:                                           │
│    │                │ 'ignore-all', 'include: <query-names>', 'ignore: <query-names>'  [default: include-all] │
│ -co │ --compression    │ Enable or disable compression of JPEG images for requests over certain network conditions. (default true)               │
│ -dp │ --dynamic-path    │ The path that Akamai edge servers periodically fetch the test object from. example = /detection-test-object.html│
│ -pr │ --prefetching         │ Enable or disable the embedded object prefetching feature. (default true)                                                     │
│ -h │ --help         │ Show this message and exit.                                                             │
└────┴────────────────┴─────────────────────────────────────────────────────────────────────────────────────────┘
@ramkishor-ch ramkishor-ch self-assigned this Jul 19, 2023
@ramkishor-ch ramkishor-ch changed the title Sub feature was missing in slcli cdn edit, slcli cdn origin-add Sub features and Example were missing in slcli cdn edit, slcli cdn origin-add Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant