cw-actionctl#
NAME
cw-actionctl -- Query and modify auto remediation service remedy actions for the cluster.
USAGE
cw-actionctl[-h][-v][-q][[-c | --config] CONFIG][--base-url URL][[-u | --user] USER[:PASSWD]][--human | --json | --csv | --table][--pretty | --no-pretty][--show-uids][[-i | --ids] ACTION | -a | --all][--reset-all]{list,ls, create,mk, clone,cp, update,up, delete,rm}
OPTIONAL ARGUMENTS
- -h, --help
Print usage message and exit. Ignore trailing args, parse and ignore preceding args.
- -v, --verbose
Increase verbosity.
- -q, --quiet
Decrease verbosity.
- -c, --config CONFIG
Specify a client configuration file CONFIG.
- --show-uids
Do not try to make the output more human readable.
- -a, --all
Interact with all actions (default for list).
- -i, --ids ACTIONS
A comma-separated list of actions to query or modify. Values can include name, UID, or truncated UID.
- --reset-all
Reset actions to the default definitions in the health repo.
FORMATTING ARGUMENTS
- --human
Format the output for readability (default).
- --json
Format the output as JSON.
- --csv
Format the output as CSV.
- --table
Format the output as a table.
- --pretty
Indent JSON or XML output, and substitute human readable output for other formats.
- --no-pretty
Opposite of --pretty.
- --fields FIELDS
Select individual fields in the result or error.
ACTIONS
- clone (cp) [--content JSON | INI_FILE] [NAME=VALUE ...]
Copy action to new identifier.
- --content JSON | INI_FILE
Overwrite fields in the cloned action.
- create (mk) [--content JSON | INI_FILE] [NAME=VALUE ...]
Add an action.
- --content JSON | INI_FILE
Load this content into the database as an action. The content may be JSON, an INI file, a YAML document, or a YAML stream containing multiple actions.
- delete (rm)
Delete actions.
- list (ls) [--long | --long-long] [--nodes [NODE ...]] [--show-labels]
Show information about actions.
- -l, --long
Show a subset of all optional information for each action.
- -L, --long-long
Show all optional information for each action.
- update (up) [--content JSON | INI_FILE] [NAME=VALUE ...]
Modify action fields.
- --content JSON | INI_FILE
Overwrite fields in the specified actions.
EXAMPLES
cw-actionctl list
List all actions.
RETURN VALUES
Upon successful completion, cw-actionctl returns 0.
On failure, an error message is printed to stderr and
cw-actionctl returns 1.